DEV Community

Remon Hasan
Remon Hasan

Posted on • Edited on

Shopping Cart Laravel 8: Part 02

Source Code

Github

Component Create

Create your own component for cart,product details and shop.
Then create a store function in shopcomponent.php as like:

Alt Text

pass the parameters to the product page as like by adding:

wire:click.prevent="store({{$product->id}},'{{$product->name}}',{{$product->regular_price}})"

Top comments (0)