/**
  * Get the validation rules that apply to the request.
  *
  * @return array
  */
 public function rules()
 {
     if (Request::get('postcode') !== 'Collected') {
         return ['address1' => 'required', 'town' => 'required', 'county' => 'required', 'postcode' => 'required'];
     } else {
         return ['postcode' => 'required'];
     }
     Request::flash();
 }
 /**
  * Get the validation rules that apply to the request.
  *
  * @return array
  */
 public function rules()
 {
     return ['password' => 'required', 'email' => 'required'];
     Request::flash();
 }
 /**
  * Get the validation rules that apply to the request.
  *
  * @return array
  */
 public function rules()
 {
     return ['password' => 'required|min:6', 'password_confirmation' => 'required|same:password'];
     Request::flash();
 }
 /**
  * Get the validation rules that apply to the request.
  *
  * @return array
  */
 public function rules()
 {
     return ['enquiry' => 'required', 'name' => 'required', 'email' => 'required|email'];
     Request::flash();
 }
 /**
  * Get the validation rules that apply to the request.
  *
  * @return array
  */
 public function rules()
 {
     return ['firstname' => 'required', 'lastname' => 'required', 'phone' => 'required', 'email' => 'required|email|unique:users,email', 'password' => 'required|min:6', 'password_confirmation' => 'required|same:password'];
     Request::flash();
 }
 /**
  * Get the validation rules that apply to the request.
  *
  * @return array
  */
 public function rules()
 {
     return ['firstname' => 'required', 'lastname' => 'required', 'phone' => 'required', 'email' => 'required|email|unique:users,email,' . Auth::user()->id];
     Request::flash();
 }