Property | Type | Description | |
---|---|---|---|
$perPage | integer | ||
$showRoute | string |
Method | Description | |
---|---|---|
__construct ( ) | LogViewerController constructor. | |
delete ( Illuminate\Http\Request $request ) : Illuminate\Http\JsonResponse | Delete a log. | |
download ( string $date ) : |
Download the log | |
index ( ) : Illuminate\View\View | Show the dashboard. | |
listLogs ( Illuminate\Http\Request $request ) : Illuminate\View\View | List all logs. | |
show ( string $date ) : Illuminate\View\View | Show the log. | |
showByLevel ( string $date, string $level ) : Illuminate\View\View | Illuminate\Http\RedirectResponse | Filter the log entries by level. |
Method | Description | |
---|---|---|
calcPercentages ( array $total, array $names ) : array | Calculate the percentage. | |
getLogOrFail ( string $date ) : Arcanedev\LogViewer\Entities\Log | null | Get a log or fail | |
paginate ( array $data, Illuminate\Http\Request $request ) : Illuminate\Pagination\LengthAwarePaginator | Paginate logs. | |
prepareChartData ( |
Prepare chart data. |
public delete ( Illuminate\Http\Request $request ) : Illuminate\Http\JsonResponse | ||
$request | Illuminate\Http\Request | |
return | Illuminate\Http\JsonResponse |
protected getLogOrFail ( string $date ) : Arcanedev\LogViewer\Entities\Log | null | ||
$date | string | |
return | Arcanedev\LogViewer\Entities\Log | null |
public index ( ) : Illuminate\View\View | ||
return | Illuminate\View\View |
public listLogs ( Illuminate\Http\Request $request ) : Illuminate\View\View | ||
$request | Illuminate\Http\Request | |
return | Illuminate\View\View |
protected prepareChartData ( |
||
$stats | ||
return | string |
public showByLevel ( string $date, string $level ) : Illuminate\View\View | Illuminate\Http\RedirectResponse | ||
$date | string | |
$level | string | |
return | Illuminate\View\View | Illuminate\Http\RedirectResponse |