ldc-web/app/Http/Requests/DatastorePccs/StoreDatastorePccRequest.php
2022-06-15 12:07:34 +02:00

32 lines
642 B
PHP

<?php
namespace App\Http\Requests\DatastorePccs;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Support\Facades\Auth;
class StoreDatastorePccRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return boolean
*/
public function authorize()
{
return Auth::check();
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'title' => 'required|min:2|max:50',
'comment' => 'required|min:2|max:50'
];
}
}