- Clone the repo and
cd
into it composer install
- Rename or copy
.env.example
file to.env
php artisan key:generate
- Set your database credentials in your
.env
file - Set
ADMIN_PASSWORD
in your.env
file if you want to specify an admin password. If not, the default password is 'password' php artisan ecommerce:install
. This will migrate the database and run any seeders necessary.npm install
npm run dev
php artisan serve
or use Laravel Valet or Laravel Homestead- Visit
localhost:8000
in your browser - Visit
/admin
if you want to access the Voyager admin backend. Admin User/Password:[email protected]/password
. Admin Web User/Password:[email protected]/password
I originally used the Crinsane/LaravelShoppingcart package but it is slow to update to the latest versions of Laravel. I now use hardevine/LaravelShoppingcart which is a forked version that updates quicker.
If you would like to follow along from a particular point, follow these instructions. I'm going to be starting from my starting point in the first video of the series. You can choose any point by replacing the hash with any particular commit.
- Clone the repo and
cd
into it git checkout f4f651a8a35ebb2ff38ba15771fd65c93051f942
- Follow the rest of the steps above. Instead of
php artisan ecommerce:install
, migrate and seed the normal way withphp artisan migrate --seed