Shopping cart for authorized for a month, and for unauthorized for several hours Laravel

  cart, cookies, laravel, session

I have a session lifetime of 120 minutes in my Laravel config. How can you implement that for authorized users the goods are stored longer (for example, a month), and for unauthorized users, as usual, 120 minutes? I made a cart through the Session facade

If you need me to share the shopping cart code, please let me know.


Source: Laravel

Leave a Reply