request Model is added
This commit is contained in:
@@ -11,17 +11,33 @@ class User extends Authenticatable implements JWTSubject
|
||||
{
|
||||
use HasFactory, Notifiable;
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected $fillable = [
|
||||
'name',
|
||||
'customer_id', // CID-2025-000001 format
|
||||
'customer_name',
|
||||
'company_name',
|
||||
'designation',
|
||||
'email',
|
||||
'mobile_no',
|
||||
'address',
|
||||
'pincode',
|
||||
'date',
|
||||
'password',
|
||||
];
|
||||
|
||||
/**
|
||||
* The attributes that should be hidden for arrays.
|
||||
*/
|
||||
protected $hidden = [
|
||||
'password',
|
||||
'remember_token',
|
||||
];
|
||||
|
||||
/**
|
||||
* The attributes that should be cast.
|
||||
*/
|
||||
protected function casts(): array
|
||||
{
|
||||
return [
|
||||
@@ -30,12 +46,17 @@ class User extends Authenticatable implements JWTSubject
|
||||
];
|
||||
}
|
||||
|
||||
// 🔑 Required for JWT
|
||||
/**
|
||||
* JWT Identifier.
|
||||
*/
|
||||
public function getJWTIdentifier()
|
||||
{
|
||||
return $this->getKey();
|
||||
}
|
||||
|
||||
/**
|
||||
* JWT Custom Claims.
|
||||
*/
|
||||
public function getJWTCustomClaims()
|
||||
{
|
||||
return [];
|
||||
|
||||
Reference in New Issue
Block a user