Multi language product CRUD in Laravel 7.
Requirements: https://laravel.com/docs/7.x/installation#server-requirements
git clone https://github.com/bala92x/product-crud.gitcd product-crudcomposer installCreate .env file
cp .env.example .envGenerate application key
php artisan key:generateThe application needs the following environment variables:
DB_CONNECTION=
DB_HOST=
DB_PORT=
DB_DATABASE=
DB_USERNAME=
DB_PASSWORD=php artisan migrate --seedphp artisan serve- Products index -
GET|HEAD /api/products/-Params: page|limit - Product store -
POST /api/products/-Content-type: application/json - Product show -
GET|HEAD /api/products/:id - Product update -
PUT|PATCH /api/products/:id-Content-type: application/json - Product destroy -
DELETE /api/products/:id
- Version -
GET /api - File upload -
POST /api/files-Content-type: multipart/form-data - Page not found -
GET /404
All example requests and responses can be found in the postman_collection.json file.
The DB schema plan can be found here: https://dbdiagram.io/d/5d9c6358ff5115114db505a1
composer testor
php artisan test