diff --git a/README.md b/README.md index 55a09b5..296a34b 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/config/wire-spy.php b/config/wire-spy.php index 1d83eaa..b986cc9 100644 --- a/config/wire-spy.php +++ b/config/wire-spy.php @@ -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'), ];