Last active
August 29, 2015 13:59
-
-
Save localdisk/10944378 to your computer and use it in GitHub Desktop.
Laravel 4.1.26 で UserInterface が変更されたので以下のメソッドを実装する必要があります
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class User extends Eloquent implements UserInterface, RemindableInterface { | |
// 新たに追加されたメソッドを実装すべし | |
/** | |
* 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'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment