Open SwathySunilKumar opened 5 years ago
the code I used for creating the button is:
$this->makeCustomButton([ 'name' => 'home', 'url' => url('/'), ], 'rows');
and the error I received:
Method App\Grids\FoodCategoriesGrid::__toString() must not throw an exception, caught ErrorException: call_user_func() expects parameter 1 to be a valid callback, no array or string given (View: /var/www/html/kot/resources/views/vendor/leantony/grid/grid.blade.php)
Could someone help me find a solution for the above.
you should call like this:
$this->makeCustomButton([ 'name' => 'home', 'url' => url('/'), ], 'rows')->render([ 'gridName'=>$this->name, 'gridItem'=>$this, ]);
the code I used for creating the button is:
and the error I received:
Method App\Grids\FoodCategoriesGrid::__toString() must not throw an exception, caught ErrorException: call_user_func() expects parameter 1 to be a valid callback, no array or string given (View: /var/www/html/kot/resources/views/vendor/leantony/grid/grid.blade.php)
Could someone help me find a solution for the above.