Skip to content

Commit

Permalink
Reset guarded attributes, use fillable instead for User model (#434)
Browse files Browse the repository at this point in the history
Reset guarded fields, because we use $fillable instead.
  • Loading branch information
TimFoerster committed Jul 9, 2020
1 parent acdee3c commit c3a7f00
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@ class User extends UserBase
'created_ip_address',
'last_ip_address'
];

/**
* Reset guarded fields, because we use $fillable instead.
* @var array The attributes that aren't mass assignable.
*/
protected $guarded = ['*'];


/**
* Purge attributes from data set.
Expand Down

0 comments on commit c3a7f00

Please sign in to comment.