User must implement Remindable interface
atefBB opened this issue · 0 comments
atefBB commented
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