app/Http/Controllers/HomeController.php
/**
     * Show the application dashboard.
     *
     * @return \Illuminate\Http\Response
     */
Show the application dashboard.
@return \Illuminate\Http\Response
Show the application dashboard . @return \ Illuminate \ Http \ Response
public function index()
    {
        $players = Player::get();
        $dates = Date::where('user_id', Auth::user()->id)->get();
        return view('home', compact('dates', 'players'));
    }
public function index ( ) { $ players = Player :: get ( ) ; $ dates = Date :: where ( 'user_id' , Auth :: user ( ) -> id ) -> get ( ) ; return view ( 'home' , compact ( 'dates' , 'players' ) ) ; }
Show the application dashboard.
Show the application dashboard .