Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Laravel 11 forces creation of tables you don't want and crashes the app

I’m trying to work with Laravel 11, and deleted all migrations and created my own migrations, even deleted the database from mysql (which is a waste, I could use the old data with the new app in Laravel 11), but is not working at at all. It gives the error:

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'mydatabase.sessions' doesn't exist

Why that table still exists and its being called from code, even if I didn’t create?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Laravel expects to find a sessions table if you have configured it to store sessions in the database, as opposed to file, cookie, array etc.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading