aboutsummaryrefslogtreecommitdiff
path: root/backyard/php-api/trunk/app/Http/Controllers/WelcomeController.php
diff options
context:
space:
mode:
Diffstat (limited to 'backyard/php-api/trunk/app/Http/Controllers/WelcomeController.php')
-rw-r--r--backyard/php-api/trunk/app/Http/Controllers/WelcomeController.php36
1 files changed, 36 insertions, 0 deletions
diff --git a/backyard/php-api/trunk/app/Http/Controllers/WelcomeController.php b/backyard/php-api/trunk/app/Http/Controllers/WelcomeController.php
new file mode 100644
index 0000000..8a5ac6d
--- /dev/null
+++ b/backyard/php-api/trunk/app/Http/Controllers/WelcomeController.php
@@ -0,0 +1,36 @@
+<?php namespace App\Http\Controllers;
+
+class WelcomeController extends Controller {
+
+ /*
+ |--------------------------------------------------------------------------
+ | Welcome Controller
+ |--------------------------------------------------------------------------
+ |
+ | This controller renders the "marketing page" for the application and
+ | is configured to only allow guests. Like most of the other sample
+ | controllers, you are free to modify or remove it as you desire.
+ |
+ */
+
+ /**
+ * Create a new controller instance.
+ *
+ * @return void
+ */
+ public function __construct()
+ {
+ $this->middleware('guest');
+ }
+
+ /**
+ * Show the application welcome screen to the user.
+ *
+ * @return Response
+ */
+ public function index()
+ {
+ return view('welcome');
+ }
+
+}