Skip to content

Instantly share code, notes, and snippets.

@localdisk
Last active August 29, 2015 13:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save localdisk/10944378 to your computer and use it in GitHub Desktop.
Save localdisk/10944378 to your computer and use it in GitHub Desktop.
Laravel 4.1.26 で UserInterface が変更されたので以下のメソッドを実装する必要があります
<?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