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:
1 parent
5270e3c093
commit
b485e19c9d
5 files changed
+235
-8
No files matched your search
@@ -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