manually authenticating users laravel code example
Example 1: get user auth in laravel
Auth::user();
Example 2: laravel auth namespace
use Illuminate\Support\Facades\Auth;
Example 3: laravel force login by id
Auth::login($user);
Auth::user();
use Illuminate\Support\Facades\Auth;
Auth::login($user);