ollieread / multiauth

Laravel multi auth
441 stars 109 forks source link

User must implement Remindable interface #119

Closed atefBB closed 5 years ago

atefBB commented 6 years ago

Hi, I'm using this package to send a reminder to reset the user password. And I got the `User must implement Remindable interface` error.

my code look like this:

$response = Password::admin()->remind( Input::only('email'), function($message) { $message->subject( 'Password Reset' ); } );
if( $response === 'reminders.user' ) { $response = Password::user()->remind( Input::only('email'), function($message) { $message->subject( 'Password Reset' ); } );
}

In the `config/app.php` file I comment the default `'Illuminate\Auth\AuthServiceProvider'` and `'Illuminate\Auth\Reminders\ReminderServiceProvider'` and use the package ones.

In `config/auth.php` file I'm using this:
'multi' => array( 'admin' => array( 'driver' => 'eloquent', 'model' => 'Administrator' ), 'user' => array( 'driver' => 'database', 'table' => 'users' ) )

Any ideas? Thx