Browse Source

Merge branch 'master' into develop

Taylor Otwell 11 years ago
parent
commit
b8c57358d9
1 changed files with 31 additions and 0 deletions
  1. 31 0
      app/models/User.php

+ 31 - 0
app/models/User.php

@@ -39,6 +39,37 @@ class User extends Eloquent implements UserInterface, RemindableInterface {
 		return $this->password;
 	}
 
+	/**
+	 * Get the token value for the "remember me" session.
+	 *
+	 * @return string
+	 */
+	public function getRememberToken()
+	{
+		return $this->remember_token;
+	}
+
+	/**
+	 * Set the token value for the "remember me" session.
+	 *
+	 * @param  string  $value
+	 * @return void
+	 */
+	public function setRememberToken($value)
+	{
+		$this->remember_token = $value;
+	}
+
+	/**
+	 * Get the column name for the "remember me" token.
+	 *
+	 * @return string
+	 */
+	public function getRememberTokenName()
+	{
+		return 'remember_token';
+	}
+
 	/**
 	 * Get the e-mail address where password reminders are sent.
 	 *