@@ -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);