Logs - Laravel
![Software License][ico-license]
, (*1)
Install
Via Composer, (*2)
``` bash
$ composer require dev4born/logs, (*3)
## Integration
In the `$providers` array add the `service providers` for this package.
dev4born\logs\LogsLaravelServiceProvider::class, (*4)
Create config file `config/logs.php` and add the following lines.
/**
*
* Warning! You can only grant one permissions from 2 available
*
* @package dev4born\logs
*
*/, (*5)
return [, (*6)
'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' => [
],
],
];, (*7)
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.'}, (*8)
There was an error.
{'error':'Perhaps an error occurred - check the logs/events.'}, (*9)
Messages can be implemented in the dashboard.
## Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.
## Testing
``` bash
$ composer test
Security
If you discover any security related issues, please email: milosz.nowak@dev4born.pro instead of using the issue tracker., (*10)
Credits
License
The MIT License (MIT). Please see License File for more information., (*11)
Screenshots
, (*12)