Skip to content

Commit

Permalink
feat: enable telescope locally
Browse files Browse the repository at this point in the history
  • Loading branch information
pushpak1300 committed Jan 22, 2025
1 parent 08e76c2 commit 061d8b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ public function register(): void
* @see https://laravel.com/docs/telescope
* @see migrations/0001_01_01_000009_create_telescope_entries_table.php
*/
if (App::isLocal()) {
App::singleton(\Laravel\Telescope\TelescopeServiceProvider::class);
App::singleton(TelescopeServiceProvider::class);
if ($this->app->environment('local') && class_exists(\Laravel\Telescope\TelescopeServiceProvider::class)) {
$this->app->register(\Laravel\Telescope\TelescopeServiceProvider::class);
$this->app->register(TelescopeServiceProvider::class);
}
}

Expand Down

0 comments on commit 061d8b0

Please sign in to comment.