Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 839 Bytes

README.md

File metadata and controls

39 lines (27 loc) · 839 Bytes

rest-api-example

Rest Api Example build on Laravel.
Laravel version: 8.81.0
Php version: 8.1.2
MySql version: 8.0.27

Installation

Use the git and composer to install

git clone https://github.com/barisakdemir/rest-api-example
cd rest-api-example/
cp .env.example .env

Edit .env file for MySql information then

composer install
php artisan key:generate
php artisan config:cache
php artisan migrate:refresh --seed
php artisan serve

Crontab jobs

30 9 * * *  wget http://127.0.0.1:8000/api/company/packages/receive-payments
*/5 * * * * php ~/folder/to/project/rest-api-example/artisan queue:work --stop-when-empty

Tests on postman import json

Postman Json File