for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Itstructure\MFU\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
/**
* Class StoreAlbum
* @package Itstructure\MFU\Http\Requests
*/
class StoreAlbum extends FormRequest
{
* Determine if the user is authorized to make this request.
*
* @return bool
public function authorize()
return true;
}
* Get the validation rules that apply to the request.
* @return array
public function rules()
return [
'title' => 'required|string|min:3|max:64',
'description' => 'required|string|min:3|max:2048'
];
* Get the error messages for the defined validation rules.
public function messages()
'required' => __('uploader::validation.required'),
'string' => __('uploader::validation.string'),
'min' => __('uploader::validation.min'),
'max' => __('uploader::validation.max'),
* Get custom attributes for validator errors.
public function attributes()
'title' => __('uploader::main.title'),
'description' => __('uploader::main.description'),