Init(Core): Change repo
This commit is contained in:
24
app/Http/Requests/VersionRequest.php
Normal file
24
app/Http/Requests/VersionRequest.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests;
|
||||
|
||||
use App\Traits\FailValidation;
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class VersionRequest extends FormRequest
|
||||
{
|
||||
use FailValidation;
|
||||
|
||||
public function authorize(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
'type' => 'required|in:ios,web,android',
|
||||
'number' => 'required|integer',
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user