21 lines
449 B
PHP
21 lines
449 B
PHP
<?php
|
|
|
|
namespace App\Livewire\ComparingBookmaker;
|
|
|
|
use App\Models\ComparingBookmaker;
|
|
use App\Models\User;
|
|
|
|
class LoadBookmaker
|
|
{
|
|
public static function load()
|
|
{
|
|
$user = User::find(auth()->user()->id);
|
|
|
|
return ComparingBookmaker::query()
|
|
->with('bookmaker')
|
|
->where('sport_id', $user->sport_id)
|
|
->where('client_bookmaker_id', $user->bookmaker_id)
|
|
->orderBy('sorting');
|
|
}
|
|
}
|