/** * Show the form for editing the specified resource. * * @param string $equipmentId * @return Response */ public function edit($equipmentId) { $equipment = $this->equipmentRepository->findBySlug($equipmentId); $memberList = $this->userRepository->getAllAsDropdown(); $roleList = \BB\Entities\Role::lists('title', 'id'); //$roleList->prepend(null); //dd($roleList); return \View::make('equipment.edit')->with('equipment', $equipment)->with('memberList', $memberList)->with('roleList', $roleList->toArray())->with('ppeList', $this->ppeList); }