SQLSTATE[42S02]: Base table or view not found: 1146 Table 'many_to_many.sessions' doesn't exist (Connection: mysql, SQL: select * from `sessions` where `id` = tVoFh2Iof0GJWye33iUipBBOWNXELZCejzrC4vO0 limit 1) in Laravel 11

 



SOLUTION :
Above Error is due to below code in Laravel 11 .env file:

To Solve Above Error we have to change SESSION_DRIVER=database to SESSION_DRIVER=file.
By Changing "database" to "file", above Error will Solve as shown below.





Comments

Popular posts from this blog

Internal Server Error Exception Property [name] does not exist on this collection instance. in Laravel 11

Illuminate\Database\QueryException SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes (Connection: mysql, SQL: alter table `roles` add unique `roles_role_name_unique`(`role_name`)) in Laravel 11