Skip to content

Commit

Permalink
Merge pull request #2 from vladkucherov/patch-1
Browse files Browse the repository at this point in the history
Removes wait for app boot for routes registration
  • Loading branch information
z-song authored Dec 11, 2019
2 parents e1bfbd5 + 94c8d03 commit 6fc0af7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/GridSortableServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,12 @@ public function boot(GridSortable $extension)
);
}

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

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

$extension->install();
}
}
}

0 comments on commit 6fc0af7

Please sign in to comment.