Laravel Logs - Non Blueprint
Product information
Release v1.1 (Updated )
Reviews
0 von 5 Sternen
407 downloads
View and Download Laravel Logs within the Admin Dashboard.
Release historyDescription
This is built for non-Blueprint users! Allows you to view and Download Laravel Logs in Admin View, allowing easier debugging!
Installation
Navigate to /var/www/pterodactyl/resources/views/layouts/admin.blade.php Find line 113, It should be the of Navigation Entry:
<a href="%7B%7B%20route('admin.users')%20%7D%7D">
<i class="fa fa-users"></i> <span>Users</span>
</a>
-- Line 113 should be This
Add this Below:
<a href="%7B%7B%20route('admin.laravel-logs.laravel')%20%7D%7D">
<i class="fa fa-file-text-o"></i> <span>System Logs</span>
</a>
Navigate to /var/www/pterodactyl/routes/admin.php, Go to the ned of the document and add this code:
/*
|--------------------------------------------------------------------------
| Laravel Logs Controller Routes [Euphoria Development]
|--------------------------------------------------------------------------
|
| Endpoint: /admin/laravel-logs
|
*/
Route::group(['prefix' => 'laravel-logs'], function () {
Route::get('/', [Admin\LaravelController::class, 'showLogs'])->name('admin.laravel-logs.laravel');
Route::get('/download', [Admin\LaravelController::class, 'downloadLogs'])->name('admin.laravel-logs.download');
});
Navigate to /var/www/pterodactyl/app/Http/Controllers/Admin, Add the LaravelController.php file to the Directory
Navigate to /var/www/pterodactyl/resources/views/admin, Add the laravel-logs folder and content to the Directory.