Skip to content

Commit

Permalink
Transfered inheritance from core to main package
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Helldar committed Nov 6, 2020
1 parent 66d6c36 commit 90a4f3f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"require": {
"php": "^7.2",
"ext-json": "*",
"andrey-helldar/laravel-routes-core": "^1.0",
"andrey-helldar/laravel-routes-core": "^1.2",
"andrey-helldar/support": "^1.22",
"illuminate/contracts": "^5.0|^6.0|^7.0|^8.0",
"illuminate/http": "^5.0|^6.0|^7.0|^8.0",
Expand Down
7 changes: 5 additions & 2 deletions src/Http/PrettyRoutesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@ public function show()
public function routes(Routes $routes)
{
$content = $routes
->hideMethods(config('pretty-routes.hide_methods', []))
->hideMatching(config('pretty-routes.hide_matching', []))
->setHideMethods(config('pretty-routes.hide_methods', []))
->setHideMatching(config('pretty-routes.hide_matching', []))
->setDomainForce(config('pretty-routes.domain_force', false))
->setUrl(config('app.url'))
->setNamespace(config('modules.namespace'))
->get();

return response()->json($content);
Expand Down

0 comments on commit 90a4f3f

Please sign in to comment.