You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: telescope.md
+8-9Lines changed: 8 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -48,19 +48,14 @@ You may use the Composer package manager to install Telescope into your Laravel
48
48
composer require laravel/telescope
49
49
```
50
50
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:
52
52
53
53
```shell
54
54
php artisan telescope:install
55
55
56
56
php artisan migrate
57
57
```
58
58
59
-
<aname="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
-
64
59
<aname="local-only-installation"></a>
65
60
### Local Only Installation
66
61
@@ -74,7 +69,7 @@ php artisan telescope:install
74
69
php artisan migrate
75
70
```
76
71
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:
78
73
79
74
/**
80
75
* Register any application services.
@@ -113,11 +108,15 @@ If desired, you may disable Telescope's data collection entirely using the `enab
113
108
114
109
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:
115
110
116
-
$schedule->command('telescope:prune')->daily();
111
+
use Illuminate\Support\Facades\Schedule;
112
+
113
+
Schedule::command('telescope:prune')->daily();
117
114
118
115
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:
0 commit comments