wip
This commit is contained in:
1 parent
3ad02457f1
commit
6f40d5df30
3 files changed
+47
-13
No files matched your search
@@ -28,6 +28,11 @@ class Sport extends Model
|
||||
}
|
||||
}
|
||||
|
||||
public static function getActiveSports()
|
||||
{
|
||||
return Sport::query()->where('is_active', 1)->pluck('id')->toArray();
|
||||
}
|
||||
|
||||
public static function getSportForClient()
|
||||
{
|
||||
$sports = Client::where('id', auth()->user()->client_id)->value('sport');
|
||||
|
||||
Reference in new issue
Block a user