Laravel - Session - Retrieving Deleting An Item

The pull method will retrieve and delete an item from the session in a single statement:

    
    $value = $request->session()->pull('key', 'default');