commit 08-2025
This commit is contained in:
parent
9ae662f63e
commit
480fdc65ed
404 changed files with 65310 additions and 2600431 deletions
|
|
@ -118,6 +118,8 @@ use Laravel\Passport\HasApiTokens;
|
|||
* @property int|null $pre_sponsor
|
||||
* @property-read User|null $user_pre_sponsor
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|User wherePreSponsor($value)
|
||||
* @property \Illuminate\Support\Carbon|null $pre_deleted_at
|
||||
* @method static \Illuminate\Database\Eloquent\Builder<static>|User wherePreDeletedAt($value)
|
||||
* @mixin \Eloquent
|
||||
*/
|
||||
class User extends Authenticatable
|
||||
|
|
@ -144,6 +146,7 @@ class User extends Authenticatable
|
|||
protected $casts = [
|
||||
'settings' => 'array',
|
||||
'payment_methods' => 'array',
|
||||
'pre_deleted_at' => 'datetime',
|
||||
|
||||
];
|
||||
|
||||
|
|
@ -221,6 +224,11 @@ class User extends Authenticatable
|
|||
return $this->hasMany('App\Models\ShoppingUser', 'member_id', 'id');
|
||||
}
|
||||
|
||||
public function userBusiness()
|
||||
{
|
||||
return $this->hasMany('App\Models\UserBusiness', 'user_id', 'id');
|
||||
}
|
||||
|
||||
public function getLocale()
|
||||
{
|
||||
return $this->lang ? $this->lang : \App::getLocale();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue