Skip to content

Commit

Permalink
Fix utility not registering
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean committed Jul 9, 2023
1 parent def4785 commit 0b9d656
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
});
}
}

0 comments on commit 0b9d656

Please sign in to comment.