Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ To change the keybinding, publish the configuration file by running:
php artisan vendor:publish --tag=wire-spy-config
```

Then, edit the `wire-spy.php` file in `config/wire-spy.php` to change the keybinding.

In a shared repoository where the keybding may need differ between developers, you can override the keybinding by setting an environment variable:, e.g.:

```dotenv
WIRE_SPY_KEYBINDING="ctrl.shift.y"
```

By default, WireSpy is enabled only in your `local` environment. You can override this in `config/wire-spy.php` or by setting an environment variable:

```dotenv
Expand Down
2 changes: 1 addition & 1 deletion config/wire-spy.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
* - 'super' corresponds to the 'Cmd' key on macOS and the 'Ctrl' key on Windows/Linux.
* - Combine with other keys using dot notation, like 'super.l' for 'Cmd+L' or 'Ctrl+L'.
*/
'keybinding' => 'super.l',
'keybinding' => env('WIRE_SPY_KEYBINDING', 'super.l'),
];