feat: add withdraw request functionality and UI components
This commit is contained in:
@@ -22,6 +22,7 @@ class User extends Authenticatable
|
||||
protected $fillable = [
|
||||
'username',
|
||||
'fullname',
|
||||
'birthdate',
|
||||
'national_code',
|
||||
'level',
|
||||
'email',
|
||||
@@ -56,6 +57,7 @@ class User extends Authenticatable
|
||||
{
|
||||
return [
|
||||
'email_verified_at' => 'datetime',
|
||||
'birthdate' => 'date:Y-m-d',
|
||||
'password' => 'hashed',
|
||||
];
|
||||
}
|
||||
@@ -76,4 +78,24 @@ class User extends Authenticatable
|
||||
{
|
||||
return $this->hasMany(Shift::class);
|
||||
}
|
||||
|
||||
public function wallet()
|
||||
{
|
||||
return $this->hasOne(Wallet::class);
|
||||
}
|
||||
|
||||
public function invoices()
|
||||
{
|
||||
return $this->hasMany(Invoice::class);
|
||||
}
|
||||
|
||||
public function bankCards()
|
||||
{
|
||||
return $this->hasMany(BankCard::class);
|
||||
}
|
||||
|
||||
public function withdrawRequests()
|
||||
{
|
||||
return $this->hasMany(WithdrawRequest::class);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user