I created a laravel and then

  database, laravel, many-to-many, pivot, pivot-table

IlluminateDatabaseQueryException with message ‘SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘db_testmasjid.jamaah_model_kajian_model’ doesn’t exist (SQL: select kajian.*, jamaah_model_kajian_model.jamaah_model_id as pivot_jamaah_model_id, jamaah_model_kajian_model.kajian_model_id as pivot_kajian_model_id from kajian inner join jamaah_model_kajian_model on kajian.id = jamaah_model_kajian_model.kajian_model_id where jamaah_model_kajian_model.jamaah_model_id = 4)’

Source: Laravel

Leave a Reply