Branch: master
Find file History
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
.gitignore Laravel and MEAN Jan 28, 2019
README.md

README.md

Laravel Example

This example exists primarily to test the following documentation:

Start up tests

Run the following commands to get up and running with this example.

# Should poweroff
lando poweroff

# Initialize an empty laravel recipe
rm -rf laravel && mkdir -p laravel && cd laravel
lando init --source cwd --recipe laravel --webroot app/public --name lando-laravel --option cache=redis

# Should compose create-project a new laravel app
cd laravel
lando composer create-project --prefer-dist laravel/laravel app

# Should start up successfully
cd laravel
lando start

Verification commands

Run the following commands to validate things are rolling as they should.

# Should return the laravel default page
cd laravel
lando ssh -s appserver -c "curl -L localhost" | grep "Laravel"

# Should use 7.2 as the default php version
cd laravel
lando php -v | grep 7.2

# Should be running apache 2.4 by default
cd laravel
lando ssh -s appserver -c "apachectl -V | grep 2.4"
lando ssh -s appserver -c "curl -IL localhost" | grep Server | grep 2.4

# Should be running mysql 5.7 by default
cd laravel
lando mysql -V | grep 5.7

# Should not enable xdebug by default
cd laravel
lando php -m | grep xdebug || echo $? | grep 1

# Should have redis running
cd laravel
lando ssh -s cache -c "redis-cli CONFIG GET databases"

# Should use the default database connection info
cd laravel
lando mysql -ularavel -plaravel laravel -e quit

# Should have artisan available
cd laravel
lando artisan env

Destroy tests

Run the following commands to trash this app like nothing ever happened.

# Should be destroyed with success
cd laravel
lando destroy -y
lando poweroff