@sinnbeck
Thanks. this command solved the problem.
but I can't get the logged in user with Auth::user and user() helper. What do you think the problem is?
Symfony\Component\HttpFoundation\Request::create(): Argument #1 ($uri) must
be of type string, null given, called in /home/rony/Downloads/Projects/Lar
avel/snipe-it/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/
SetRequestForConsole.php on line 31
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
So executing this code shows exactly where your problem
php artisan package:discover --ansi
Then my problem was in .env i had
APP_URL=null
instead of
APP_URL=localhost