ldc-doux/app/Http/Requests/StoreSeoDataRequest.php
2022-05-12 16:03:40 +02:00

32 lines
628 B
PHP

<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class StoreSeoDataRequest 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 [
'title' => 'required|max:255',
'description' => 'sometimes|max:255',
'keywords' => 'sometimes|max:255',
];
}
}