This is a simple API for organize kost's data by doing CRUD.
This project using Laravel 8 with Laravel Sanctum for Authentication.
-
PHP 7.4.3
-
Laravel 8.37.0
-
Laravel Sanctum for Authentication
Please open this documentation link for how to use this API.
This project also implement scheduled task for recharge point on the first day of every month at 00:00 named monthly:recharge.
To run manually the scheduling:
- Check the task
php artisan list
- Run the task
php artisan monthly:recharge
or you can use Crontab:
- Open crontab file
crontab -e
- Edit crontab file and add
0 0 1 * * cd /your-project-path && php artisan monthly:recharge >> /dev/null 2>&1
- Clone this Repo
git clone https://github.com/lulu8879/simple-kost-api-laravel.git
- Copy file .env.example and rename it to .env
cp .env.example .env
-
Edit .env, fill DB setting and save
-
Migrate DB
php artisan migrate
- Run the project
php artisan serve