server/src/app/Http/Controllers/WelcomeController.php
changeset 2 00e2916104fe
parent 1 01a844d292ac
equal deleted inserted replaced
1:01a844d292ac 2:00e2916104fe
     1 <?php namespace App\Http\Controllers;
     1 <?php
     2 
     2 
     3 class WelcomeController extends Controller {
     3 namespace CorpusParole\Http\Controllers;
     4 
     4 
     5 	/*
     5 class WelcomeController extends Controller
     6 	|--------------------------------------------------------------------------
     6 {
     7 	| Welcome Controller
     7     /*
     8 	|--------------------------------------------------------------------------
     8     |--------------------------------------------------------------------------
     9 	|
     9     | Welcome Controller
    10 	| This controller renders the "marketing page" for the application and
    10     |--------------------------------------------------------------------------
    11 	| is configured to only allow guests. Like most of the other sample
    11     |
    12 	| controllers, you are free to modify or remove it as you desire.
    12     | This controller renders the "marketing page" for the application and
    13 	|
    13     | is configured to only allow guests. Like most of the other sample
    14 	*/
    14     | controllers, you are free to modify or remove it as you desire.
       
    15     |
       
    16     */
    15 
    17 
    16 	/**
    18     /**
    17 	 * Create a new controller instance.
    19      * Create a new controller instance.
    18 	 *
    20      */
    19 	 * @return void
    21     public function __construct()
    20 	 */
    22     {
    21 	public function __construct()
    23         $this->middleware('guest');
    22 	{
    24     }
    23 		$this->middleware('guest');
       
    24 	}
       
    25 
    25 
    26 	/**
    26     /**
    27 	 * Show the application welcome screen to the user.
    27      * Show the application welcome screen to the user.
    28 	 *
    28      *
    29 	 * @return Response
    29      * @return Response
    30 	 */
    30      */
    31 	public function index()
    31     public function index()
    32 	{
    32     {
    33 		return view('welcome');
    33         return view('welcome');
    34 	}
    34     }
    35 
       
    36 }
    35 }