The Untold Path to Laravel on Lando

James Candan
Jul 26, 2018 · 2 min read

Steps to get Laravel up on Lando

$ lando init --recipe laravel --webroot public --name My\ Project
$ lando start
$ lando laravel new my-project
$ lando composer create-project --prefer-dist laravel/laravel my-project
$ mv .lando.yml my-project/
$ cd my-project
$ lando restart
# @file .envAPP_URL=http://myproject.lndo.site
DB_HOST=database
DB_DATABASE=laravel
DB_USERNAME=laravel
DB_PASSWORD=laravel
$ lando artisan migrate

Some further notes and tips

Caching

PHPUnit

tooling:
phpunit:
service: appserver
description: "Run PHP Unit tests: lando phpunit"
cmd: /app/vendor/bin/phpunit
<env name="DB_CONNECTION" value="sqlite" force="true" />
<env name="DB_DATABASE" value=":memory:" force="true" />

Conclusion

James Candan

Written by

code | faith | science | family

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade