Skip to content

nanobox-quickstarts/nanobox-laravel

Repository files navigation

Laravel from scratch

Laravel from scratch

Run a Laravel app locally, install nothing besides nanobox.

Clone the repo

# clone the code
git clone https://github.com/nanobox-quickstarts/nanobox-laravel.git

# cd into the laravel app
cd nanobox-laravel

Run the app

# Add a convenient way to access your app from the browser
nanobox dns add local laravel.dev

# Run laravel as you would normally, with Nanobox
nanobox run php artisan serve --host 0.0.0.0

Check it out

Visit your app at laravel.dev:8000

Explore

With Nanobox, you don't have to have anything installed on your machine to run your app:

# drop into a Nanobox console
nanobox run

# where laravel is installed,
php -v

# your packages are available,
composer show

# and your code is mounted
ls

Now What?

For more details about running laravel apps with nanobox visit guides.nanobox.io/php/laravel/