[Solved] Laravel – only a zero is saved to the database
Check field datatype.if you want to store string you have to change your ‘title’ field datatype to varchar. hope it works. solved Laravel – only a zero is saved to the database
Check field datatype.if you want to store string you have to change your ‘title’ field datatype to varchar. hope it works. solved Laravel – only a zero is saved to the database
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 of … Read more