add id to guarded
This commit is contained in:
@@ -13,7 +13,7 @@ class User extends Authenticatable
|
||||
{
|
||||
use HasFactory, Notifiable, HasRoles;
|
||||
|
||||
protected $guarded = [];
|
||||
protected $guarded = ['id'];
|
||||
|
||||
protected $hidden = ['password', 'pivot'];
|
||||
public string $guard_name = 'web';
|
||||
|
||||
Reference in New Issue
Block a user