diff --git a/.gitignore b/.gitignore index 004e6ff..a4a593e 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ .DS_Store # Composer -/vendor \ No newline at end of file +/vendor +/bootstrap/compiled.php diff --git a/app/config/app.php b/app/config/app.php index 9a3d636..1eae005 100644 --- a/app/config/app.php +++ b/app/config/app.php @@ -43,16 +43,16 @@ /* |-------------------------------------------------------------------------- - | Application Fallback Locale + | Routable Locales |-------------------------------------------------------------------------- | - | The fallback locale determines the locale to use when the current one - | is not available. You may change the value to correspond to any of - | the language folders that are provided through your application. + | Here you may list the locales that are "routable" for your application. + | When a request with a URI beginning with one of the locales is sent + | to the application, the "default" locale will be set accordingly. | */ - 'fallback_locale' => 'en', + 'locales' => array(), /* |-------------------------------------------------------------------------- @@ -92,15 +92,18 @@ 'Illuminate\Encryption\EncryptionServiceProvider', 'Illuminate\Filesystem\FilesystemServiceProvider', 'Illuminate\Hashing\HashServiceProvider', + 'Illuminate\Html\HtmlServiceProvider', 'Illuminate\Foundation\Providers\KeyGeneratorServiceProvider', 'Illuminate\Log\LogServiceProvider', 'Illuminate\Mail\MailServiceProvider', 'Illuminate\Database\MigrationServiceProvider', + 'Illuminate\Foundation\Providers\OptimizeServiceProvider', 'Illuminate\Pagination\PaginationServiceProvider', 'Illuminate\Foundation\Providers\PublisherServiceProvider', 'Illuminate\Queue\QueueServiceProvider', 'Illuminate\Redis\RedisServiceProvider', 'Illuminate\Auth\Reminders\ReminderServiceProvider', + 'Illuminate\Foundation\Providers\RouteListServiceProvider', 'Illuminate\Database\SeedServiceProvider', 'Illuminate\Foundation\Providers\ServerServiceProvider', 'Illuminate\Session\SessionServiceProvider', @@ -123,7 +126,7 @@ | */ - 'manifest' => __DIR__.'/../storage/meta', + 'manifest' => storage_path().'/meta', /* |-------------------------------------------------------------------------- @@ -152,7 +155,9 @@ 'Eloquent' => 'Illuminate\Database\Eloquent\Model', 'Event' => 'Illuminate\Support\Facades\Event', 'File' => 'Illuminate\Support\Facades\File', + 'Form' => 'Illuminate\Support\Facades\Form', 'Hash' => 'Illuminate\Support\Facades\Hash', + 'Html' => 'Illuminate\Support\Facades\Html', 'Input' => 'Illuminate\Support\Facades\Input', 'Lang' => 'Illuminate\Support\Facades\Lang', 'Log' => 'Illuminate\Support\Facades\Log', diff --git a/app/config/cache.php b/app/config/cache.php index f55ca14..ce89842 100644 --- a/app/config/cache.php +++ b/app/config/cache.php @@ -28,7 +28,7 @@ | */ - 'path' => __DIR__.'/../storage/cache', + 'path' => storage_path().'/cache', /* |-------------------------------------------------------------------------- diff --git a/app/config/compile.php b/app/config/compile.php new file mode 100644 index 0000000..54d7185 --- /dev/null +++ b/app/config/compile.php @@ -0,0 +1,18 @@ + '', 'charset' => 'utf8', 'prefix' => '', - 'schema' => 'public', + 'schema' => 'public', ), 'sqlsrv' => array( @@ -119,4 +119,4 @@ ), -); \ No newline at end of file +); diff --git a/app/config/mail.php b/app/config/mail.php index e793d88..7b7dff6 100644 --- a/app/config/mail.php +++ b/app/config/mail.php @@ -2,6 +2,21 @@ return array( + /* + |-------------------------------------------------------------------------- + | Mail Driver + |-------------------------------------------------------------------------- + | + | Laravel supports both SMTP and PHP's "mail" function as drivers for the + | sending of e-mail. You may specify which one you're using throughout + | your application here. By default, Laravel is setup for SMTP mail. + | + | Supported: "smtp", "mail" + | + */ + + 'driver' => 'smtp', + /* |-------------------------------------------------------------------------- | SMTP Host Address @@ -13,7 +28,7 @@ | */ - 'host' => 'smtp.postmarkapp.com', + 'host' => 'smtp.mailgun.org', /* |-------------------------------------------------------------------------- @@ -26,7 +41,7 @@ | */ - 'port' => 2525, + 'port' => 587, /* |-------------------------------------------------------------------------- diff --git a/app/config/queue.php b/app/config/queue.php index ea05a83..220998c 100644 --- a/app/config/queue.php +++ b/app/config/queue.php @@ -11,11 +11,11 @@ | API, giving you convenient access to each back-end using the same | syntax for each one. Here you may set the default queue driver. | - | Supported: "sync", "beanstalkd" + | Supported: "sync", "beanstalkd", "sqs", "iron" | */ - 'default' => 'sqs', + 'default' => 'sync', /* |-------------------------------------------------------------------------- @@ -48,6 +48,13 @@ 'region' => 'us-east-1', ), + 'iron' => array( + 'driver' => 'iron', + 'project' => 'your-project-id', + 'token' => 'your-token', + 'queue' => 'your-queue-name', + ), + ), -); \ No newline at end of file +); diff --git a/app/config/session.php b/app/config/session.php index c5f2f6c..f295a16 100644 --- a/app/config/session.php +++ b/app/config/session.php @@ -11,7 +11,7 @@ | requests. By default we will use the light-weight cookie driver but | you may specify any of the other wonderful drivers provided here. | - | Supported: "cookie", file", "database", "apc", + | Supported: "cookie", "file", "database", "apc", | "memcached", "redis", "array" | */ @@ -42,7 +42,7 @@ | */ - 'path' => __DIR__.'/../storage/sessions', + 'files' => storage_path().'/sessions', /* |-------------------------------------------------------------------------- @@ -96,4 +96,43 @@ 'cookie' => 'laravel_session', + /* + |-------------------------------------------------------------------------- + | Session Cookie Path + |-------------------------------------------------------------------------- + | + | The session cookie path determines the path for which the cookie will + | be regarded as available. Typically, this will be the root path of + | your application but you are free to change this when necessary. + | + */ + + 'path' => '/', + + /* + |-------------------------------------------------------------------------- + | Session Cookie Domain + |-------------------------------------------------------------------------- + | + | Here you may change the domain of the cookie used to identify a session + | in your application. This will determine which domains the cookie is + | available to in your application. A sensible default has been set. + | + */ + + 'domain' => null, + + /* + |-------------------------------------------------------------------------- + | Session Payload Cookie Name + |-------------------------------------------------------------------------- + | + | When using the "cookie" session driver, you may configure the name of + | the cookie used as the session "payload". This cookie actually has + | the encrypted session data stored within it for the application. + | + */ + + 'payload' => 'laravel_payload', + ); diff --git a/app/config/workbench.php b/app/config/workbench.php new file mode 100644 index 0000000..623cd19 --- /dev/null +++ b/app/config/workbench.php @@ -0,0 +1,31 @@ + '', + + /* + |-------------------------------------------------------------------------- + | Workbench Author E-Mail Address + |-------------------------------------------------------------------------- + | + | Like the option above, your e-mail address is used when generating new + | workbench packages. The e-mail is placed in your composer.json file + | automatically whwen the package is created by the workbench tool. + | + */ + + 'email' => '', + +); \ No newline at end of file diff --git a/app/filters.php b/app/filters.php index dd28f18..6f48e48 100644 --- a/app/filters.php +++ b/app/filters.php @@ -57,7 +57,7 @@ Route::filter('csrf', function() { - if (Session::getToken() != Input::get('csrf_token')) + if (Session::getToken() != Input::get('_token')) { throw new Illuminate\Session\TokenMismatchException; } @@ -104,4 +104,4 @@ { App::abort(403, 'Hourly request limit exceeded'); } -}); \ No newline at end of file +}); diff --git a/app/start/global.php b/app/start/global.php index 62a28c3..26e6b9e 100644 --- a/app/start/global.php +++ b/app/start/global.php @@ -13,6 +13,7 @@ ClassLoader::addDirectories(array( + app_path().'/commands', app_path().'/controllers', app_path().'/models', app_path().'/database/seeds', @@ -32,7 +33,7 @@ $logFile = 'log-'.php_sapi_name().'.txt'; -Log::useDailyFiles(__DIR__.'/../storage/logs/'.$logFile); +Log::useDailyFiles(storage_path().'/logs/'.$logFile); /* |-------------------------------------------------------------------------- @@ -69,4 +70,4 @@ | */ -require __DIR__.'/../events.php'; \ No newline at end of file +require __DIR__.'/../events.php'; diff --git a/app/tests/TestCase.php b/app/tests/TestCase.php index 8b1ef7d..49b80fc 100644 --- a/app/tests/TestCase.php +++ b/app/tests/TestCase.php @@ -2,18 +2,18 @@ class TestCase extends Illuminate\Foundation\Testing\TestCase { - /** - * Creates the application. - * - * @return Symfony\Component\HttpKernel\HttpKernelInterface - */ - public function createApplication() - { - $unitTesting = true; + /** + * Creates the application. + * + * @return Symfony\Component\HttpKernel\HttpKernelInterface + */ + public function createApplication() + { + $unitTesting = true; - $testEnvironment = 'testing'; + $testEnvironment = 'testing'; - return require __DIR__.'/../../bootstrap/start.php'; - } + return require __DIR__.'/../../bootstrap/start.php'; + } } diff --git a/artisan b/artisan index ce2189d..1c169f6 100644 --- a/artisan +++ b/artisan @@ -56,4 +56,19 @@ $artisan = Illuminate\Console\Application::start($app); | */ -$artisan->run(); +$status = $artisan->run(); + +/* +|-------------------------------------------------------------------------- +| Shutdown The Application +|-------------------------------------------------------------------------- +| +| Once Artisan has finished running. We will fire off the shutdown events +| so that any final work may be done by the application before we shut +| down the process. This is the last thing to happen to the request. +| +*/ + +$app->shutdown(); + +exit($status); \ No newline at end of file diff --git a/bootstrap/autoload.php b/bootstrap/autoload.php index 461a1a8..626612a 100644 --- a/bootstrap/autoload.php +++ b/bootstrap/autoload.php @@ -1,5 +1,7 @@ __DIR__.'/..', + /* + |-------------------------------------------------------------------------- + | Storage Path + |-------------------------------------------------------------------------- + | + | The storage path is used by Laravel to store cached Blade views, logs + | and other pieces of information. You may modify the path here when + | you want to change the location of this directory for your apps. + | + */ + + 'storage' => __DIR__.'/../app/storage', + ); diff --git a/bootstrap/start.php b/bootstrap/start.php index 7e5462e..32c186f 100644 --- a/bootstrap/start.php +++ b/bootstrap/start.php @@ -54,7 +54,9 @@ | */ -require $app->getBootstrapFile(); +$framework = __DIR__.'/../vendor/laravel/framework/src'; + +require $framework.'/Illuminate/Foundation/start.php'; /* |-------------------------------------------------------------------------- diff --git a/composer.json b/composer.json index 024d065..29d7fd4 100644 --- a/composer.json +++ b/composer.json @@ -13,5 +13,8 @@ "app/tests/TestCase.php" ] }, + "scripts": { + "post-update-cmd": "php artisan optimize" + }, "minimum-stability": "dev" } diff --git a/public/index.php b/public/index.php index 030db7d..cf7f302 100644 --- a/public/index.php +++ b/public/index.php @@ -6,8 +6,6 @@ * @author Taylor Otwell */ -define('LARAVEL_START', microtime(true)); - /* |-------------------------------------------------------------------------- | Register The Auto Loader @@ -49,3 +47,16 @@ */ $app->run(); + +/* +|-------------------------------------------------------------------------- +| Shutdown The Application +|-------------------------------------------------------------------------- +| +| Once the app has finished running. We will fire off the shutdown events +| so that any final work may be done by the application before we shut +| down the process. This is the last thing to happen to the request. +| +*/ + +$app->shutdown(); \ No newline at end of file diff --git a/public/robots.txt b/public/robots.txt new file mode 100644 index 0000000..4206b87 --- /dev/null +++ b/public/robots.txt @@ -0,0 +1 @@ +User-agent: * Allow: / \ No newline at end of file