• Stars
    star
    3,041
  • Rank 14,828 (Top 0.3 %)
  • Language
    PHP
  • License
    MIT License
  • Created about 10 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

๐Ÿช Laravel log viewer

Laravel log viewer

Packagist Packagist Packagist Scrutinizer Code Quality Author

TL;DR

Log Viewer for Laravel 5, 6, 7, 8, 9 & 10 (still compatible with 4.2 too) and Lumen. Install with composer, create a route to LogViewerController. No public assets, no vendor routes, works with and/or without log rotate. Inspired by Micheal Mand's Laravel 4 log viewer (works only with laravel 4.1)

What ?

Small log viewer for laravel. Looks like this:

capture d ecran 2014-12-01 a 10 37 18

Install (Laravel)

Install via composer

composer require rap2hpoutre/laravel-log-viewer

Add Service Provider to config/app.php in providers section

Rap2hpoutre\LaravelLogViewer\LaravelLogViewerServiceProvider::class,

Add a route in your web routes file:

Route::get('logs', [\Rap2hpoutre\LaravelLogViewer\LogViewerController::class, 'index']);

Go to http://myapp/logs or some other route

Install (Lumen)

Install via composer

composer require rap2hpoutre/laravel-log-viewer

Add the following in bootstrap/app.php:

$app->register(\Rap2hpoutre\LaravelLogViewer\LaravelLogViewerServiceProvider::class);

Explicitly set the namespace in app/Http/routes.php:

$router->group(['namespace' => '\Rap2hpoutre\LaravelLogViewer'], function() use ($router) {
    $router->get('logs', 'LogViewerController@index');
});

Advanced usage

Customize view

Publish log.blade.php into /resources/views/vendor/laravel-log-viewer/ for view customization:

php artisan vendor:publish \
  --provider="Rap2hpoutre\LaravelLogViewer\LaravelLogViewerServiceProvider" \
  --tag=views

Edit configuration

Publish logviewer.php configuration file into /config/ for configuration customization:

php artisan vendor:publish \
  --provider="Rap2hpoutre\LaravelLogViewer\LaravelLogViewerServiceProvider"

Troubleshooting

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.

More Repositories

1

fast-excel

๐Ÿฆ‰ Fast Excel import/export for Laravel
PHP
1,784
star
2

vue-picture-swipe

๐Ÿ–ผ Vue Picture Swipe Gallery (a gallery of image with thumbnails, lazy-load and swipe) backed by photoswipe
Vue
383
star
3

pg-anonymizer

Dump anonymized PostgreSQL database with a NodeJS CLI
TypeScript
154
star
4

similar-text-finder

๐Ÿ PHP Similar Text Finder aka Fuzzy search. `Did you mean "banana"?`
PHP
132
star
5

laravel-stripe-connect

๐Ÿฆ“ Stripe Connect binding for Laravel
PHP
73
star
6

mysql-xplain-xplain

๐Ÿญ Explain Explainer for MySQL Queries.
PHP
53
star
7

laravel-epilog

๐Ÿˆ IP, referer, user ID and more in Laravel logs
PHP
25
star
8

taskz

๐Ÿก Sequential and parallel task list runner for terminal
JavaScript
23
star
9

laravel-prod-server

Install and run a production server for a Laravel application
22
star
10

create-user-command

๐Ÿฆ€ Create User with artisan
PHP
21
star
11

vue-quiz

Create a quiz withย Vue.js
HTML
20
star
12

laravel-credit-card-validator

๐Ÿฅ Laravel Credit Card Validator
PHP
19
star
13

landscape

Procedural landscape
Rust
17
star
14

jacky

๐Ÿ„ HTTP JSON API Client for Laravel & Lumen
PHP
17
star
15

llamassacre

Uncommented-spaghettiesque-dirty code. RUN AWAY.
Rust
15
star
16

remove-stop-words

Remove stop words from a string
PHP
15
star
17

htmltopdf

html to pdf website using wkhtmltopdf
Rust
9
star
18

vue-calendar

HTML
8
star
19

mongodb-anonymizer

Anonymize MongoDB database with a NodeJS CLI
TypeScript
8
star
20

uuid-rule

UUID validation rule for Laravel
PHP
7
star
21

mongodb-elasticsearch-sync

Copy data from MongoDB to Elasticsearch with a NodeJS CLI
TypeScript
6
star
22

voltaire

Proof-reading tool for PHP (spell checker, grammar fixer using LanguageTool)
PHP
6
star
23

facteur

Laravel deployer
Rust
4
star
24

nestor

๐Ÿน Do task, rollback if something goes wrong. Just like database transactions.
PHP
4
star
25

convert-accent-characters

Converts all UTF-8 accent characters to ASCII characters
PHP
4
star
26

midikaos

๐ŸŽท Standard MIDI Files Library website
TypeScript
3
star
27

glitcher-web

๐ŸŽต WAV glitcher, generate broken beats from sample loops
TypeScript
3
star
28

csv-to-associative-array

Get your CSV as an associative array
PHP
3
star
29

ortf

Statistiques de /r/france
TypeScript
2
star
30

react-fairy-tale-emoji

JavaScript
2
star
31

fuzzy-dubstep

Jeu HTML5/JS avec Quintus (+PHP pour generation) : simulation de prรฉparation de mariage
PHP
2
star
32

mynia

Unicorn name generator
Rust
1
star
33

drum-loop-glitcher-sonic-pi

work in progress
Ruby
1
star
34

find-the-cat

Find and click the cat.
JavaScript
1
star
35

indice

Hints for Laravel errors
Blade
1
star
36

420-bot

PHP
1
star
37

create-elasticsearch-dataset

Create a sample dataset for Elasticsearch with one command
TypeScript
1
star
38

drum-beats

Procedural Drum Beats website
Rust
1
star
39

starfield

Rust
1
star