Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

unserialize(): Error at offset 0 of 40 bytes Error

Tags:

laravel

I Want to run my application in localhost with php artisan serve but I get this Error unserialize(): Error at offset 0 of 40 bytes where is my problem?

like image 575
Haniyeh Asemi Avatar asked Aug 13 '18 08:08

Haniyeh Asemi


2 Answers

You have to set a news Key Generate because

php artisan key:generate 

After that test again to run the Laravel Application

php artisan serve 
like image 190
Yann Assoumou Avatar answered Oct 12 '22 12:10

Yann Assoumou


I got the same error, when I upgrade a Laravel 5.5 app to 5.6. The error comes form the EncryptCookies-Middleware.

Delete the cookies in your browser and/or clear your session-files in your Laravel app.

like image 20
stefanzweifel Avatar answered Oct 12 '22 11:10

stefanzweifel