Skip to content

Commit 871dcf5

Browse files
authored
Rewrites telescope (#9438)
1 parent ac96dfa commit 871dcf5

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

telescope.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,19 +48,14 @@ You may use the Composer package manager to install Telescope into your Laravel
4848
composer require laravel/telescope
4949
```
5050

51-
After installing Telescope, publish its assets using the `telescope:install` Artisan command. After installing Telescope, you should also run the `migrate` command in order to create the tables needed to store Telescope's data:
51+
After installing Telescope, publish its assets and migrations using the `telescope:install` Artisan command. After installing Telescope, you should also run the `migrate` command in order to create the tables needed to store Telescope's data:
5252

5353
```shell
5454
php artisan telescope:install
5555

5656
php artisan migrate
5757
```
5858

59-
<a name="migration-customization"></a>
60-
#### Migration Customization
61-
62-
If you are not going to use Telescope's default migrations, you should call the `Telescope::ignoreMigrations` method in the `register` method of your application's `App\Providers\AppServiceProvider` class. You may export the default migrations using the following command: `php artisan vendor:publish --tag=telescope-migrations`
63-
6459
<a name="local-only-installation"></a>
6560
### Local Only Installation
6661

@@ -74,7 +69,7 @@ php artisan telescope:install
7469
php artisan migrate
7570
```
7671

77-
After running `telescope:install`, you should remove the `TelescopeServiceProvider` service provider registration from your application's `config/app.php` configuration file. Instead, manually register Telescope's service providers in the `register` method of your `App\Providers\AppServiceProvider` class. We will ensure the current environment is `local` before registering the providers:
72+
After running `telescope:install`, you should remove the `TelescopeServiceProvider` service provider registration from your application's `bootstrap/providers.php` configuration file. Instead, manually register Telescope's service providers in the `register` method of your `App\Providers\AppServiceProvider` class. We will ensure the current environment is `local` before registering the providers:
7873

7974
/**
8075
* Register any application services.
@@ -113,11 +108,15 @@ If desired, you may disable Telescope's data collection entirely using the `enab
113108

114109
Without pruning, the `telescope_entries` table can accumulate records very quickly. To mitigate this, you should [schedule](/docs/{{version}}/scheduling) the `telescope:prune` Artisan command to run daily:
115110

116-
$schedule->command('telescope:prune')->daily();
111+
use Illuminate\Support\Facades\Schedule;
112+
113+
Schedule::command('telescope:prune')->daily();
117114

118115
By default, all entries older than 24 hours will be pruned. You may use the `hours` option when calling the command to determine how long to retain Telescope data. For example, the following command will delete all records created over 48 hours ago:
119116

120-
$schedule->command('telescope:prune --hours=48')->daily();
117+
use Illuminate\Support\Facades\Schedule;
118+
119+
Schedule::command('telescope:prune --hours=48')->daily();
121120

122121
<a name="dashboard-authorization"></a>
123122
### Dashboard Authorization

0 commit comments

Comments
 (0)