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

preview_player
Показать описание
PHPixie database table names are plural by default(s or es added to table names). if you use PHPixie or Laravel framework and make table giving singular name as well as call it as the same name in the model or query then you may get the following error or warning "PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table doesn't exist". But how can you solve it. Here is an easy solution. Just give the table name as plural(like: books) and use it as singular (like: book) in your model query.
-----------------------------------For more help------------------------------------
------------------------------------------------------------------------------------
------------------------------------------------------------------------------------
Рекомендации по теме
Комментарии
Автор

why laravel framework add s behind on model query?

holoqdeez