Answers for "Add [nom] to fillable property to allow mass assignment"

PHP
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 "Add [nom] to fillable property to allow mass assignment"

Browse Popular Code Answers by Language