Tweak welcome view.

This commit is contained in:
Taylor Otwell 2014-11-24 11:47:49 -06:00
parent e0c54591bf
commit f8aeffc76a
2 changed files with 16 additions and 1 deletions

View File

@ -15,6 +15,21 @@ class WelcomeController extends Controller {
|
*/
/**
* 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');

View File

@ -36,7 +36,7 @@ public function handle($request, Closure $next)
{
if ($this->auth->check())
{
return new RedirectResponse(url('/'));
return new RedirectResponse(url('/dashboard'));
}
return $next($request);