davzie / laravel-bootstrap

[DEPRECATED] A Laravel 4, Bootstrap 3 CMS Built With SOLID Principles In Mind
Other
558 stars 171 forks source link

error after a fresh installation login #30

Open imanghafoori1 opened 10 years ago

imanghafoori1 commented 10 years ago

Symfony \ Component \ Debug \ Exception \ FatalErrorException Class User contains 3 abstract methods and must therefore be declared abstract or implement the remaining methods (Illuminate\Auth\UserInterface::getRememberToken, Illuminate\Auth\UserInterface::setRememberToken, Illuminate\Auth\UserInterface::getRememberTokenName)

open: C:\wamp\www\laravelCms\vendor\laravel\laravel\app\models\User.php * @return string */ public function getReminderEmail() { return $this->email; }

davzie commented 10 years ago

Sounds like you have an out of date Laravel install maybe. I don't really know how to help troubleshoot Windows based issues.

On Sat, May 17, 2014 at 11:54 AM, imanghafoori1 notifications@github.com wrote:

Symfony \ Component \ Debug \ Exception \ FatalErrorException Class User contains 3 abstract methods and must therefore be declared abstract or implement the remaining methods (Illuminate\Auth\UserInterface::getRememberToken, Illuminate\Auth\UserInterface::setRememberToken, Illuminate\Auth\UserInterface::getRememberTokenName) open: C:\wamp\www\laravelCms\vendor\laravel\laravel\app\models\User.php

imanghafoori1 commented 10 years ago

my laravel version is 4.1 sir... :( Ok i try solve it and report the solution as well as what has had caused it ... Thank you for your response

parabol commented 10 years ago

+1 when i try to install laravel-bootstrap with L4.1, it installs. but i get error during login process.

"Symfony \ Component \ Debug \ Exception \ FatalErrorException

Trait 'Illuminate\Auth\UserTrait' not found"

UserTrait for 4.2??

when i try to install laravel-bootstrap with 4.2. composer doesnt like laravel-bootstrap... :/

davzie commented 10 years ago

Let me take a look at this tomorrow mate, I've no-doubt done something very stupid.

imanghafoori1 commented 10 years ago

My problem is solved ! I had a faulty installation Laravel :D thank you anyway...

parabol commented 10 years ago

hmm... its dark magic i think.

BMFX commented 10 years ago

For the record I had the same problem - really simple solution, should anyone else have the problem.

http://stackoverflow.com/questions/23094374/laravel-unexpected-error-class-user-contains-3-abstract-methods

Just add the following to the bottom of the app/models/User.php Just before the final }.

public function getRememberToken()
{
    return $this->remember_token;
}

public function setRememberToken($value)
{
    $this->remember_token = $value;
}

public function getRememberTokenName()
{
    return 'remember_token';
}
connecteev commented 9 years ago

+1. That fixed it. Thanks @BMFX