merge([ 'opt_in' => $this->opt_in ? true : false, 'agree' => $this->agree ? true : false ]); return auth('customer')->check(); } /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { return \array_intersect_key(parent::rules(), [ 'firstname' => '', 'lastname' => '', 'birth_date' => '', 'address' => '', 'postcode' => '', 'country' => '', 'city' => '', 'phone' => '', 'opt_in' => '' ]); } }