A
A
Andrej Kopp2021-08-24 16:47:54
Composer
Andrej Kopp, 2021-08-24 16:47:54

How to start a process when updating or installing a package in Composer?

Hello. I ran into this problem while creating my package for Laravel. My package installs the laravel/ui package, I would like it to immediately install authorization with Bootstrap. I'm trying this way, adding these sections to my package's composer.json file, but to no avail:

"scripts": {
        "post-package-install": [
            "php artisan ui bootstrap --auth"
        ],
        "post-package-update": [
            "php artisan ui bootstrap --auth"
        ]
    }

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question