You can publish the config file with:
php artisan vendor:publish --provider="Salfade\Metric\MetricServiceProvider" --tag="config"
This is the contents of the published config file:
return [
];
php artisan metric:value UserCount
namespace App\Metrics;
use App\User;
use Salfade\Metric\Metrics\Value;
class UserCount extends Value
{
public $title = 'Total Users';
public $icon = 'Users';
public function url():string
{
return route('user.index');
}
public function value()
{
//@TODO return the value for the value metric
return User::count();
}
}
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.