Open Doomkyn opened 2 years ago
Same problem here, the package was working great with Laravel 8 but updating to 9 and the package version from 1.4 to 1.5 I can reproduce this issue.
Think this issue could be solved by adding 'middleware' => 'web' in the route group in the routes.php file. Apparently that way the user is accessible through the Auth facade (info here)
Hello, Issue solved with V 1.6.0 When upgrading to this version don't forget add middleware in config file as described in README.
Hello, I did as stated in the documentation:
Created a NiceArtisan Middlware:
Added the middleware to the Kernel.php:
But it seems that
$request->user()
is always null, even if I'm logged in with a user. Assigning the middlewarenice_artisan
to the /home route (instead of theauth
middleware) prints the$request->user()
info correctly. Maybe it is registered too early in the package?