anamarijapapic/laravel-disk-monitor

Monitor metrics of Laravel disks.

0.0.2 2023-07-06 14:19 UTC

README

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

Monitor metrics of Laravel disks.
(Spatie Laravel Package Training v2.0 - Creating a Laravel package)

Installation

You can install the package via composer:

composer require anamarijapapic/laravel-disk-monitor

You can publish and run the migrations with:

php artisan vendor:publish --tag="disk-monitor-migrations"
php artisan migrate

You can publish the config file with:

php artisan vendor:publish --tag="disk-monitor-config"

This is the contents of the published config file:

return [
    /**
     * The names of the disks you want to monitor.
     */
    'disk_names' => [
        'local',
    ],
];

Optionally, you can publish the views using

php artisan vendor:publish --tag="disk-monitor-views"

Usage

php artisan disk-monitor:record-metrics

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.