diff options
author | Camil Staps | 2015-02-16 23:48:05 +0100 |
---|---|---|
committer | Camil Staps | 2015-02-16 23:48:05 +0100 |
commit | d7e113be4a56fa5aac3680fb5363168f545e5bce (patch) | |
tree | 811fa270a3e3a0bc5d37abc82468a2c8eae58081 /backyard/php-api/trunk/app/Http/Controllers/WelcomeController.php | |
parent | Updated readme (diff) |
Added PHP API framework
Diffstat (limited to 'backyard/php-api/trunk/app/Http/Controllers/WelcomeController.php')
-rw-r--r-- | backyard/php-api/trunk/app/Http/Controllers/WelcomeController.php | 36 |
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'); + } + +} |