Answers for "add [%s] to fillable property to allow mass assignment on [%s]."

PHP
3

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
1

fillable property to allow mass assignment

protected $guarded = [];
Posted by: Guest on June-21-2021

Code answers related to "add [%s] to fillable property to allow mass assignment on [%s]."

Browse Popular Code Answers by Language