Skip to content

Commit 94c8d03

Browse files
authored
Removes wait for app boot for routes registration
Waiting for app to boot causes the routes to register late, at the end of the routes list. May cause overriding use defined routes. Or in my case, a "catch all" route which caught the `_grid-sortable_` route (because it was prior in the routes list).
1 parent e1bfbd5 commit 94c8d03

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/GridSortableServiceProvider.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,12 @@ public function boot(GridSortable $extension)
2323
);
2424
}
2525

26-
$this->app->booted(function () {
27-
GridSortable::routes(__DIR__.'/../routes/web.php');
28-
});
26+
GridSortable::routes(__DIR__.'/../routes/web.php');
2927

3028
Admin::booting(function () {
3129
Admin::headerJs('vendor/laravel-admin-ext/grid-sortable/jquery-ui.min.js');
3230
});
3331

3432
$extension->install();
3533
}
36-
}
34+
}

0 commit comments

Comments
 (0)