ldc-gen-game-web/app/Http/Requests/Bo/UpdateContentRequest.php

31 lines
540 B
PHP
Raw Permalink Normal View History

2022-01-10 16:58:25 +01:00
<?php
2022-03-15 16:27:41 +01:00
namespace App\Http\Requests\Bo;
2022-01-10 16:58:25 +01:00
use Illuminate\Foundation\Http\FormRequest;
2022-03-15 16:27:41 +01:00
class UpdateContentRequest extends FormRequest
2022-01-10 16:58:25 +01:00
{
/**
* Determine if the user is authorized to make this request.
*
* @return boolean
*/
public function authorize()
{
2022-03-15 16:27:41 +01:00
return auth('web')->check();
2022-01-10 16:58:25 +01:00
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
2022-03-15 16:27:41 +01:00
'value' => 'required|min:5'
2022-01-10 16:58:25 +01:00
];
}
}