|
@@ -29,7 +29,7 @@ class CoachUser extends Model
|
|
|
*/
|
|
|
public function info()
|
|
|
{
|
|
|
- return $this->hasOne('App\Models\CoachInfoRecord', 'id', 'info_record_id');
|
|
|
+ return $this->hasOne(CoachInfoRecord::class, 'id', 'info_record_id');
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -54,7 +54,7 @@ class CoachUser extends Model
|
|
|
*/
|
|
|
public function member()
|
|
|
{
|
|
|
- return $this->belongsTo('App\Models\MemberUser', 'user_id');
|
|
|
+ return $this->belongsTo(MemberUser::class, 'user_id');
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -63,7 +63,7 @@ class CoachUser extends Model
|
|
|
*/
|
|
|
public function infoRecords()
|
|
|
{
|
|
|
- return $this->hasMany('App\Models\CoachInfoRecord', 'coach_id', 'id');
|
|
|
+ return $this->hasMany(CoachInfoRecord::class, 'coach_id', 'id');
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -72,7 +72,7 @@ class CoachUser extends Model
|
|
|
*/
|
|
|
public function qual()
|
|
|
{
|
|
|
- return $this->hasOne('App\Models\CoachQualRecord', 'id', 'qualification_record_id');
|
|
|
+ return $this->hasOne(CoachQualRecord::class, 'id', 'qualification_record_id');
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -81,7 +81,7 @@ class CoachUser extends Model
|
|
|
*/
|
|
|
public function score()
|
|
|
{
|
|
|
- return $this->hasOne('App\Models\CoachScore', 'coach_id', 'id');
|
|
|
+ return $this->hasOne(CoachScore::class, 'coach_id', 'id');
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -90,7 +90,7 @@ class CoachUser extends Model
|
|
|
*/
|
|
|
public function locations()
|
|
|
{
|
|
|
- return $this->hasMany('App\Models\CoachLocation', 'coach_id', 'id');
|
|
|
+ return $this->hasMany(CoachLocation::class, 'coach_id', 'id');
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -99,7 +99,7 @@ class CoachUser extends Model
|
|
|
*/
|
|
|
public function orders()
|
|
|
{
|
|
|
- return $this->hasMany('App\Models\Order', 'coach_id', 'id');
|
|
|
+ return $this->hasMany(Order::class, 'coach_id', 'id');
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -108,7 +108,7 @@ class CoachUser extends Model
|
|
|
*/
|
|
|
public function grabRecords()
|
|
|
{
|
|
|
- return $this->hasMany('App\Models\OrderGrabRecord', 'coach_id', 'id');
|
|
|
+ return $this->hasMany(OrderGrabRecord::class, 'coach_id', 'id');
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -117,7 +117,7 @@ class CoachUser extends Model
|
|
|
*/
|
|
|
public function comments()
|
|
|
{
|
|
|
- return $this->hasMany('App\Models\OrderComment', 'coach_id', 'id');
|
|
|
+ return $this->hasMany(OrderComment::class, 'coach_id', 'id');
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -126,7 +126,7 @@ class CoachUser extends Model
|
|
|
*/
|
|
|
public function wallet()
|
|
|
{
|
|
|
- return $this->morphOne('App\Models\Wallet', 'owner');
|
|
|
+ return $this->morphOne(Wallet::class, 'owner');
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -135,7 +135,7 @@ class CoachUser extends Model
|
|
|
*/
|
|
|
public function shop()
|
|
|
{
|
|
|
- return $this->belongsTo('App\Models\ShopInfo', 'shop_id', 'shop_id');
|
|
|
+ return $this->belongsTo(ShopInfo::class, 'shop_id', 'shop_id');
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -144,7 +144,7 @@ class CoachUser extends Model
|
|
|
*/
|
|
|
public function shopOpenService()
|
|
|
{
|
|
|
- return $this->hasMany('App\Models\ShopCoachService', 'coach_id', 'id');
|
|
|
+ return $this->hasMany(ShopCoachService::class, 'coach_id', 'id');
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -153,7 +153,7 @@ class CoachUser extends Model
|
|
|
*/
|
|
|
public function real()
|
|
|
{
|
|
|
- return $this->hasOne('App\Models\CoachRealAuthRecord', 'id', 'real_auth_record_id');
|
|
|
+ return $this->hasOne(CoachRealAuthRecord::class, 'id', 'real_auth_record_id');
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -162,7 +162,7 @@ class CoachUser extends Model
|
|
|
*/
|
|
|
public function projects()
|
|
|
{
|
|
|
- return $this->hasMany('App\Models\CoachProject', 'coach_id', 'id');
|
|
|
+ return $this->hasMany(CoachProject::class, 'coach_id', 'id');
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -171,7 +171,7 @@ class CoachUser extends Model
|
|
|
*/
|
|
|
public function qualRecords()
|
|
|
{
|
|
|
- return $this->hasMany('App\Models\CoachQualRecord', 'coach_id', 'id');
|
|
|
+ return $this->hasMany(CoachQualRecord::class, 'coach_id', 'id');
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -180,6 +180,6 @@ class CoachUser extends Model
|
|
|
*/
|
|
|
public function realAuthRecords()
|
|
|
{
|
|
|
- return $this->hasMany('App\Models\CoachRealAuthRecord', 'coach_id', 'id');
|
|
|
+ return $this->hasMany(CoachRealAuthRecord::class, 'coach_id', 'id');
|
|
|
}
|
|
|
}
|