Laravel - Session - #Incrementing And Decrementing Session Values

If your session data contains an integer you wish to increment or decrement, you may use the increment and decrement methods:

    
    $request->session()->increment('count');
    
    $request->session()->increment('count', $incrementBy = 2);
    
    $request->session()->decrement('count');
    
    $request->session()->decrement('count', $decrementBy = 2);