phpinfo icon indicating copy to clipboard operation
phpinfo copied to clipboard

Closure route causes php artisan:optimize to fail

Open ghobaty opened this issue 5 years ago • 0 comments

Since a closure is being used for the route:

https://github.com/laravel-admin-extensions/phpinfo/blob/258c388f3e7f6be032a0234a4ad35acf1202f74c/routes/web.php#L8-L15

Running php artisan optimize fails with an error message

LogicException : Unable to prepare route [admin/phpinfo] for serialization. Uses Closure.

ghobaty avatar Mar 20 '20 23:03 ghobaty