You've already forked Epicnabbo-Catalogus-Updated-Daily
24 lines
414 B
PHP
24 lines
414 B
PHP
<?php
|
|
|
|
namespace App\Http\Requests;
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
class RareSearchFormRequest extends FormRequest
|
|
{
|
|
/**
|
|
* @return array<string, array<int, string>>
|
|
*/
|
|
public function rules(): array
|
|
{
|
|
return [
|
|
'search' => ['required', 'string', 'min:1', 'max:255'],
|
|
];
|
|
}
|
|
|
|
public function authorize(): bool
|
|
{
|
|
return true;
|
|
}
|
|
}
|