Skip to content

Commit

Permalink
+ register laravel\telescope when current environment is local
Browse files Browse the repository at this point in the history
  • Loading branch information
alirezaudev committed Sep 28, 2023
1 parent 7af5ecf commit aa7ea9a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
5 changes: 4 additions & 1 deletion app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ class AppServiceProvider extends ServiceProvider
*/
public function register()
{
//
if (app()->isLocal()) {
$this->app->register(\Laravel\Telescope\TelescopeServiceProvider::class);
$this->app->register(TelescopeServiceProvider::class);
}
}

/**
Expand Down
16 changes: 8 additions & 8 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit aa7ea9a

Please sign in to comment.