Exemplo n.º 1
0
 /**
  * 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.');
 }
Exemplo n.º 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.');
 }