Update last logged in for client contact
This commit is contained in:
parent
90e711165b
commit
45d21eabb4
1 changed files with 3 additions and 0 deletions
|
|
@ -11,6 +11,7 @@
|
|||
|
||||
namespace App\Http\Controllers\Auth;
|
||||
|
||||
use App\Events\Contact\ContactLoggedIn;
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Models\ClientContact;
|
||||
use Auth;
|
||||
|
|
@ -62,6 +63,8 @@ class ContactLoginController extends Controller
|
|||
{
|
||||
Auth::guard('contact')->login($client, true);
|
||||
|
||||
event(new ContactLoggedIn($client));
|
||||
|
||||
if (session()->get('url.intended')) {
|
||||
return redirect(session()->get('url.intended'));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue