app/Http/Requests/UserProfileRequest.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 [
            'bio'           => 'required|max:3200',
            'user_location' => 'required|min:3|max:32',
            'gender'        => 'in:male,female',
        ];
    }
public function rules ( ) { return [ 'bio' => 'required|max:3200' , 'user_location' => 'required|min:3|max:32' , 'gender' => 'in:male,female' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .