Skip to content

Commit

Permalink
Remove call to boot from routes method
Browse files Browse the repository at this point in the history
We're getting the utilities using `->all()`, which calls `boot` if needed.
  • Loading branch information
duncanmcclean committed Nov 27, 2023
1 parent 17368bb commit cdae8fa
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/CP/Utilities/UtilityRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit cdae8fa

Please sign in to comment.