THEMBOCHARLES

Results comments of THEMBOCHARLES

function genPDF(){ html2canvas(document.getElementById('content'), { onrendered: function(canvas){ var pdf = new jsPDF('p', 'pt', 'a4'); var options = { padding:5, pagesplit: true }; pdf.addHTML($('#content')[0], options, function () { pdf.save('{{$this_studentchosen->name}}.pdf'); }); } });...

Thank you boss. refreshing cache works

Patrick, Your solution removed the Error but It fails to read the Work sheet.

``` public function store(Request $request) { if (isset($request->filename)) { # code... $file=$request->file('filename'); Excel::load($file, function($reader) { // Getting all results $results = $reader->all(); // $results = $reader->name; foreach ($results as $value)...

try { $user->roles()->attach($role_value); // id only } catch (\Exception $e) {//the namespace \Exception not Exception return redirect()->back()->with('good',"User already has the role"); }

After changing CACHE_DRIVER=file to CACHE_DRIVER=array. Stop the artisan server and then restart it.

But the best solution for me was. 1. set app/cache to 'default' => env('CACHE_DRIVER', 'redis'), 2.CACHE_DRIVER=redis SESSION_DRIVER=redis in .env 3. In your composer.json add "predis/predis": "^1.1" 4. run composer update...