O'Reilly logo

Learning Laravel 4 Application Development by Hardik Dangar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a directory structure based on your web host

There are times when you want to change the directory structure of Laravel before uploading it on the server, just as you have multiple sites on a server and you don't want to change the document root of your server to the Laravel's public directory as it will mean all other sites' roots will also change. Or when your shared server-hosting provider doesn't allow you to change the document root of your site. Then your best bet is to change the directory structure of your Laravel application before deploying it to meet the server's directory structure.

In order to do that, you would need to assume that your public_html or www folder from the web host is the public directory of your Laravel installation. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required