mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-30 07:20:25 -05:00
fix: allow User model instantiation with new User(['id' => $id])
We use this syntax for sending notifications without requerying the database. Also, we don't use $request->all() for anything user-related anymore so we should be safe to allow all attributes to be mass filled.
This commit is contained in:
+1
-1
@@ -107,7 +107,7 @@ class User extends Authenticatable implements MustVerifyEmail
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected $guarded = ['id', 'created_at', 'updated_at'];
|
||||
protected $guarded = [];
|
||||
|
||||
/**
|
||||
* Get the attributes that should be cast.
|
||||
|
||||
Reference in New Issue
Block a user