Answers for "to fillable property to allow mass assignment on"

2

Add [nom] to fillable property to allow mass assignment

// you var are not fillable, you have to set them fillable

protected $fillable = ['var1', 'var2', 'etc'];

//now you can fill your vars
Posted by: Guest on August-05-2021
0

to fillable property to allow mass assignment on

protected $fillable = ['title'];
Posted by: Guest on October-19-2020

Code answers related to "to fillable property to allow mass assignment on"

Browse Popular Code Answers by Language