use Auth; $user_id = Auth::user()->id;
// Get the currently authenticated user's ID... $id = Auth::id();
$id = Auth::id();