Answers for ""Illuminate\Database\Eloquent\MassAssignmentException""

PHP
0

"Illuminate\Database\Eloquent\MassAssignmentException"

//Laravel provides by default a protection against mass assignment security issues. 
//That's why you have to manually define which fields could be "mass assigned" :
class User extends Model
{
    protected $fillable = ['username', 'email', 'password'];
}
Posted by: Guest on July-16-2020

Code answers related to ""Illuminate\Database\Eloquent\MassAssignmentException""

Browse Popular Code Answers by Language