- Segment Company Relationship Service Class

- Update Standard Segment Constant Logic Class
- List Standard Segment Constant Logic Class
- List Standard Segment Logic Class
This commit is contained in:
CheeSiong
2020-11-13 14:15:34 +08:00
parent 6b394420dc
commit 1fbdc795ff
50 changed files with 1956 additions and 19 deletions
+4 -10
View File
@@ -4,6 +4,9 @@ namespace App\Models;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Spatie\Permission\Traits\HasRoles;
use Tymon\JWTAuth\Contracts\JWTSubject;
use Illuminate\Notifications\Notifiable;
use Illuminate\Auth\Authenticatable;
@@ -20,7 +23,7 @@ class User extends AbstractModel implements
AuthorizableContract,
CanResetPasswordContract
{
use Notifiable, Authenticatable, Authorizable, CanResetPassword, MustVerifyEmail;
use HasRoles, Notifiable, Authenticatable, Authorizable, CanResetPassword, MustVerifyEmail;
/**
@@ -54,15 +57,6 @@ class User extends AbstractModel implements
return $this->hasMany(PasswordReset::class, 'user_id', 'id');
}
// public function employers(): belongsToMany {
// return $this->belongsToMany(CompanyModule::class, (new CompanyEmployee())->getTable(), 'user_id', 'module_id');
// }
// public function tweets(): hasMany {
// return $this->hasMany(Order::class, 'user_id', 'id');
// }
/**
* @return belongsToMany
*/