phpsa / filament-authentication

MIT License
112 stars 24 forks source link

Error accessing the Dashboard #8

Closed stleroux closed 2 years ago

stleroux commented 2 years ago

I get this error after trying to add the LatestUsers widget to the dashboard. I even tried to remove the widget and clear the artisan cache but nothing seems to work. I can access all other pages I have created.

TypeError Phpsa\FilamentAuthentication\Widgets\LatestUsersWidget::getTableQuery(): Return value must be of type Illuminate\Contracts\Database\Eloquent\Builder, Illuminate\Database\Eloquent\Builder returned (View: C:\laragon\www\Laravel-Test\vendor\filament\filament\resources\views\components\widgets.blade.php)

Thanks

phpsa commented 2 years ago

Can you advise PHP & Laravel Version

stleroux commented 2 years ago

php v 8.1.5 Laravel 8.83.10 Running on Laragon

The weird thing is, it still gives me the error even after removing the lines for the widget

phpsa commented 2 years ago

Can you confirm if the latest version fixes this, issue around laravel 9 vs 8 was found also to disable should be a config variable now and not needed to manually add to the config file anymore

stleroux commented 2 years ago

Ran composer update on the installation and this resolved the problem. Thanks for the help