Added routes, endpoints to get all matches, get a specific match, create a match, join a match, and update the match

This commit is contained in:
2025-12-18 20:29:10 +00:00
parent 5270e3c093
commit b485e19c9d
5 changed files with 235 additions and 8 deletions
@@ -0,0 +1,22 @@
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Support\Facades\Auth;
class StoreMatchRequest extends FormRequest
{
public function authorize(): bool
{
return Auth::check();
}
public function rules(): array
{
return [
'type' => 'required|in:3,9',
'stake' => 'required|integer|min:1',
];
}
}