Redirect when not logged in
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user