Sarav-S / Laravel-Multiauth

A Simple Laravel Package for handling multiple authentication
50 stars 8 forks source link

Laravel 5.1 sarav multiauth ResetsPasswords method postEmail not work #13

Closed dimuraz closed 8 years ago

dimuraz commented 8 years ago

I'm using sarav/multiauth and I'm trying to use the method postEmail.

But this would not be working for me. The problem is that this method find the user in other model and not the model I need.

I'm define the auth.php

'multi' => [ 'admin' => [ 'driver' => 'eloquent', 'model' => Infinito\Models\Admin::class, 'table' => 'admins' ], 'user' => [ 'driver' => 'eloquent', 'model' => Infinito\Models\User::class, 'table' => 'users' ] ], PasswordController.php

use Sarav\Multiauth\Foundation\ResetsPasswords;

public function __construct() { $this->user = "user"; } But when I call the method postEmail in vendor sarav ResetsPasswords.php

/**

I could see that the problem is here but I have no idea because.

$response = Password::sendResetLink($request->only('email'), function (Message $message) { $message->subject($this->getEmailSubject()); }); Any idea?

Sarav-S commented 8 years ago

Duplicate of #11