In composer.json there is the scripts section;
"scripts": {
"post-install-cmd": [
"php artisan clear-compiled",
"php artisan optimize"
],
"post-update-cmd": [
"php artisan clear-compiled",
"php artisan optimize"
],
"post-create-project-cmd": [
"php -r \"copy('.env.example', '.env');\"",
"php artisan key:generate"
]
I've never noticed it has fired.
Does this only fire on the [composer install] command?
To get it to fire I used
composer run-script post-create-project-cmd
Saves me time when making the .env file
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community