Skip to content

Commit 947c795

Browse files
committed
updated route protection, composer version
1 parent ba98b92 commit 947c795

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
},
4848
"require-dev": {
4949
"phpunit/phpunit": "~6.0",
50-
"laravel/laravel": "^6|^7",
50+
"laravel/laravel": "~6.0",
5151
"orchestra/testbench": "^4.0"
5252
}
5353
}

src/BugphixServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ protected function registerRoutes()
6767
private function isRouteProtected()
6868
{
6969
$prefix = $this->routeConfig()['prefix'] ?? $this->defaultAdminSlug;
70-
$middleware = $this->routeConfig()['middleware'] ?? [];
70+
$middleware = array_diff( $this->routeConfig()['middleware'] ?? [], ['web','api'] ); // excluding web and api as middleware
7171
$isLocal = app()->environment('local');
7272

7373
return $isLocal || count($middleware) || ($prefix !== $this->defaultAdminSlug);

src/Publishable/config/bugphix.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
|--------------------------------------------------------------------------
3131
*/
3232
'assets' => [
33-
'url' => 'bugphix-assets' // modify this if you need to update the assets file path of bugphix, it will also accept full url
33+
'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
3434
],
3535

3636
/*

0 commit comments

Comments
 (0)