Last active
January 2, 2016 22:29
-
-
Save iWader/8369920 to your computer and use it in GitHub Desktop.
Laravel installation guide - http://blog.iwader.co.uk/how-to-install-laravel-4-the-right-way
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Redacted */ | |
/* | |
|-------------------------------------------------------------------------- | |
| Register The Auto Loader | |
|-------------------------------------------------------------------------- | |
| | |
| Composer provides a convenient, automatically generated class loader | |
| for our application. We just need to utilize it! We'll require it | |
| into the script here so that we do not have to worry about the | |
| loading of any our classes "manually". Feels great to relax. | |
| | |
*/ | |
require __DIR__.'/../private/laravel-install/bootstrap/autoload.php'; | |
/* | |
|-------------------------------------------------------------------------- | |
| Turn On The Lights | |
|-------------------------------------------------------------------------- | |
| | |
| We need to illuminate PHP development, so let's turn on the lights. | |
| This bootstraps the framework and gets it ready for use, then it | |
| will load up this application so that we can run it and send | |
| the responses back to the browser and delight these users. | |
| | |
*/ | |
$app = require_once __DIR__.'/../private/laravel-install/bootstrap/start.php'; | |
/* Redacted */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
location / { | |
index index.php; | |
if ( !-f $request_filename ) | |
{ | |
rewrite ^ /index.php last; | |
break; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
return array( | |
/* Redacted */ | |
/* | |
|-------------------------------------------------------------------------- | |
| Public Path | |
|-------------------------------------------------------------------------- | |
| | |
| The public path contains the assets for your web application, such as | |
| your JavaScript and CSS files, and also contains the primary entry | |
| point for web requests into these applications from the outside. | |
| | |
*/ | |
'public' => __DIR__.'/../../../web', | |
/* Redacted */ | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment