ldc-domaine-de-lanvaux/app/Http/Requests/StoreGammeHookRequest.php
Alexis Gousseau 4c39db12d7 Refonte
2022-08-05 09:38:44 +00:00

31 lines
579 B
PHP

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