robertogallea / pulse-db-size
There is no license information available for the latest version (1.0.2) of this package.
Card for Laravel Pulse showing database table size
1.0.2
2024-11-13 09:22 UTC
Requires
- php: ^8.1
- illuminate/contracts: ^11.0
- laravel/pulse: ^1.2
- livewire/livewire: ^3.5
Requires (Dev)
- larastan/larastan: ^2.0
- laravel/pint: ^1.18
- orchestra/testbench: ^9.5
- pestphp/pest: ^3.5
This package is auto-updated.
Last update: 2024-11-13 15:48:19 UTC
README
Track database table size inside Pulse
This package defines a Pulse Recorder and Card showing information about database table size.
Installation
You can install the package via composer:
composer require robertogallea/pulse-db-size
Usage
Configuration
Add the provided recorder to your config/pulse.php
configuration file as follows.
'recorders' => [ // ... \Robertogallea\PulseDBSize\Recorders\DBSizeRecorder::class => [ 'enabled' => env('PULSE_DB_SIZE_RECORDER_ENABLED', true), // recorder switch 'throttle' => env('PULSE_DB_SIZE_RECORDER_THROTTLE', 15), // throttling time before refreshing table size 'connection' => env('PULSE_DB_SIZE_RECORDER_CONNECTION'), // database connection to use 'ignore' => [ // list of tables to ignore ] ], ]
Usage
Add the card to your dashboard by editing resources/views/vendor/pulse/dashboard.blade.php
<x-pulse> <livewire:pulse.dbsize cols="full" expand /> ... </x-pulse>
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
License
The MIT License (MIT). Please see License File for more information.