Ecommerce Livewire is a practice using Laravel 10 join to Livewire in their V3. The main idea is a list of products with differents filters using Livewire, PHP Enums, PHP match and Laravel Pipelines.
Mixing all this can do use of the strategy pattern join to the factory pattern to handle all the filters having the logic of each filter in dedicated classes, allowing to scale the project easing being able to add new filter classes.
To install the project just is necessary follow these steps:
- Clone the repo
- copy the
.env.example
to a.env
file - Add your database credentials inside the
.env
file - Run the migrations and seeders with the command
php artisan migrate:fresh --seed