['required', 'string', 'max:120'], 'last_name' => ['required', 'string', 'max:120'], 'email' => ['required', 'string', 'lowercase', 'email', 'max:255', Rule::unique((new User())->getTable(), 'email')], 'password' => ['required', Password::defaults()], 'terms' => ['accepted'], 'marketing_opt_in' => ['nullable', 'boolean'], ]; } public function fullName(): string { return trim($this->string('first_name')->toString().' '.$this->string('last_name')->toString()); } }