Skip to content

A Laravel Pulse package that allows you to track what Artisan commands have been run on your server.

License

Notifications You must be signed in to change notification settings

geowrgetudor/command-history

Repository files navigation

Artisan command history for Laravel Pulse

Artisan command history for Laravel Pulse

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

View what artisan commands have been executed, how many times and if they were successful or failed.

Installation

You can install the package via composer:

composer require geowrgetudor/command-history

Optionally, you can publish the views using

php artisan vendor:publish --tag="command-history-views"

Usage

Register the recorder inside config/pulse.php. (If you don't have this file make sure you have published the config file of Laravel Pulse using php artisan vendor:publish --tag=pulse-config)

return [
    // ...

    'recorders' => [
        // Existing recorders...

        \Geow\CommandHistory\Recorders\CommandHistoryRecorder::class => [
            'enabled' => env('GEOW_COMMAND_HISTORY', true),
            'ignore' => [
                // Ignore any command like "route:list"
            ],
        ]
    ]
]

Publish Laravel Pulse dashboard.blade.php view using php artisan vendor:publish --tag=pulse-dashboard

Then you can modify the file and add the disk-metrics livewire template.

<livewire:command-history cols="full" />

Testing

composer test

Changelog

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

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

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

About

A Laravel Pulse package that allows you to track what Artisan commands have been run on your server.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published