I am new to PHP and Laravel. I am trying to follow along with the "Laravel 8 From Scratch" tutorial. In Episode 12 I am asked to install YAML Front Matter using Composer using the command "composer require spatie/yaml-front-matter". When I try that I get an error message: "zsh: command not found: composer". In Episode 2 on "Initial Environment Setup and Composer" it looks like the instructions provided for setting up Composer only apply if you are using the "local" setup option, but I chose to use the Docker Desktop option specified in "Getting Started On macOS" (https://laravel.com/docs/9.x/installation#getting-started-on-macos). Can someone please explain how I can install the YAML Front Matter code and/or install Composer with the Docker Desktop configuration option? Thanks!
you should run composer install from your docker container
// list your running containers
docker ps
// container_name is a placeholder, change it with information from previous command
docker exec -ti {container_name} bash
or you use docker desktop to execute commands from a specific container