From e5a70aef0b13e78f77d42bfc987f3eb25a466eaa Mon Sep 17 00:00:00 2001 From: James Brooks Date: Sun, 23 Nov 2014 21:34:31 +0000 Subject: [PATCH] Preparing a SetupController --- app/controllers/SetupController.php | 7 ++ app/filters.php | 140 ++++++++++++---------------- app/filters/NoSetupFilter.php | 10 ++ app/routes/app.php | 4 + app/start/global.php | 1 + app/views/setup.blade.php | 15 +++ composer.json | 3 +- 7 files changed, 99 insertions(+), 81 deletions(-) create mode 100644 app/controllers/SetupController.php create mode 100644 app/filters/NoSetupFilter.php create mode 100644 app/views/setup.blade.php diff --git a/app/controllers/SetupController.php b/app/controllers/SetupController.php new file mode 100644 index 000000000..c1ba1d336 --- /dev/null +++ b/app/controllers/SetupController.php @@ -0,0 +1,7 @@ + 'no_setup:app_name'], function() { + Route::get('/setup', 'SetupController@showSetup'); + }); diff --git a/app/start/global.php b/app/start/global.php index 0118a02fa..c721efa83 100644 --- a/app/start/global.php +++ b/app/start/global.php @@ -17,6 +17,7 @@ ClassLoader::addDirectories(array( app_path().'/controllers', app_path().'/models', app_path().'/database/seeds', + app_path().'/filterss', )); diff --git a/app/views/setup.blade.php b/app/views/setup.blade.php new file mode 100644 index 000000000..16f2d7e07 --- /dev/null +++ b/app/views/setup.blade.php @@ -0,0 +1,15 @@ +@extends('layout.master') + +@section('content') + +@stop diff --git a/composer.json b/composer.json index b2df37534..ad159fc3a 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,8 @@ "app/models", "app/database/migrations", "app/database/seeds", - "app/tests/TestCase.php" + "app/tests/TestCase.php", + "app/filters" ] }, "extra": {