loan order permissions

This commit is contained in:
2023-11-30 17:09:02 +05:00
parent 3818b5fb63
commit b07b919f18
7 changed files with 149 additions and 46 deletions

View File

@@ -2,6 +2,7 @@
namespace App\Models\Branch;
use App\Models\User;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Spatie\Translatable\HasTranslations;
@@ -44,4 +45,12 @@ class Branch extends Model
'name',
'address',
];
/**
* Branches associated with user
*/
public function users(): BelongsToMany
{
return $this->belongsToMany(User::class);
}
}