Put welcome message on homepage

This commit is contained in:
Ben Ramey
2017-11-04 19:26:08 -06:00
parent 7a962120c2
commit a17d950c1b
3 changed files with 16 additions and 6 deletions

View File

@@ -14,6 +14,7 @@ class HomeController extends Controller
*/
public function __construct()
{
$this->middleware('guest');
}
/**
@@ -23,10 +24,6 @@ class HomeController extends Controller
*/
public function index()
{
if (Auth::check()) {
return redirect()->route('dashboard');
}
return redirect()->route('login');
return view('home');
}
}