ldc-doux/app/Http/Requests/StoreSliderRequest.php
Sebastien Hattry 8837dd4f58 Create BO 1
2021-12-06 08:51:51 +01:00

31 lines
577 B
PHP

<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class StoreSliderRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return false;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'label' => 'required|string|max:255',
'slug' => 'sometimes|unique:sliders',
];
}
}