[Solved] Laravel – only a zero is saved to the database
[ad_1] Check field datatype.if you want to store string you have to change your ‘title’ field datatype to varchar. hope it works. [ad_2] solved Laravel – only a zero is saved to the database
[ad_1] Check field datatype.if you want to store string you have to change your ‘title’ field datatype to varchar. hope it works. [ad_2] solved Laravel – only a zero is saved to the database
[ad_1] In your question, you say that you’re calling a method getTotal(), but there’s no such method in the code sample you’re linking to. I’m going to assume that you meant getPrice(). If a user has many carts, you can’t get a single one with just $user->cart, since that will contain the Collection of all … Read more