Laravel - Session - Deleting Data

The forget method will remove a piece of data from the session. If you would like to remove all data from the session, you may use the flush method:

    
    // Forget a single key...
    $request->session()->forget('name');
    
    // Forget multiple keys...
    $request->session()->forget(['name', 'status']);
    
    $request->session()->flush();