/** * 玩家卡片取得处理 */ public function cardBox() { // 玩家ID获取 $intPlayerId = Input::get('player_id'); // 玩家所持卡片全取得 $lstCard = OwnedCard::where('player_id', $intPlayerId)->get(); return view('admin.player.card-box')->withCards(Card::all())->withAttrs(Attr::all())->withRaces(Race::all())->withJobs(Job::all())->withSkills(Skill::all())->withOwnedCards($lstCard); }
/** * Display a listing of the resource. * * @return Response */ public function index() { // return view('lskill')->withLskills(Lskill::all())->withAttrs(Attr::all())->withRaces(Race::all())->withJobs(Job::all()); }
/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { // return view('admin.equipment.edit')->withEquipment(Equipment::find($id))->withAttrs(Attr::all())->withRaces(Race::all())->withJobs(Job::all())->withEquipmentTypes(EquipmentType::all())->withEquipmentSubTypes(EquipmentSubType::all())->withEquipmentStatuses(EquipmentStatus::all()); }
/** * Show the form for creating a new resource. * * @return Response */ public function create() { $races = Race::all(); $user = Auth::user(); return view('character.create', compact('races', 'user')); }
/** * Show the form for creating a new resource. * * @return Response */ public function create() { // return view('admin.incident.create')->withAttrs(Attr::all())->withRaces(Race::all())->withJobs(Job::all()); }
/** * 卡片更新页面 * @param $id * @return mixed */ public function edit($id) { return view('admin.card.edit')->withCard(Card::find($id))->withAttrs(Attr::all())->withRaces(Race::all())->withJobs(Job::all())->withSkills(Skill::all()); }
/** * Display a listing of the resource. * * @return Response */ public function index() { // return view('admin.skill.skill')->withSkills(Skill::all())->withAttrs(Attr::all())->withRaces(Race::all())->withJobs(Job::all()); }