cepairda
Filament getTabs method for table on custom resource page
I have the following error. At the same time, the page and pagination work fine, tabs switch without errors
[2025-03-17 14:45:54] local.ERROR: Cannot assign null to property App\Filament\Resources\DriverResource\Pages\StatDrivers::$driverId of type int (View: /var/www/app/vendor/filament/widgets/resources/views/stats-overview-widget.blade.php) {"userId":1,"exception":"[object] (Illuminate\View\ViewException(code: 0): Cannot assign null to property App\Filament\Resources\DriverResource\Pages\StatDrivers::$driverId of type int (View: /var/www/app/vendor/filament/widgets/resources/views/stats-overview-widget.blade.php) at /var/www/app/app/Filament/Resources/DriverResource/Pages/StatDrivers.php:38)
18 replies
Filament getTabs method for table on custom resource page
@Dennis Koch The page works fine, the tabs work. But the widgets don't work, despite the fact that I made the mount. Is there another way to mount ? For example, if I write statically 14, then the widgets work $this->driverId = 14;
18 replies
Filament getTabs method for table on custom resource page
I did it like in the example here https://github.com/filamentphp/filament/discussions/10127#discussioncomment-8206452
At the moment I made the type ListRecords instead Page. But there is a problem. I get the record only on the first page load. I understand that the problem is that I can't get record id.
Inside DriverResource I declared a route. Then I want to use this id to get statistics
18 replies