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
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2gnA8eG
via IFTTT
Aucun commentaire:
Enregistrer un commentaire