xxxxxxxxxx
if (Auth::check()) { // The user is logged in... }
xxxxxxxxxx
use Illuminate\Support\Facades\Auth;
// Retrieve the currently authenticated user...
$user = Auth::user();
// Retrieve the currently authenticated user's ID...
$id = Auth::id();