vandyczech
1 year ago

Session remove item

Posted 1 year ago by vandyczech

I have this session has name services, how remove all 0 array from the session in Laravel?

// output session services

array:2 [▼
0 => array:8 [▶]
1 => array:8 [▶]
]

// this construction not work ...

session()->forget( session('services')[0] );

Please sign in or create an account to participate in this conversation.