nycorp/lite-api

The skeleton application for the Laravel framework.

1.1.33 2024-11-23 10:08 UTC

This package is auto-updated.

Last update: 2024-11-23 10:09:19 UTC


README

  1. Log into database and into micro-service
  2. Swagger documentation using darkaonline/l5-swagger
  3. Service discovery using dcarbone/php-consul-api
  4. Jwt auth using tymon/jwt-auth
  5. SQL to migration using bennett-treptow/laravel-migration-generator
  6. SQL to model using reliese/laravel

Installation (with Composer)

composer require nycorp/lite-api

Usage

Logging :

Enable logger to call your remote logger service or log in app database

the default value is false

LOG_REMOTE=false

To enable log service in .env

LOG_CHANNEL=stack
LOG_STACK=daily,service_log
LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug

use the logger provide by Laravel as usual

Log::info("Delete: started {$this->modelLogger($id)} ");