Git Log Viewer for Laravel 5, 6, 7, 8 & 9. Install with composer, create a route to GitLogLaravelController
. No public assets, no vendor routes, works with and/or without log rotate. Inspired by rap2hpoutre's Laravel log viewer
Install via composer
composer require emtiazzahid/git-log-laravel
Add Service Provider to config/app.php
in providers
section
Emtiazzahid\GitLogLaravel\GitLogServiceProvider::class,
Add or use existing route in your web routes file:
Route::get('git-log', '\EmtiazZahid\GitLogLaravel\GitLogLaravelController@index')->name('git-log');
Go to http://myapp/git-log
or some other route
Optionally publish git.blade.php
into /resources/views/vendor/git-log-laravel/
for view customization:
php artisan vendor:publish \
--provider="EmtiazZahid\GitLogLaravel\GitLogServiceProvider" \
--tag=views
If you got a InvalidArgumentException in FileViewFinder.php
error, it may be a problem with config caching. Double check installation, then run php artisan config:clear
.