Commit f8aeffc7 authored by Taylor Otwell's avatar Taylor Otwell

Tweak welcome view.

parent e0c54591
......@@ -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');
......
......@@ -36,7 +36,7 @@ class RedirectIfAuthenticated implements Middleware {
{
if ($this->auth->check())
{
return new RedirectResponse(url('/'));
return new RedirectResponse(url('/dashboard'));
}
return $next($request);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment