Redirect when not logged in
This commit is contained in:
@@ -13,6 +13,9 @@ use Auth;
|
|||||||
class PagesController extends Controller
|
class PagesController extends Controller
|
||||||
{
|
{
|
||||||
function dashboard() {
|
function dashboard() {
|
||||||
|
if (!Auth::check()) {
|
||||||
|
return redirect('/welcome');
|
||||||
|
}
|
||||||
$teams = Team::all();
|
$teams = Team::all();
|
||||||
$matches = Match::all();
|
$matches = Match::all();
|
||||||
$tipps = Tipp::where('user', Auth::user()->id)->get();
|
$tipps = Tipp::where('user', Auth::user()->id)->get();
|
||||||
|
Reference in New Issue
Block a user