Ejemplo n.º 1
0
 /**
  * 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());
 }
Ejemplo n.º 2
0
 /**
  * 取得全部队长技能的JSON
  *
  * @return Response JSON
  */
 public function lskills()
 {
     $lskills = Lskill::all();
     return Response::json($lskills);
 }
Ejemplo n.º 3
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     //
     $card = Card::find($id);
     return view('admin.card.edit')->withCard(Card::find($id))->withSkills(Skill::all())->withLskills(Lskill::all())->withAbilities(Ability::all())->withType1s(Type1::all())->withType2s(Type2::all())->withAttrs(Attr::all());
 }