Support the ongoing development of Laravel.io →
posted 7 years ago
Authentication
Last updated 6 months ago.
0

Just a wild guess. But what I notice is that the your function retrieveByToken isn't using the same arguments as the interface.

Have you tried to replace


public function retrieveByToken()
  {
    return true;
  }

With this?

public function retrieveByToken($identifier, $token)
  {
    return true;
  }

0

After replacing with what you suggested above I get...

Declaration of Project\Providers\AuthUserProvider::updateRememberToken() must be compatible with Illuminate\Auth\UserProviderInterface::updateRememberToken(Illuminate\Auth\UserInterface $user, $token)
0

I got it working don't know how but all I did erased the last function and retyped everything... whitespace somewhere i don't know... I'm so lost but :) its working now.

0

Sign in to participate in this thread!

Full Stack Europe

Your banner here too?

nomie7 nomie7 Joined 2 Dec 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2022 Laravel.io - All rights reserved.