tmdan/laravel-api-logger

Api Requests Logger for Laravel framework

v1.0.14 2021-10-12 14:44 UTC

This package is auto-updated.

Last update: 2024-05-12 20:40:06 UTC


README

This is a small package that can helps in debugging api logs. It can log request method, url, request payload, which models are retrieved, controller and method.

screenshot

Installation

  1. Install the package via composer
composer require tmdan/laravel-api-logger

Usage

  1. Publish the config file with:
php artisan vendor:publish --provider="Tmdan\ApiLogger\Providers\ApiLoggerServiceProvider"
  1. Run commands:
php artisan migrate
  1. Add to your .env file:
API_LOGGER_ENABLED=true
  1. Done!