login authentication laravel api code example
Example 1: laravel auth namespace
use Illuminate\Support\Facades\Auth;
Example 2: laravel force login by id
Auth::login($user);
use Illuminate\Support\Facades\Auth;
Auth::login($user);