Created
September 28, 2016 23:04
-
-
Save da-n/be827d0161c5555c3e76e4ec247ba065 to your computer and use it in GitHub Desktop.
Laravel insert into array $key => $value in a session
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Session::put('cart', array_add($cart = Session::get('cart'), $product, $quantity)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment