ID -Benutzer anmelden LaRavel
use Auth;
$user_id = Auth::user()->id;
Innocent Ibis
use Auth;
$user_id = Auth::user()->id;
$id = Auth::user()->id;print_r($id);
use Illuminate\Support\Facades\Auth;
$userId = Auth::id();
// Get the currently authenticated user's ID...
$id = Auth::id();
$id = \Auth::id();