I have created a Laravel Package. The package is not usable before the user has specified some values into the config file
I checked out other packages and the docs but all that I found was that the user has to use vendor:publish
after he required the package.
Is there any way to create the config file automatically in the folder config
when the package is required by composer? Or does every user need to manually use the vendor:publish
command?
I though of checking in the ServiceProvider if the config file exists, and if not then just publishing it?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire