Skip to content

Commit 0a5a79b

Browse files
author
Martin Seysen
committed
Extend README.md with a "Laravel Sail" section
1 parent 45b0831 commit 0a5a79b

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,15 @@ There are also several debug options which can be adjusted using the following p
144144
*/
145145
'debug_output' => false,
146146
```
147+
### Laravel Sail support
148+
149+
If you are using Laravel Sail and maybe not lokal PHP is installed, you can adjust the following parameters in the git-hooks.php config file:
150+
151+
```php
152+
'use_sail' => env('GITHOOKS_USE_SAIL', false),
153+
```
154+
This will force the local git hooks to use the `sail` command to execute the hooks.
155+
147156
### Docker support
148157

149158
By default commands are executed locally, however this behavior can be adjusted for each hook using the parameters `run_in_docker` and `docker_container`:

config/git-hooks.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@
266266
| The `artisan_path` configuration is ignored.
267267
|
268268
*/
269-
'use_sail' => false,
269+
'use_sail' => env('GITHOOKS_USE_SAIL', false),
270270

271271
/*
272272
|--------------------------------------------------------------------------

0 commit comments

Comments
 (0)