Skip to content

Commit

Permalink
default route add, doc update
Browse files Browse the repository at this point in the history
  • Loading branch information
emtiazzahid committed Jan 25, 2023
1 parent 7cf0284 commit a63e5bd
Show file tree
Hide file tree
Showing 11 changed files with 6,631 additions and 46 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@ Git Log Laravel
[![Packagist](https://img.shields.io/packagist/v/emtiazzahid/git-log-laravel.svg)](https://packagist.org/packages/emtiazzahid/git-log-laravel)
[![Packagist](https://img.shields.io/packagist/l/emtiazzahid/git-log-laravel.svg)](https://packagist.org/packages/emtiazzahid/git-log-laravel)
[![Packagist](https://img.shields.io/packagist/dm/emtiazzahid/git-log-laravel.svg)](https://packagist.org/packages/emtiazzahid/git-log-laravel)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/7be7a05b07c94f319ec35f95a4d64074)](https://www.codacy.com/app/emtiazzahid/git-log-laravel.svg)
[![Author](https://img.shields.io/badge/author-@emtiaz_zahid-blue.svg)](https://twitter.com/emtiaz_zahid)

![capture d ecran 2020-1-23 a 10 37 18](https://github.com/emtiazzahid/git-log-laravel/blob/master/src/Example/screenshot.png?raw=true)

TL;DR
-----
Git Log Viewer for Laravel 5, 6. **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](https://github.com/rap2hpoutre/laravel-log-viewer)
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](https://github.com/rap2hpoutre/laravel-log-viewer)

Install (Laravel)
-----------------
Expand All @@ -25,12 +24,12 @@ Add Service Provider to `config/app.php` in `providers` section
Emtiazzahid\GitLogLaravel\GitLogServiceProvider::class,
```

Add a route in your web routes file:
Add or use existing route in your web routes file:
```php
Route::get('git_log', '\EmtiazZahid\GitLogLaravel\GitLogLaravelController@index');
Route::get('git-log', '\EmtiazZahid\GitLogLaravel\GitLogLaravelController@index')->name('git-log');
```

Go to `http://myapp/git_log` or some other route
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:

Expand Down
63 changes: 50 additions & 13 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,67 @@
{
"name": "emtiazzahid/git-log-laravel",
"description": "Git Log for Laravel",
"type": "library",
"description": "Git Logs for Laravel",
"homepage": "https://github.com/emtiazzahid/git-log-laravel",
"license": "MIT",
"type": "laravel-package",
"keywords": [
"log",
"git-log",
"git-log-view",
"git-log-laravel",
"logging",
"laravel",
"lumen"
],
"authors": [
{
"name": "Md. Emtiaz Zahid",
"email": "[email protected]"
"email": "[email protected]",
"role": "Developer"
}
],
"require": {
"php": ">=5.4.0"
"php": "^7.4|^8.0",
"illuminate/support": "^8.0"
},
"extra": {
"laravel": {
"providers": [
"EmtiazZahid\\GitLogLaravel\\GitLogServiceProvider"
]
}
"require-dev": {
"orchestra/testbench": "^6.0",
"phpunit/phpunit": "^9.0"
},
"autoload": {
"classmap": [
"src/controllers"
"src"
],
"psr-0": {
"psr-4": {
"EmtiazZahid\\GitLogLaravel\\": "src/"
}
}
},
"autoload-dev": {
"psr-4": {
"EmtiazZahid\\GitLogLaravel\\Tests\\": "tests"
}
},
"scripts": {
"test": "vendor/bin/phpunit",
"test-coverage": "vendor/bin/phpunit --coverage-html coverage"

},
"extra": {
"laravel": {
"providers": [
"EmtiazZahid\\GitLogLaravel\\GitLogLaravelServiceProvider"
],
"aliases": {
"GitLogLaravel": "EmtiazZahid\\GitLogLaravel\\GitLogLaravelFacade"
}
}
},
"config": {
"sort-packages": true,
"allow-plugins": {
"kylekatarnls/update-helper": true
}
},
"minimum-stability": "dev",
"prefer-stable": true
}
Loading

0 comments on commit a63e5bd

Please sign in to comment.