So, my Model is trying to insert my data to a different table than I told it to.
My Model code is as follows:
class Workplacereserve extends Model
{
protected $table = 'workplacereserves';
protected $fillable = ['spot', 'date', 'timefrom', 'timeto', 'client', 'cmail', 'created_at', 'updated_at'];
}
The application shows that it's trying to insert into hallreserves table, which is not to right one
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire