sebastienheyd / boilerplate

Laravel AdminLTE 3 Boilerplate package with blade components, users, roles and permissions management
MIT License
219 stars 66 forks source link

Route list error if logs are forbidden #66

Closed thracefields closed 2 years ago

thracefields commented 2 years ago

I recieve an error, when try to run command: php artisan route:list, and logs are forbidden in the config file.

Symfony\Component\HttpKernel\Exception\NotFoundHttpException at vendor/laravel/framework/src/Illuminate/Foundation/Application.php:1143

sebastienheyd commented 2 years ago

Can you run php artisan route:list -vvv and see which route gives an error, I don't have any error when I test with the latest version.

thracefields commented 2 years ago

That's the output: Symfony\Component\HttpKernel\Exception\NotFoundHttpException

at vendor/laravel/framework/src/Illuminate/Foundation/Application.php:1143 1139▕ */ 1140▕ public function abort($code, $message = '', array $headers = []) 1141▕ { 1142▕ if ($code == 404) { ➜ 1143▕ throw new NotFoundHttpException($message); 1144▕ } 1145▕ 1146▕ throw new HttpException($code, $message, null, $headers); 1147▕ }

1 vendor/laravel/framework/src/Illuminate/Foundation/helpers.php:44 Illuminate\Foundation\Application::abort()

2 app/Http/Controllers/Boilerplate/Logs/LogViewerController.php:25 abort()

3 [internal]:0 App\Http\Controllers\Boilerplate\Logs\LogViewerController::__construct()

4 vendor/laravel/framework/src/Illuminate/Container/Container.php:915 ReflectionClass::newInstanceArgs()

5 vendor/laravel/framework/src/Illuminate/Container/Container.php:756 Illuminate\Container\Container::build()

6 vendor/laravel/framework/src/Illuminate/Foundation/Application.php:855 Illuminate\Container\Container::resolve()

7 vendor/laravel/framework/src/Illuminate/Container/Container.php:692 Illuminate\Foundation\Application::resolve()

8 vendor/laravel/framework/src/Illuminate/Foundation/Application.php:840 Illuminate\Container\Container::make()

9 vendor/laravel/framework/src/Illuminate/Routing/Route.php:275 Illuminate\Foundation\Application::make()

10 vendor/laravel/framework/src/Illuminate/Routing/Route.php:1081 Illuminate\Routing\Route::getController()

11 vendor/laravel/framework/src/Illuminate/Routing/Route.php:1024 Illuminate\Routing\Route::controllerMiddleware()

12 vendor/laravel/framework/src/Illuminate/Routing/Router.php:737 Illuminate\Routing\Route::gatherMiddleware()

13 vendor/laravel/framework/src/Illuminate/Foundation/Console/RouteListCommand.php:210 Illuminate\Routing\Router::gatherRouteMiddleware()

14 vendor/laravel/framework/src/Illuminate/Foundation/Console/RouteListCommand.php:155 Illuminate\Foundation\Console\RouteListCommand::getMiddleware()

15 vendor/laravel/framework/src/Illuminate/Foundation/Console/RouteListCommand.php:125 Illuminate\Foundation\Console\RouteListCommand::getRouteInformation()

16 [internal]:0 Illuminate\Foundation\Console\RouteListCommand::Illuminate\Foundation\Console{closure}()

17 vendor/laravel/framework/src/Illuminate/Collections/Collection.php:725 array_map()

18 vendor/laravel/framework/src/Illuminate/Foundation/Console/RouteListCommand.php:126 Illuminate\Support\Collection::map()

19 vendor/laravel/framework/src/Illuminate/Foundation/Console/RouteListCommand.php:110 Illuminate\Foundation\Console\RouteListCommand::getRoutes()

20 vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:36 Illuminate\Foundation\Console\RouteListCommand::handle()

21 vendor/laravel/framework/src/Illuminate/Container/Util.php:41 Illuminate\Container\BoundMethod::Illuminate\Container{closure}()

22 vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:93 Illuminate\Container\Util::unwrapIfClosure()

23 vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:37 Illuminate\Container\BoundMethod::callBoundMethod()

24 vendor/laravel/framework/src/Illuminate/Container/Container.php:651 Illuminate\Container\BoundMethod::call()

25 vendor/laravel/framework/src/Illuminate/Console/Command.php:136 Illuminate\Container\Container::call()

26 vendor/symfony/console/Command/Command.php:291 Illuminate\Console\Command::execute()

27 vendor/laravel/framework/src/Illuminate/Console/Command.php:121 Symfony\Component\Console\Command\Command::run()

28 vendor/symfony/console/Application.php:989 Illuminate\Console\Command::run()

29 vendor/symfony/console/Application.php:299 Symfony\Component\Console\Application::doRunCommand()

30 vendor/symfony/console/Application.php:171 Symfony\Component\Console\Application::doRun()

31 vendor/laravel/framework/src/Illuminate/Console/Application.php:102 Symfony\Component\Console\Application::run()

32 vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:129 Illuminate\Console\Application::run()

33 artisan:37 Illuminate\Foundation\Console\Kernel::handle()