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.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire