Crinsane / LaravelShoppingcart

A simple shopping cart implementation for Laravel
MIT License
3.68k stars 1.73k forks source link

Output order #47

Closed janisgitendorfs closed 10 years ago

janisgitendorfs commented 10 years ago

Current order is (A,B,C,D and so on) but there is no method to output cart items in order (D,C,B,A) without making a huge mess into code. For instance - If i want to show only last 3 items into cart there is no option for that.

janisgitendorfs commented 10 years ago

Please add into documentation that CartCollection extends Laravel Collection so you can use ->reverse() method and all Laravel support collection methods.

Crinsane commented 10 years ago

Already in the docs from day one:


These Collections extends the 'native' Laravel 4 Collection class, so all methods you know from this class can also be used on your shopping cart. With some addition to easily work with your carts content