Diglactic\Breadcrumbs\ServiceProvider::{closure}(): Argument https://github.com/dwightwatson/breadcrumbs/issues/2 ($page) must be of type App\Models\Pages, int given, called in C:\OSPanel\domains\laravel.loc\vendor\diglactic\laravel-breadcrumbs\src\Generator.php on line 64
Based on the code you've pasted, $trail->parent('pages', $page->parent_id); should be $trail->parent('pages', $page);. That is why you're receiving the error must be of type App\Models\Pages, int given.
Hi please help me i am facing with eror.I did all as documentation
// routes/breadcrumbs.php file like this:
In view file i call it like this: {{ Breadcrumbs::render('pages', $page) }}
In result i get this error
Diglactic\Breadcrumbs\ServiceProvider::{closure}(): Argument https://github.com/dwightwatson/breadcrumbs/issues/2 ($page) must be of type App\Models\Pages, int given, called in C:\OSPanel\domains\laravel.loc\vendor\diglactic\laravel-breadcrumbs\src\Generator.php on line 64