Terminal commands
All further Terminal commands in the book will be given relative to the project directory, that is, vuebnb, unless otherwise specified.
However, as the project directory is shared between your host computer and Homestead, Terminal commands can be run from either of these environments.
Homestead saves you from having to install any software on your host computer. But if you don't, many Terminal commands may not work, or may not work correctly, in the host environment. For example, if you don't have PHP installed on your host computer, you can't run Artisan commands from it:
$ php artisan --version
-bash: php: command not found
If this is the case for you, you'll need to run these commands from within Homestead environment by connecting first via SSH:
$ cd ~/Homestead
$ vagrant ssh
Change, then, to the project directory within the OS and the same Terminal command will now work:
$ cd ~/projects/vuebnb
$ php artisan --version
Laravel Framework 5.5.20
The only downside to running commands...