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:
@@ -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',
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user