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 506f789 commit cae82a1Copy full SHA for cae82a1
app/Providers/AppServiceProvider.php
@@ -11,10 +11,12 @@ class AppServiceProvider extends ServiceProvider
11
*/
12
public function register(): void
13
{
14
- // ローカル環境のみTelescopeを登録
+ // ローカル環境のみTelescopeを登録(class_existsチェック追加)
15
if ($this->app->environment('local')) {
16
- $this->app->register(\Laravel\Telescope\TelescopeServiceProvider::class);
17
- $this->app->register(\App\Providers\TelescopeServiceProvider::class);
+ if (class_exists(\Laravel\Telescope\TelescopeServiceProvider::class)) {
+ $this->app->register(\Laravel\Telescope\TelescopeServiceProvider::class);
18
+ $this->app->register(\App\Providers\TelescopeServiceProvider::class);
19
+ }
20
}
21
22
0 commit comments