I have some doubts about the development environment. I have a project in Laravel and I'm using Docker. When will you use Laravel's Composer or Artisan, what is the right place to do it? On my host machine or in the Docker container?
I have some doubts about the development environment. I have a project in Laravel and I'm using Docker. When will you use Laravel's Composer or Artisan, what is the right place to do it? On my host machine or in the Docker container?
If you need to reuse the cached packages for other projects ( when you install a package, the composer caches not to download again if you create or install the package in another project >) then I recommend that you use the host composer, but if that does not make much difference you can use the container composer.
Please note that for this you must be using a image that brings the installed composer or you can even create your own image containing any stack you want.
If you want to use ready-made images (with php, composer .. etc) I recommend ambientum .