Skip to content

Commit 506f789

Browse files
committed
tele
1 parent fab6502 commit 506f789

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/Providers/AppServiceProvider.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ class AppServiceProvider extends ServiceProvider
1111
*/
1212
public function register(): void
1313
{
14-
//
14+
// ローカル環境のみTelescopeを登録
15+
if ($this->app->environment('local')) {
16+
$this->app->register(\Laravel\Telescope\TelescopeServiceProvider::class);
17+
$this->app->register(\App\Providers\TelescopeServiceProvider::class);
18+
}
1519
}
1620

1721
/**

0 commit comments

Comments
 (0)