www/app/Http/Controllers/PlayerController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
        $players = User::players()->get();
        return view('player.index')->with('players', $players);
    }
public function index ( ) { $ players = User :: players ( ) -> get ( ) ; return view ( 'player.index' ) -> with ( 'players' , $ players ) ; }
Display a listing of the resource.
Display a listing of the resource .