wip
This commit is contained in:
1 parent
23cf804865
commit
4e77862aa7
14 files changed
+113
-49
No files matched your search
@@ -33,9 +33,9 @@ class Sport extends Model
|
||||
return Sport::query()->where('is_active', 1)->pluck('id')->toArray();
|
||||
}
|
||||
|
||||
public static function getSportForClient()
|
||||
public static function getSportForClient($client_id)
|
||||
{
|
||||
$sports = Client::where('id', auth()->user()->client_id)->value('sport');
|
||||
$sports = Client::where('id', $client_id)->value('sport');
|
||||
|
||||
return Sport::query()->whereIn('id', $sports)->pluck('name', 'id');
|
||||
|
||||
|
||||
Reference in new issue
Block a user