dimanche 30 décembre 2018

(2/2) ErrorException Invalid argument supplied for foreach() (View: Path..\resources\views\pages\knowledgebasecategory.blade.php)

(2/2) ErrorException Invalid argument supplied for foreach() (View: C:\laragon\www\LK\resources\views\pages\knowledgebasecategory.blade.php)

FrontController.php

public function knowledgebasecategory($id)
{
$knowledgebasecategory = KnowledgebaseCategory::find($id);
$knowledgebases = Knowledgebase::orderBy('created_at','desc')->paginate(3);
return view('pages.knowledgebasecategory')
->with('knowledgebasecategory', $knowledgebasecategory)
->with('title', $knowledgebasecategory->name)
->with('knowledgebasecategories', KnowledgebaseCategory::all())
->with('knowledgebases', $knowledgebases);
}

knowledgebasecategory.blade.phpp

enter image description here



from Newest questions tagged laravel-5 - Stack Overflow http://bit.ly/2F14kw7
via IFTTT

Aucun commentaire:

Enregistrer un commentaire