This is the second part of Laravel E-Commerce Application Development tutorial series, in this part, we will set up the static assets using Laravel Mix.
You should have your e-commerce application project on your machine, which we set up in the last part of this series.
First thing first, we have to add a couple of lines in our .gitignore file. This file is used to list all folders and files which we don’t want to add to our Git repository. It’s always helpful to think ahead about any folders and files which you want to exclude from Git.
So let’s start, we know we will be building backend (Admin Section) and frontend (Store Website) in this series. So we will have to manage our backend assets and frontend assets. It’s entirely up to you how you want to manage your assets. I will be showing how I will manage the assets for this project (normally I use the modular structure for a project but this series is to help newbies so I will keep it simple).
Having said that, we will have to manage two folders for static assets in our public/ folder named backend and frontend (you can name them whatever you are fancy).
Also, we will have another folder named uploads where we will be uploading all our products and other images from the backend.
Open you .gitignore file from the root of your application and add a couple of below lines in it.
Read the full article at https://www.larashout.com/laravel-e-commerce-application-development-assets-setup-using-laravel-mix