You don't have set APP_KEY in the .env file. Also don't forget to clear config cache
php artisan key:generate
php artisan config:clear
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Good afternoon.. I have a project in laravel that was working fine, but suddenly i got the error "session has expired" and i don't know why?? i haven't made any change in any forms lately and everting was working just fine bout today the error "session has expired" keep showing all the time.
in logs says...
[2020-09-04 09:30:36] production.ERROR: No application encryption key has been specified. {"exception":"[object] (RuntimeException(code: 0): No application encryption key has been specified. at C:\xampp\htdocs\wfortin\vendor\laravel\framework\src\Illuminate\Encryption\EncryptionServiceProvider.php:44)
[stacktrace]
I'm working with Laravel 5.7 Xampp
can some one help me!!! please and thankyou
Wait, I bet you forgot to include the csrf token on a form, check that....
Please or to participate in this conversation.