ldc-gen-game-web/app/Http/Requests/StoreRangeRequest.php
Jérémy Munsch 2e79c7320b Add ranges resource on BO
Add product belongsTo Range
2021-08-18 17:04:51 +02:00

30 lines
540 B
PHP

<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class StoreRangeRequest 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 [
'name' => 'required|string|min:2|max:255'
];
}
}