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
+32-6Lines changed: 32 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,17 +21,43 @@ Install, telescope as usual, via Composer package manager:
21
21
composer require laravel/telescope
22
22
```
23
23
24
-
### Step 2: Publish Telescope Assets and run Migrations
24
+
### Step 2: Publish Telescope Assets
25
25
26
-
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:
26
+
After installing Telescope, publish its assets and migrations using the `telescope:install` Artisan command.
27
27
28
28
```bash
29
29
php artisan telescope:install
30
+
```
31
+
32
+
### Step 3: Run Telescope Migrations trough Cycle-ORM-Adapter
33
+
34
+
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
+
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
+
53
+
```bash
54
+
php artisan cycle:migrate:init
55
+
56
+
php artisan cycle:orm:migrate --split --run
57
+
```
58
+
59
+
60
+
### Step 4: Add the CycleORM Query Watcher
35
61
36
62
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:
37
63
@@ -59,7 +85,7 @@ return [
59
85
];
60
86
```
61
87
62
-
### Step 4: Add .env Configuration
88
+
### Step 5: Add .env Configuration
63
89
64
90
Add the following configuration to your `.env` file:
65
91
@@ -71,7 +97,7 @@ DB_USE_TELESCOPE_LOGGER=true
71
97
...
72
98
```
73
99
74
-
### Step 5: Access Laravel Telescope
100
+
### Step 6: Access Laravel Telescope
75
101
76
102
Finally, you may access the Telescope dashboard via the `/telescope` route. Of course, don't forget to start your Laravel application:
0 commit comments