From cdae8fa5cdbe994dafd63037826481d8d9313e53 Mon Sep 17 00:00:00 2001 From: Duncan McClean Date: Mon, 27 Nov 2023 15:17:55 +0000 Subject: [PATCH] Remove call to `boot` from `routes` method We're getting the utilities using `->all()`, which calls `boot` if needed. --- src/CP/Utilities/UtilityRepository.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/CP/Utilities/UtilityRepository.php b/src/CP/Utilities/UtilityRepository.php index df73f7582d..ff4e714c27 100644 --- a/src/CP/Utilities/UtilityRepository.php +++ b/src/CP/Utilities/UtilityRepository.php @@ -76,8 +76,6 @@ public function findBySlug($slug) public function routes() { - $this->boot(); - Route::namespace('\\')->prefix('utilities')->name('utilities.')->group(function () { $this->all()->each(function ($utility) { if ($utility->action()) {