lando / laravel

The Official Laravel Lando Plugin
https://docs.lando.dev/laravel/
GNU General Public License v3.0
15 stars 11 forks source link

Laravel plugin missing `laravel` command #18

Closed matpratta closed 2 years ago

matpratta commented 2 years ago

Lando version: v3.6.5

Trying to run lando laravel new to initialize a new Laravel application fails with an error indicating the laravel executable/command is not present in $PATH:

~/lando-laravel
➜ cat .lando.yml
name: my-lando-app
recipe: laravel
config:
  webroot: .

~/lando-laravel
➜ lando laravel new
OCI runtime exec failed: exec failed: container_linux.go:380: starting container process caused: exec: "laravel": executable file not found in $PATH: unknown

Not sure if I'm doing something wrong here or not, I usually always initialize the Laravel project directly from outside Lando, but this time tried to run the command while doing a small intro guide on Lando and it seems to not be working...

matpratta commented 2 years ago

Okay so I'm not sure if this is intended or not, but I had to run lando start or lando rebuild to actually get the command to work properly.

For some reason I assumed that the application would have been built already after running lando init and specially after trying to run lando laravel for the first time, as it seems to start the containers anyways. Not sure if this might be a bug on Lando itself, though.

matpratta commented 2 years ago

This was my mistake, seems like I named two of my projects with the same name, causing some conflict with cache. Running lando start or lando rebuild fixes the issue though.