classProjectRequestextendsFormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ publicfunctionauthorize() { returntrue; }
/** * Get the validation rules that apply to the request. * * @return array */ publicfunctionrules() { $method = $this->method();