Sounds like you need to implement the RemindableInterface into your AdminController
class Admincontroller extends BaseController implements RemindableInterface {
public function __construct(\Tamevent $eventObj) {
...
There is no prolem with AdminController but SectionsController where i am using Auth::check() to check whether user is logged in or not.
Sorry my bad, did you try to implement RemindableInterface in SectionController?
I don't think that RemindableInterface needs to be implemented for Sections because it has nothing to do with password reminder or anything else. I simply want to check whether user is logged in or not for SectionsController
I think this applies to you: http://stackoverflow.com/questions/23094374/laravel-unexpected-error-class-user-contains-3-abstract-methods
"If you are using the Eloquent authentication driver, update your User class with the following three methods:"
public function getRememberToken()
{
return $this->remember_token;
}
public function setRememberToken($value)
{
$this->remember_token = $value;
}
public function getRememberTokenName()
{
return 'remember_token';
}
I hope this helps.
SOLUTION
Sorry guys, but i got the solution.
After re-overridding the auth model by adding below line in the SectionsController.php, it worked !!
Config::set('auth.model','Admin');
@MarkGavalda, the code you suggested was already available in my user model. The problem was i had changed the auth model for admin authentication by adding the above code in the constructor of AdminController.php. So i think it is mandatory that there will need to set this model for each controller otherwise it will point to default Auth model "Users".
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community