samedi 26 décembre 2020

How to make all column fillable by default of every newly create table in laravel

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