Skip to content

Commit 6359d9a

Browse files
mfnnetpok
authored andcommitted
Update README to promote the post_discover hook
1 parent 30fba87 commit 6359d9a

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

README.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -88,16 +88,13 @@ Note: `bootstrap/compiled.php` has to be cleared first, so run `php artisan clea
8888

8989
This will generate the file `_ide_helper.php` which is expected to be additionally parsed by your IDE for autocomplete. You can use the config `filename` to change its name.
9090

91-
You can configure your `composer.json` to do this each time you update your dependencies:
92-
93-
```js
94-
"scripts": {
95-
"post-update-cmd": [
96-
"Illuminate\\Foundation\\ComposerScripts::postUpdate",
97-
"@php artisan ide-helper:generate",
98-
"@php artisan ide-helper:meta"
99-
]
100-
},
91+
You can use the `post_discover` config to run any artisan commands after installing/update packages:
92+
93+
```php
94+
'post_discover' => [
95+
'ide-helper:generate',
96+
'ide-helper:meta',
97+
],
10198
```
10299

103100
You can also publish the config file to change implementations (ie. interface to specific class) or set defaults for `--helpers`.

0 commit comments

Comments
 (0)