Example #1
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($level)
 {
     $levels = Level::orderBy('level', 'asc')->with('users')->paginate(20);
     $levelToEdit = Level::where('level', $level)->first();
     return view('admin.levels.edit', compact('levels', 'levelToEdit'));
 }