Skip to content
This repository has been archived by the owner on Feb 8, 2021. It is now read-only.

error after a fresh installation login #30

Open
imanghafoori1 opened this issue May 17, 2014 · 8 comments
Open

error after a fresh installation login #30

imanghafoori1 opened this issue May 17, 2014 · 8 comments

Comments

@imanghafoori1
Copy link

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
Copy link
Owner

davzie commented May 17, 2014

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
Copy link
Author

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
Copy link

parabol commented Jun 8, 2014

+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
Copy link
Owner

davzie commented Jun 9, 2014

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

@imanghafoori1
Copy link
Author

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

@parabol
Copy link

parabol commented Jun 11, 2014

hmm... its dark magic i think.

@BMFX
Copy link

BMFX commented Jul 28, 2014

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
Copy link

+1. That fixed it. Thanks @BMFX

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants