/**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index(Request $request)
 {
     $players = Player::with('teams', 'matches')->orderBy('first_name')->paginate(10);
     return view('dashboard.players.index', compact('players', 'request'));
 }
 /**
  * 管理用玩家列表
  * @return mixed
  */
 public function index()
 {
     return view('admin.player.player')->withPlayers(Player::with('PlayerData')->get());
 }