feat: add request verify
This commit is contained in:
+7
-1
@@ -20,6 +20,9 @@ class User extends Authenticatable
|
||||
'female' => 2,
|
||||
];
|
||||
protected $guarded = [];
|
||||
protected $casts = [
|
||||
'mobile_verified_at' => 'datetime',
|
||||
];
|
||||
protected $hidden = [
|
||||
'password',
|
||||
];
|
||||
@@ -39,7 +42,10 @@ public function getFullNameAttribute()
|
||||
{
|
||||
return $this->first_name . ' ' . $this->last_name;
|
||||
}
|
||||
|
||||
public function hasVerifiedMobile(): bool
|
||||
{
|
||||
return !is_null($this->mobile_verified_at);
|
||||
}
|
||||
public function getAvatarAttribute()
|
||||
{
|
||||
return isset($this->attributes['avatar']) ? url($this->attributes['avatar']) : null;
|
||||
|
||||
Reference in New Issue
Block a user