All Projects → mojtabaahn → laravel-web-logs

mojtabaahn / laravel-web-logs

Licence: MIT license
View Laravel File-Based Logs In Web

Programming Languages

PHP
23972 projects - #3 most used programming language
javascript
184084 projects - #8 most used programming language
Vue
7211 projects
Blade
752 projects
CSS
56736 projects

Projects that are alternatives of or similar to laravel-web-logs

nippo
本アプリケーションはYAPC::Hokkaido 2016の「Vue.jsによるWebアプリケーション開発」用に実装したサンプルアプリケーションです。
Stars: ✭ 17 (-89.51%)
Mutual labels:  lumen
spring-data-starter
⚡️ A sample Spring Data Cassandra REST API
Stars: ✭ 36 (-77.78%)
Mutual labels:  dev
lumen-file-manager
File manager module for the Lumen PHP framework.
Stars: ✭ 40 (-75.31%)
Mutual labels:  lumen
lumen-newrelic
New Relic instrumentation for the Lumen framework
Stars: ✭ 26 (-83.95%)
Mutual labels:  lumen
laravel-lumen-mysql-encryption
Database fields encryption in laravel and lumen for mysql databases with native search.
Stars: ✭ 20 (-87.65%)
Mutual labels:  lumen
artisan-standalone
Allows you to use Artisan outside of a Laravel install.
Stars: ✭ 30 (-81.48%)
Mutual labels:  lumen
astra-tik-tok
A simple Tik Tok clone running on AstraDB that leverages the Document API.
Stars: ✭ 21 (-87.04%)
Mutual labels:  dev
hacktoberfest-2019
You can check the video here: #hacktoberfest
Stars: ✭ 28 (-82.72%)
Mutual labels:  dev
jacky
🐄 HTTP JSON API Client for Laravel & Lumen
Stars: ✭ 17 (-89.51%)
Mutual labels:  lumen
Laravel-Auto-Hard-Deleter
Laravel and Lumen Auto Hard Deleter
Stars: ✭ 34 (-79.01%)
Mutual labels:  lumen
Lumen-Doctrine-DDD-Example
Domain Driven Design Application Example, built with Lumen 5.3 and Doctrine.
Stars: ✭ 72 (-55.56%)
Mutual labels:  lumen
php-framework-benchmark
php framework benchmark (include laravel、symfony、silex、lumen、slim、yii2、tastphp etc)
Stars: ✭ 17 (-89.51%)
Mutual labels:  lumen
alipay
laravel lumen alipay 最简单,最安全,无验签,支付宝转账支付
Stars: ✭ 18 (-88.89%)
Mutual labels:  lumen
inspector-laravel
Connect your Laravel application to Inspector.
Stars: ✭ 164 (+1.23%)
Mutual labels:  lumen
sns-laravel
A library to enable sending and receiving broadcasts to and from SNS topics in Laravel and Lumen.
Stars: ✭ 23 (-85.8%)
Mutual labels:  lumen
nopdb
NoPdb: Non-interactive Python Debugger
Stars: ✭ 67 (-58.64%)
Mutual labels:  debugging-tools
PHP-Frameworks-Bench
Popular PHP Frameworks Benchmark.
Stars: ✭ 28 (-82.72%)
Mutual labels:  lumen
J.A.R.V.I.S
Just A Rather Very Intelligent System
Stars: ✭ 36 (-77.78%)
Mutual labels:  dev
lumen-api-starter
A starter project to develop API with Lumen 8.*
Stars: ✭ 42 (-74.07%)
Mutual labels:  lumen
baserepo
Base repository
Stars: ✭ 71 (-56.17%)
Mutual labels:  lumen

Banner

View Laravel/Lumen logs in browser.

Packagist License Packagist Version GitHub repo size Packagist Downloads

Disclaimer

This package is simply a lightweight web interface for Laravel and Lumen file-based logs. If you need an advanced debugging tool consider trying Telescope, Debugbar, Clockwork or Ray And if you need an error tracking software consider trying Sentry and Bugsnag.

Screen Shot

screen shot

Installation

You can install the package via composer:

composer require mojtabaahn/laravel-web-logs

Now publish package assets using this command:

php artisan vendor:publish --tag="web-logs-assets"

Optionally, you can publish the config file of the package.

php artisan vendor:publish --provider="Mojtabaahn\LaravelWebLogs\Providers\LaravelWebLogsServiceProvider" --tag="config"

Usage

Visit the web-logs/ route use the package. You can change this in the config file.

Configuration

This is the contents of the published config file:

use Mojtabaahn\LaravelWebLogs\Http\Middlewares\Authorize;

return [

    /*
    |--------------------------------------------------------------------------
    | Dashboard Enabled
    |--------------------------------------------------------------------------
    |
    | Here you may specify either dashboard is enabled or not
    |
    */

    'enabled' => env('WEB_LOGS_ENABLED', true),

    /*
    |--------------------------------------------------------------------------
    | Route Group Attributes
    |--------------------------------------------------------------------------
    |
    | This is the array configuring package route attributes. feel free
    | to edit route prefixes, middlewares and anything else.
    |
    | In case you want to add authorization using default auth driver,
    | uncomment web middleware.
    |
    */

    'route_group_attributes' => [
        'prefix' => env('WEB_LOGS_PATH', 'web-logs'),
        'middleware' => [
            // 'web',
            Authorize::class,
        ],
    ],

    /*
    |--------------------------------------------------------------------------
    | Chunk Size
    |--------------------------------------------------------------------------
    |
    | On each request from dashboard to it's back-end how many logs should
    | it read of specified log file. Setting this option to a big number
    | may reduce dashboard performance!
    |
    */

    'chunk_size' => env('WEB_LOGS_CHUNK_SIZE', 10),

    /*
    |--------------------------------------------------------------------------
    | Search Path
    |--------------------------------------------------------------------------
    |
    | Use this property to customize logs directory where package should
    | look for log files.
    |
    */

    'search_path' => storage_path('logs'),
];

Authorization

Web Logs is enabled by default for all users and guests. In case you want to authorize users before accessing it you must register a viewWebLogs ability. A good place to do this is in the AuthServiceProvider that ships with Laravel.

public function boot()
{
    $this->registerPolicies();

    Gate::define('viewWebLogs', function ($user = null) {
        // return true if access to web logs is allowed
    });
}

License

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].