Skip to content

Commit a63e5bd

Browse files
committed
default route add, doc update
1 parent 7cf0284 commit a63e5bd

11 files changed

+6631
-46
lines changed

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,13 @@ Git Log Laravel
44
[![Packagist](https://img.shields.io/packagist/v/emtiazzahid/git-log-laravel.svg)](https://packagist.org/packages/emtiazzahid/git-log-laravel)
55
[![Packagist](https://img.shields.io/packagist/l/emtiazzahid/git-log-laravel.svg)](https://packagist.org/packages/emtiazzahid/git-log-laravel)
66
[![Packagist](https://img.shields.io/packagist/dm/emtiazzahid/git-log-laravel.svg)](https://packagist.org/packages/emtiazzahid/git-log-laravel)
7-
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/7be7a05b07c94f319ec35f95a4d64074)](https://www.codacy.com/app/emtiazzahid/git-log-laravel.svg)
87
[![Author](https://img.shields.io/badge/author-@emtiaz_zahid-blue.svg)](https://twitter.com/emtiaz_zahid)
98

109
![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)
1110

1211
TL;DR
1312
-----
14-
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)
13+
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)
1514

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

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

33-
Go to `http://myapp/git_log` or some other route
32+
Go to `http://myapp/git-log` or some other route
3433

3534
**Optionally** publish `git.blade.php` into `/resources/views/vendor/git-log-laravel/` for view customization:
3635

composer.json

Lines changed: 50 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,67 @@
11
{
22
"name": "emtiazzahid/git-log-laravel",
3-
"description": "Git Log for Laravel",
4-
"type": "library",
3+
"description": "Git Logs for Laravel",
4+
"homepage": "https://github.com/emtiazzahid/git-log-laravel",
55
"license": "MIT",
6+
"type": "laravel-package",
7+
"keywords": [
8+
"log",
9+
"git-log",
10+
"git-log-view",
11+
"git-log-laravel",
12+
"logging",
13+
"laravel",
14+
"lumen"
15+
],
616
"authors": [
717
{
818
"name": "Md. Emtiaz Zahid",
9-
"email": "emtiazzahid@gmail.com"
19+
"email": "emtiazzahid@gmail.com",
20+
"role": "Developer"
1021
}
1122
],
1223
"require": {
13-
"php": ">=5.4.0"
24+
"php": "^7.4|^8.0",
25+
"illuminate/support": "^8.0"
1426
},
15-
"extra": {
16-
"laravel": {
17-
"providers": [
18-
"EmtiazZahid\\GitLogLaravel\\GitLogServiceProvider"
19-
]
20-
}
27+
"require-dev": {
28+
"orchestra/testbench": "^6.0",
29+
"phpunit/phpunit": "^9.0"
2130
},
2231
"autoload": {
2332
"classmap": [
24-
"src/controllers"
33+
"src"
2534
],
26-
"psr-0": {
35+
"psr-4": {
2736
"EmtiazZahid\\GitLogLaravel\\": "src/"
2837
}
29-
}
38+
},
39+
"autoload-dev": {
40+
"psr-4": {
41+
"EmtiazZahid\\GitLogLaravel\\Tests\\": "tests"
42+
}
43+
},
44+
"scripts": {
45+
"test": "vendor/bin/phpunit",
46+
"test-coverage": "vendor/bin/phpunit --coverage-html coverage"
47+
48+
},
49+
"extra": {
50+
"laravel": {
51+
"providers": [
52+
"EmtiazZahid\\GitLogLaravel\\GitLogLaravelServiceProvider"
53+
],
54+
"aliases": {
55+
"GitLogLaravel": "EmtiazZahid\\GitLogLaravel\\GitLogLaravelFacade"
56+
}
57+
}
58+
},
59+
"config": {
60+
"sort-packages": true,
61+
"allow-plugins": {
62+
"kylekatarnls/update-helper": true
63+
}
64+
},
65+
"minimum-stability": "dev",
66+
"prefer-stable": true
3067
}

0 commit comments

Comments
 (0)