feat: add request verify

This commit is contained in:
2026-02-25 00:02:39 +03:30
parent 06cdf30f0a
commit acf2ed7f18
4 changed files with 89 additions and 1 deletions
+7 -1
View File
@@ -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;