コード例 #1
0
 /**
  * Edit user view
  *
  * @param $id
  * @return \Illuminate\View\View
  */
 public function edit($id)
 {
     $roles = $this->user->getAllRoles();
     $country = $this->countries->all();
     $user = $this->user->find($id);
     return view('user.edit', compact('roles', 'user', 'country'));
 }
コード例 #2
0
 /**
  * Display contract edit form.
  *
  * @return Response
  */
 public function edit($id)
 {
     $contract = $this->contract->find($id);
     $country = $this->countries->all();
     $supportingDocument = $this->contract->getSupportingDocuments($id);
     $contracts = $this->contract->getList();
     return view('contract.edit', compact('contract', 'country', 'supportingDocument', 'contracts'));
 }