Skip to content

marchampson/laravel-konami-log-viewer

Repository files navigation

Laravel Logs in Popup Window

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This package will display your laravel log files in a popup window when you type in the Konami code key combination [up-up-down-down-left-right-left-right-B-A]. Once open you have the option to view any files in the log directory.

Installation

You can install the package via composer:

composer require marchampson/laravel-konami-log-viewer

You can publish the Javascript file with:

php artisan vendor:publish --tag="konami-log-viewer-assets"

Optionally, you can publish the views using

php artisan vendor:publish --tag="konami-log-viewer-views"

Usage

Once the assets are published (above). Call the JS file in your main layout file and then invoke using the key combination.

<script src="{{ asset('vendor/konami-log-viewer/js/konami-log-viewer.js')}}"></script>

Please remember that view-source will expose the key combination so that anyone will be able to view your logs. Future releases may address this but you could wrap the javascript call in a blade helper that only shows to users with a certain role.

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Security Vulnerabilities

This package is used entirely at your own risk. If you wish to report a vulnerability, please contact me directly.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

Laravel logs in popup window invoked by the Konami Code [up-up-down-down-left-right-left-right-B-A]

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •