Skip to content

Instantly share code, notes, and snippets.

@niko-afv
Created April 21, 2015 19:32
Show Gist options
  • Select an option

  • Save niko-afv/4ece2a6399ba0e67118d to your computer and use it in GitHub Desktop.

Select an option

Save niko-afv/4ece2a6399ba0e67118d to your computer and use it in GitHub Desktop.
DashboardController.php
<?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