added soft delete to settings table

This commit is contained in:
Denis Duliçi
2022-03-02 12:19:46 +03:00
parent ea4a968f0f
commit 3249e7b18d
12 changed files with 164 additions and 62 deletions

View File

@ -267,7 +267,7 @@ class Company extends Eloquent implements Ownable
public function users()
{
return $this->morphedByMany('App\Models\Auth\User', 'user', 'user_companies', 'company_id', 'user_id');
return $this->belongsToMany('App\Models\Auth\User', 'App\Models\Auth\UserCompany');
}
public function vendors()