DETECTING REMEMBER ME LOGINS

Jun 29, 2024

If your application offers "remember me" functionality, you may use the viaRemember method to determine if the currently authenticated user was authenticated using the "remember me" cookie:

 

use Illuminate\Support\Facades\Auth;

if (Auth::guard('web')->viaRemember()) {
    // ...
}

AI Assistant

Choose AI provider

Text Tools

Make content clear and easy to read

Ask a Question

Get clear answers based on this content

0/500
Mahmoud Ramadan

Mahmoud Ramadan

Mahmoud is the creator of Digging Code and a contributor to Laravel since 2020.