+ return baseUrl('/settings/users/' . $this->id);
+ }
+
+ /**
+ * Get the url that links to this user's profile.
+ * @return mixed
+ */
+ public function getProfileUrl()
+ {
+ return baseUrl('/user/' . $this->id);
+ }
+
+ /**
+ * Get a shortened version of the user's name.
+ * @param int $chars
+ * @return string
+ */
+ public function getShortName($chars = 8)
+ {
+ if (strlen($this->name) <= $chars) return $this->name;
+
+ $splitName = explode(' ', $this->name);
+ if (strlen($splitName[0]) <= $chars) return $splitName[0];
+
+ return '';
+ }
+
+ /**
+ * Send the password reset notification.
+ * @param string $token
+ * @return void
+ */
+ public function sendPasswordResetNotification($token)
+ {
+ $this->notify(new ResetPassword($token));