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: docs/pages/services/laravel-telescope.mdx
+15-31Lines changed: 15 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,33 +21,30 @@ Install, telescope as usual, via Composer package manager:
21
21
composer require laravel/telescope
22
22
```
23
23
24
-
### Step 2: Publish Telescope Assets
24
+
### Step 2: Add .env Configuration
25
+
26
+
Add the following configuration to your `.env` file:
27
+
28
+
```dotenv filename=".env"
29
+
...
30
+
31
+
DB_USE_TELESCOPE_LOGGER=true
32
+
33
+
...
34
+
```
35
+
36
+
### Step 3: Publish Telescope Assets
25
37
26
38
After installing Telescope, publish its assets and migrations using the `telescope:install` Artisan command.
27
39
28
40
```bash
29
41
php artisan telescope:install
30
42
```
31
43
32
-
### Step 3: Run Telescope Migrations trough Cycle-ORM-Adapter
44
+
### Step 4: Run Telescope Migrations trough Cycle-ORM-Adapter
33
45
34
46
After installing Telescope, you should also run the migrate command in order to create the tables needed to store Telescope's data, but as you are using Cycle ORM, you should avoid using default `php artisan migrate` command, and instead, do the following steps:
35
47
36
-
Edit `config/cycle.php` file and add the following code to the `tokenizer.directories` array:
Run the following command to create the Telescope tables:
52
49
53
50
```bash
@@ -56,8 +53,7 @@ php artisan cycle:migrate:init
56
53
php artisan cycle:orm:migrate --split --run
57
54
```
58
55
59
-
60
-
### Step 4: Add the CycleORM Query Watcher
56
+
### Step 5: Add the CycleORM Query Watcher
61
57
62
58
Next, edit your `config/telescope.php` configuration file and add the following lines to the `watchers` array, right after the default`Watchers\QueryWatcher::class` line:
63
59
@@ -85,18 +81,6 @@ return [
85
81
];
86
82
```
87
83
88
-
### Step 5: Add .env Configuration
89
-
90
-
Add the following configuration to your `.env` file:
91
-
92
-
```dotenv filename=".env"
93
-
...
94
-
95
-
DB_USE_TELESCOPE_LOGGER=true
96
-
97
-
...
98
-
```
99
-
100
84
### Step 6: Access Laravel Telescope
101
85
102
86
Finally, you may access the Telescope dashboard via the `/telescope` route. Of course, don't forget to start your Laravel application:
0 commit comments