For now i need to declare in laravel model like that
protected $fillable =
[
'object_name','attributes','item','cost','status','category','object_id','status','customer_id','provider_id'
];
after that, I can insert value in the database. Is there any way that can make all columns of every newly created table fillable so I will need to change it every time.
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/38AEIm3
via IFTTT
Aucun commentaire:
Enregistrer un commentaire