Laravel: Update .env file by publishing a third-party package
I have a library which I want to wrap into Laravel package.
My library uses two configs: the public config.php for some nonsensitive settings and .env private config for sensitive credentials.
I’d like to vendor:publish my configs for end user. And it seems fine for public config.php but how to publish my .env in Laravel-friendly way? I failed to find any way to do it by vendor:publish.
from Laravel Questions and Answers https://laravelquestions.com/php/laravel-update-env-file-by-publishing-a-third-party-package/
via Lzo Media
No comments:
Post a Comment