Skip to content

Instantly share code, notes, and snippets.

@iWader

iWader/index.php

Last active Jan 2, 2016
Embed
What would you like to do?
<?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 */
location / {
index index.php;
if ( !-f $request_filename )
{
rewrite ^ /index.php last;
break;
}
}
<?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