I created a simple implementation of the Stock Management based on the requirements.
- Clone this project.
- Create a database named
stock
- Create a .env by copying .env.example and fillout the following:
DB_CONNECTION=mysql
DB_HOST=
DB_PORT=3306
DB_DATABASE=
DB_USERNAME=
DB_PASSWORD=
- run
composer install
- run
php artisan migrate
- you may visit the site using the proper
APP_URL
set on .env.
- Go to Navigation > Shop > Inventory
- Click add new and filllout the form.
- Click Submit
- Go to Navigation > Inventory
- Listed are the products
- To update, go to the
Action
column and click the icon. - Updte the product info and click
Update
- Go to Home
- Set Quantity
- Add to Cart
- You may add as many items as long as not out of stock
- On the navigation bar, click the cart icon. You'll be redirected to the list of ordered items.
- You
may find products
to go back to the list of items; - You may click
pay
to fully record the order.
- Go to navigation bar > Shop > Oders
- Listed are the created oders.
- You may view individual records to see the items included.