Skip to content

Commit

Permalink
updated route protection, composer version
Browse files Browse the repository at this point in the history
  • Loading branch information
jericoffeo committed Mar 12, 2020
1 parent ba98b92 commit 947c795
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
},
"require-dev": {
"phpunit/phpunit": "~6.0",
"laravel/laravel": "^6|^7",
"laravel/laravel": "~6.0",
"orchestra/testbench": "^4.0"
}
}
2 changes: 1 addition & 1 deletion src/BugphixServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ protected function registerRoutes()
private function isRouteProtected()
{
$prefix = $this->routeConfig()['prefix'] ?? $this->defaultAdminSlug;
$middleware = $this->routeConfig()['middleware'] ?? [];
$middleware = array_diff( $this->routeConfig()['middleware'] ?? [], ['web','api'] ); // excluding web and api as middleware
$isLocal = app()->environment('local');

return $isLocal || count($middleware) || ($prefix !== $this->defaultAdminSlug);
Expand Down
2 changes: 1 addition & 1 deletion src/Publishable/config/bugphix.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
|--------------------------------------------------------------------------
*/
'assets' => [
'url' => 'bugphix-assets' // modify this if you need to update the assets file path of bugphix, it will also accept full url
'url' => rtrim('/', env('APP_URL', '')) . '/bugphix-assets' // modify this if you need to update the assets file path of bugphix, it will also accept full url
],

/*
Expand Down

0 comments on commit 947c795

Please sign in to comment.