Пример #1
0
 /**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function show($id)
 {
     $data['role'] = Role::find($id);
     $data['modules'] = Module::all();
     //dd($data['role']->roleDetails->where('id_module',137)->first()->module->name);
     return view('admin.role_details.index', compact('data'));
 }