При программировании моего приложения аутентификации на Laravel я столкнулся с ошибкой, которую я никогда раньше не видел. Я занимаюсь мозговым штурмом почти на час для решения этой проблемы, но пока не могу найти решение.
Ошибка:
Пользователь класса содержит 3 абстрактных метода и поэтому должен быть объявлен абстрактным или реализовать оставшиеся методы (Illuminate\Auth\UserInterface:: getRememberToken, Illuminate\Auth\UserInterface:: setRememberToken, Illuminate\Auth\UserInterface:: getRememberTokenName)
Модель User.php:
<?php
use Illuminate\Auth\UserInterface;
use Illuminate\Auth\Reminders\RemindableInterface;
class User extends Eloquent implements UserInterface, RemindableInterface {
protected $fillable = [
    "email",
    "username",
    "password",
    "password_temp",
    "code",
    "active",
    "created_at",
    "updated_at",
    "banned"
];
/**
 * The database table used by the model.
 *
 * @var string
 */
protected $table = 'users';
/**
 * The attributes excluded from the model JSON form.
 *
 * @var array
 */
protected $hidden = array('password');
/**
 * Get the unique identifier for the user.
 *
 * @return mixed
 */
public function getAuthIdentifier()
{
    return $this->getKey();
}
/**
 * Get the password for the user.
 *
 * @return string
 */
public function getAuthPassword()
{
    return $this->password;
}
/**
 * Get the e-mail address where password reminders are sent.
 *
 * @return string
 */
public function getReminderEmail()
{
    return $this->email;
}
}
И RegisterController.php
<?php
class RegisterController extends BaseController {
public function getRegister()
{
    return View::make('template.home.register');
}
public function postRegister()
{
    $rules = [
        "email"         => "required|email|max:50|unique:users",
        "username"      => "required|max:50|min:5|unique:users",
        "password"      => "required|max:50|min:6",
        "password_again"=> "required|same:password",
    ];
    $messages = ["required" => "This field is required." ];
    $validator = Validator::make(Input::all(), $rules, $messages);
    if($validator->fails())
    {
        return Redirect::route('register')->withErrors($validator)->withInput();
    } else {
        $email      = Input::get('email');
        $username   = Input::get('username');
        $password   = Input::get('password');
        $code       = str_random(60);
        $user = User::create([
            'email'         => $email,
            'username'      => $username,
            'password'      => Hash::make($password),
            'code'          => $code,
            'activated'     => 0,
            'banned'        => 0
        ]);
        if ($user)
        {
            Mail::send('template.email.activate', ['link' => URL::route('activate', $code), 'username' => $username], function($message) use ($user)
            {
                $message->to($user->email, $user->username)->subject('Account Registration');
            });
            return Redirect::route('register')->with('homeError', 'There was a problem creating your account.');
        }
    }
    return Redirect::route('register')->with('homeError', 'Account could not be created.');
}
}
