This example will use laravel to install Laravel from within the Devilbox PHP container.

After completing the below listed steps, you will have a working Laravel setup ready to be served via http and https.

Table of Contents

The following configuration will be used:

It will be ready in six simple steps:

Enter the PHP container Create a new VirtualHost directory Install Laravel Symlink webroot directory Setup DNS record Visit http://my-laravel.loc in your browser

2. Create new vhost directory¶ The vhost directory defines the name under which your project will be available.

( <vhost dir>.TLD_SUFFIX will be the final URL ). devilbox@php-7.0.20 in /shared/httpd $ mkdir my-laravel See also TLD_SUFFIX

3. Install Laravel¶ Navigate into your newly created vhost directory and install Laravel with laravel cli. devilbox@php-7.0.20 in /shared/httpd $ cd my-laravel devilbox@php-7.0.20 in /shared/httpd/my-laravel $ laravel new laravel-project How does the directory structure look after installation: devilbox@php-7.0.20 in /shared/httpd/my-laravel $ tree -L 1 . └── laravel-project 1 directory, 0 files