Created
April 21, 2015 19:32
-
-
Save niko-afv/4ece2a6399ba0e67118d to your computer and use it in GitHub Desktop.
DashboardController.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php namespace App\Http\Controllers; | |
| use Closure; | |
| use Illuminate\Contracts\Auth\Guard; | |
| use Illuminate\Http\RedirectResponse; | |
| class DashboardController 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('auth'); | |
| } | |
| /** | |
| * Show the application welcome screen to the user. | |
| * | |
| * @return Response | |
| */ | |
| public function index() | |
| { | |
| return view('dashboard'); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment