Skip to content

Commit e6e951a

Browse files
committed
readme info
1 parent 363e38d commit e6e951a

File tree

2 files changed

+68
-1
lines changed

2 files changed

+68
-1
lines changed

LICENSE

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2020-present emtiazzahid
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
22+

README.md

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,46 @@
1-
# GIT LOG LARAVEL
1+
Git Log Laravel
2+
==================
3+
4+
[![Packagist](https://img.shields.io/packagist/v/emtiazzahid/git-log-laravel.svg)](https://packagist.org/packages/emtiazzahid/git-log-laravel)
5+
[![Packagist](https://img.shields.io/packagist/l/emtiazzahid/git-log-laravel.svg)](https://packagist.org/packages/emtiazzahid/git-log-laravel)
6+
[![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)
8+
[![Author](https://img.shields.io/badge/author-@emtiaz_zahid-blue.svg)](https://twitter.com/emtiaz_zahid)
9+
10+
11+
TL;DR
12+
-----
13+
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)
14+
15+
Install (Laravel)
16+
-----------------
17+
Install via composer
18+
```
19+
composer require emtiazzahid/git-log-laravel
20+
```
21+
22+
Add Service Provider to `config/app.php` in `providers` section
23+
```php
24+
Emtiazzahid\GitLogLaravel\GitLogServiceProvider::class,
25+
```
26+
27+
Add a route in your web routes file:
28+
```php
29+
Route::get('git_log', '\EmtiazZahid\GitLogLaravel\GitLogLaravelController@index');
30+
```
31+
32+
Go to `http://myapp/git_log` or some other route
33+
34+
**Optionally** publish `git.blade.php` into `/resources/views/vendor/git-log-laravel/` for view customization:
35+
36+
```
37+
php artisan vendor:publish \
38+
--provider="EmtiazZahid\GitLogLaravel\GitLogServiceProvider" \
39+
--tag=views
40+
```
41+
42+
Troubleshooting
43+
---------------
44+
45+
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`.
46+

0 commit comments

Comments
 (0)