Commit Graph
5 Commits
Author SHA1 Message Date
KKlochko 76f6c699aa Fix the method, isEmpty, in the Cart model. 2023-06-18 17:35:09 +03:00
KKlochko 0c2f6355cf Add methods to add and remove Items from a Cart. 2023-06-18 17:34:23 +03:00
KKlochko 814eb18028 Update the setCity method in the Cart model. 2023-06-18 16:15:22 +03:00
KKlochko ea120c8c9c Update User, Cart models.
Added isEmpty (no items), setCity, dropItems to Cart.
The cart field, company, was made nullable.

Updated the user field from name to username and made it unique.
2023-06-16 16:50:12 +03:00
KKlochko 4a4d5e7335 Add Cart model, resource and its API, Pivot table with Items.
Update Items model to have relationship with cart.
2023-06-15 17:43:59 +03:00