I'm getting this error stating undefined index 'data' at line 26, I've tried to use isset on top but nothing to avail. Any help highly appreciated.
class TopMenu extends AbstractWidget {
/**
* Treat this method as a controller action.
* Return view() or other content to display.
*/
public function run()
{
$SDKInstance = new BlackLabelSdk();
$listFilter = $SDKInstance->getFilterList();
return view("widgets.top_menu", [
'categories' => Categorymodel::archives(),
'blacklabelFilter' => $listFilter['data']['categories']
]);
}
}
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire