Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

insight's avatar

php artisan optimize command causes error.

Dear Friends, I am using Red Hat Server apache in Laravel 10.10. When I try to clear all cache in server using command

php artisan optimize

I got Type error as

Symfony\Component\HttpFoundation\InputBag::get(): Argument #1 ($key) must be of type string, array given, called in /var/www/html/ksitmCareers/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php on line 160

Please help

Thanks

Anes P A

0 likes
3 replies
Snapey's avatar

php version at the command line?

Please or to participate in this conversation.