Hello, and sorry for the dumb questions
I'm using a fresh installation of Laravel 5.5 and I have some doubts about installing IDE Helper:
Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class, ? (please notice that I installed IDE Helper with --dev option)"post-update-cmd" command in composer.json file: so, how do I configure it to add the following lines?"scripts":{
"post-update-cmd": [
"Illuminate\\Foundation\\ComposerScripts::postUpdate",
"php artisan ide-helper:generate",
"php artisan ide-helper:meta",
"php artisan optimize"
]
},
Thanks a lot for your answers
Just add it to your composer file as another json attribute.
(Require is one of the attribute)
ex
{
"require" : {
[PACKAGES]
},
"scripts":{
"post-update-cmd": [
"Illuminate\\Foundation\\ComposerScripts::postUpdate",
"php artisan ide-helper:generate",
"php artisan ide-helper:meta",
"php artisan optimize"
]
}
}
"post-update-cmd", since it's a Composer hook. The new configuration is:json
"scripts": {
"post-update-cmd": [
"@php artisan ide-helper:generate",
"@php artisan ide-helper:meta"
]
},
Hope this helps 馃檪
@barryvdh all question where answered, IMHO this is good to be closed :}
Most helpful comment
"post-update-cmd", since it's a Composer hook. The new configuration is:json "scripts": { "post-update-cmd": [ "@php artisan ide-helper:generate", "@php artisan ide-helper:meta" ] },Hope this helps 馃檪