Set telescope package for local development only

This commit is contained in:
Amir
2023-03-05 15:14:21 +08:00
parent fd2d6ff6a6
commit 86f1ff983b
3 changed files with 8 additions and 2 deletions
+4
View File
@@ -14,6 +14,10 @@ class AppServiceProvider extends ServiceProvider
public function register()
{
//
if ($this->app->environment('local')) {
$this->app->register(\Laravel\Telescope\TelescopeServiceProvider::class);
$this->app->register(TelescopeServiceProvider::class);
}
}
/**