ldc-portsalaries/app/Http/Requests/CrudIndexRequest.php
Jérémy Munsch a63a064d1e Crud search
2021-06-07 18:29:02 +02:00

30 lines
527 B
PHP

<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class CrudIndexRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return auth()->check();
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'search' => 'nullable|string'
];
}
}