Redirect when not logged in

This commit is contained in:
2018-06-02 01:57:58 +02:00
parent dffc4e9b16
commit d2954e9799

View File

@@ -13,6 +13,9 @@ use Auth;
class PagesController extends Controller
{
function dashboard() {
if (!Auth::check()) {
return redirect('/welcome');
}
$teams = Team::all();
$matches = Match::all();
$tipps = Tipp::where('user', Auth::user()->id)->get();