From 0b9d65668952ccfc907c6a5453f28124a1cd6790 Mon Sep 17 00:00:00 2001 From: Duncan McClean Date: Sun, 9 Jul 2023 11:18:01 +0100 Subject: [PATCH] Fix utility not registering --- src/ServiceProvider.php | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/ServiceProvider.php b/src/ServiceProvider.php index 5662f67..df7c8c2 100644 --- a/src/ServiceProvider.php +++ b/src/ServiceProvider.php @@ -12,13 +12,15 @@ public function boot() { parent::boot(); - Utility::make('static-cache-manager') - ->title(__('Static Cache Manager')) - ->description(__('Clear specific paths in your static cache.')) - ->view('static-cache-manager::index') - ->icon('hammer-wrench') - ->routes(function ($router) { - $router->post('/clear', ClearController::class)->name('clear'); - }); + Utility::extend(function () { + Utility::register('static-cache-manager') + ->title(__('Static Cache Manager')) + ->description(__('Clear specific paths in your static cache.')) + ->view('static-cache-manager::index') + ->icon('hammer-wrench') + ->routes(function ($router) { + $router->post('/clear', ClearController::class)->name('clear'); + }); + }); } }