I'm facing a problem to save data by eloquent right after rename the database column name.
The column name was changed inside of the migration. The migration was carried out and the name in the database now is ok.
In the model, the column name was also changed to the new name. But for some reason, when I try to insert a new record into the database, Laravel is complaining about the column name, it's trying to use the old name instead of the new name.
I'm currently using PHP 7 with Laravel 5.8 and Postgres as database. My environment is running on docker.
I already tried to clear the cache but it does not solved my issue. Composer dump-autoload was also carried out but nothing changed.
This is the error:
Illuminate \ Database \ QueryException (42703)
SQLSTATE[42703]: Undefined column: 7 ERROR: column "name" does not exist LINE 1
Is import to say that i'm using Laravel Backpack.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire