コード例 #1
0
ファイル: DomainsController.php プロジェクト: b-l4ck/AbuseIO
 /**
  * Update the specified resource in storage.
  * @param Domain $domain
  * @return Response
  * @internal param int $id
  */
 public function update(Domain $domain)
 {
     $input = array_except(Input::all(), '_method');
     $domain->update($input);
     return Redirect::route('admin.domains.show', $domain->id)->with('message', 'Domain has been updated.');
 }
コード例 #2
0
 /**
  * Update the specified resource in storage.
  *
  * @param DomainFormRequest $domainForm
  * @param Domain            $domain
  *
  * @return \Illuminate\Http\RedirectResponse
  */
 public function update(DomainFormRequest $domainForm, Domain $domain)
 {
     $domain->update($domainForm->all());
     return Redirect::route('admin.domains.show', $domain->id)->with('message', 'Domain has been updated.');
 }