dev4born / logs
Logs/events + API - Laravel
Requires
- php: ~5.5|~7.0
- illuminate/support: ~5.1
This package is not auto-updated.
Last update: 2025-07-23 08:03:05 UTC
README
Install
Via Composer
$ composer require dev4born/logs
Integration
In the $providers
array add the service providers
for this package.
dev4born\logs\LogsLaravelServiceProvider::class
Create config file config/logs.php
and add the following lines.
/**
*
* Warning! You can only grant one permissions from 2 available
*
* @package dev4born\logs
*
*/
return [
'settings' => [
/**
*
* Secret key - unique address for accessing logs
*
* http://{your-project}/laravel/{secret-key}/logs
*
*/
'secret' => '',
/**
*
* Allowed permissions (middleware) for accessing logs
*
* http://{your-project}/laravel/view/logs
*
*/
'middleware' => [
],
],
];
You can specify 2 permissions (secret key or middleware) for accessing logs.
Usage
Secret key
http://{your-project}/laravel/{your-secret-key}/logs
Middleware
http://{your-project}/laravel/view/logs
JSON API
Secret key
http://{your-project}/laravel/{your-secret-key}/logs/json
Middleware
http://{your-project}/laravel/view/logs/json
Output
There are no problems.
{'error':'Everything functions properly.'}
There was an error.
{'error':'Perhaps an error occurred - check the logs/events.'}
Messages can be implemented in the dashboard.
Changelog
Please see CHANGELOG for more information what has changed recently.
Testing
$ composer test
Security
If you discover any security related issues, please email: milosz.nowak@dev4born.pro instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.