Download the PHP package idfx/laravel-disk-monitor without Composer
On this page you can find all versions of the php package idfx/laravel-disk-monitor. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download idfx/laravel-disk-monitor
More information about idfx/laravel-disk-monitor
Files in idfx/laravel-disk-monitor
Package laravel-disk-monitor
Short Description Monitor metrics of Laravel disk
License MIT
Homepage https://github.com/dj-idfx/laravel-disk-monitor
Informations about the package laravel-disk-monitor
Laravel Disk Monitor
Monitors the metrics of disks used by Laravel - Spatie package training.
Installation
You can install the package via composer:
You can publish and run the migrations with:
You can publish the config file with:
This is the contents of the published config file:
Finally, you should schedule the Spatie\DiskMonitor\Commands\RecordsDiskMetricsCommand to run daily.
Optionally, you can publish the views using
Usage
You can view the amount of files each monitored disk has, in the disk_monitor_entries table.
If you want to view the statistics in the browser add this macro to your routes file.
Now, you can see all statics when browsing /my-disk-monitor-url. Of course, you can use any url you want when using the diskMonitor route macro. We highly recommand using the auth middleware for this route, so guests can't see any data regarding your disks.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- David Carton
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-disk-monitor with dependencies
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^10.0||^11.0||^12.0