mercredi 22 juillet 2020

How to solved problem SQLSTATE[HY000]: General error: 1 no such table: {table_name} (SQL: select * from {table_name}) in laravel?

I have a problem when I want to feature test my laravel project, I get this error:

  SQLSTATE[HY000]: General error: 1 no such table: {table_name} (SQL: select * from {table_name})

  at G:\Project\HamtaNew\vendor\laravel\framework\src\Illuminate\Database\Connection.php:671
    667|         // If an exception occurs when attempting to run a query, we'll format the error
    668|         // message to include the bindings with SQL, which will make this exception a
    669|         // lot more helpful to the developer instead of just the database's errors.
    670|         catch (Exception $e) {
  > 671|             throw new QueryException(
    672|                 $query, $this->prepareBindings($bindings), $e
    673|             );
    674|         }
    675|

My laravel version is 7,

And I can't solve this problem, anybody can help me?

Aucun commentaire:

Enregistrer un commentaire