This commit is contained in:
nurmuhammet committed 2025-11-03 13:57:50 +05:00
1 parent 09c0bec901
commit 5f2760713f
9 files changed
+49 -45

No files matched your search

@@ -2,6 +2,8 @@
namespace App\Modules\UserAdjustments\Traits;
use App\Modules\Branch\Models\Branch;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
use Spatie\Permission\Traits\HasRoles;
/**
@@ -61,4 +63,14 @@ public function passport_id(): string
{
return (string) $this->getOption('passport_id');
}
/**
* Branches associated with user
*
* @return BelongsToMany<Branch>
*/
public function branches(): BelongsToMany
{
return $this->belongsToMany(Branch::class);
}
}