We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c3fd12 commit fab6502Copy full SHA for fab6502
bootstrap/providers.php
@@ -4,8 +4,8 @@
4
App\Providers\AppServiceProvider::class,
5
];
6
7
-// Telescopeはローカル環境でのみ有効化
8
-if (app()->environment('local')) {
+// Telescopeはローカル環境でのみ有効化(クラスが存在する場合のみ)
+if (app()->environment('local') && class_exists(\Laravel\Telescope\TelescopeApplicationServiceProvider::class)) {
9
$providers[] = App\Providers\TelescopeServiceProvider::class;
10
}
11
config/telescope.php
@@ -16,7 +16,7 @@
16
|
17
*/
18
19
- 'enabled' => env('TELESCOPE_ENABLED', false),
+ 'enabled' => env('TELESCOPE_ENABLED', env('APP_ENV') === 'local'),
20
21
/*
22
|--------------------------------------------------------------------------
0 commit comments