app/Http/Requests/ManufacturerRequest.php
/**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
Get the validation rules that apply to the request.
@return array
Get the validation rules that apply to the request . @return array
public function rules()
    {
        return [
            'name'          => 'required|min:3|max:255|unique:manufacturers',
            'founded_on'    => 'required|date|before:tomorrow',
        ];
    }
public function rules ( ) { return [ 'name' => 'required|min:3|max:255|unique:manufacturers' , 'founded_on' => 'required|date|before:tomorrow' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .