Laravel "artisan" in docker container

At this stage the recommended way of executing the artisan command in a docker environment is to run a container whenever one needs artisan. The below is my setup on Linux/ macOS. In ~/.zshrc (or ~/.bashrc or whatever flavour of console you are running) create the following function: artisan () { docker