| Package Data | |
|---|---|
| Maintainer Username: | g0110280 |
| Package Create Date: | 2016-12-27 |
| Package Last Update: | 2017-03-17 |
| Home Page: | |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-10-25 15:01:48 |
| Package Statistics | |
|---|---|
| Total Downloads: | 51 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 4 |
| Total Watchers: | 11 |
| Total Forks: | 1 |
| Total Open Issues: | 0 |
This package formats exceptions before they are written to laravel.log.
Install via composer
composer require unisharp/laravel-filemanager
Set up config/app.php
'providers' => [
...
Unisharp\Loggable\LoggableServiceProvider::class,
],
'aliases' => [
...
'Loggable' => Unisharp\Loggable\Facades\Loggable::class,
],
Replace default exception reporter in App\Exceptions\Handler.php
public function report(Exception $e)
{
// parent::report($e);
return \Loggable::report($e);
}
Simple log
404 not found. | (GET) http://your-domain/js/jquery.min.map | User ID : null | IP: 127.0.0.1
Model not found. | (GET) http://your-domain/article/999 | User ID : 6 | IP: 127.0.0.1
Detail log with trace and input
2016-11-17 19:03:46] local.DEBUG: {
"user_id": 4,
"ip": "::1",
"action_trace": {
"0": "Visited : OrderController | Action : create",
"1": "Visited : CartController | Action : count | Type : Ajax",
"2": "Visited : CartController | Action : show",
"3": "Visited : CartController | Action : count | Type : Ajax",
"4": "Visited : OrderController | Action : create",
"5": "Visited : CartController | Action : count | Type : Ajax",
"6": "Visited : OrderController | Action : store",
"FormRequest failed": {
"receiver_name": "",
"receiver_phone": "",
"note": "",
"_token": "Mvi43arsvzrqH5RuzQVPl0GdU2xVwE7FO79Lxw1A"
}
}
}