3 namespace App\Http\Controllers;
5 use App\Models\Tournament;
6 use Illuminate\Http\Request;
8 class ProtocolController extends Controller
11 public function forTournament(Tournament $tournament) {
12 $this->authorize('viewProtocol', $tournament);
13 $protocol = $tournament
16 ->orderBy('created_at', 'desc')
18 return $protocol->values()->toJson();