ldc-gen-game-web/app/Http/Requests/Bo/FaqThemes/StoreFaqThemeRequest.php
Jérémy Munsch 1774e34acd
Bo fixes
2023-11-30 11:37:17 +01:00

42 lines
780 B
PHP

<?php
namespace App\Http\Requests\Bo\FaqThemes;
use Illuminate\Foundation\Http\FormRequest;
class StoreFaqThemeRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return boolean
*/
public function authorize()
{
return auth('backend')->check();
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'name' => 'required|string|min:3|max:255'
];
}
/**
* Get custom attributes for validator errors.
*
* @return array
*/
public function attributes(): array
{
return [
'name' => trans('Nom'),
];
}
}