Skip to content

Commit

Permalink
Merge pull request #20 from duncanmcclean/fix/utility-not-registering
Browse files Browse the repository at this point in the history
Fix utility not registering
  • Loading branch information
duncanmcclean committed Jul 9, 2023
2 parents def4785 + 0b9d656 commit a6b8705
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/ServiceProvider.php
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 a6b8705

Please sign in to comment.