nanobox-quickstarts / nanobox-laravel

Quickstart for Laravel with Nanobox
https://guides.nanobox.io/php/laravel/
Mozilla Public License 2.0
10 stars 7 forks source link
developer-tools devtools getting-started hacktoberfest laravel laravel-framework nanobox php php-framework

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/