/** * Update the specified resource in storage. * * @param int $id * @return Response */ public function update(CompanyRequest $request, $id) { $company = Company::findOrFail($id); $input = $request->all(); $company->update($input); return redirect('company'); }
/** * Update the specified resource in storage. * * @param \Illuminate\Http\Request $request * @param int $id * @return \Illuminate\Http\Response */ public function update(CompanyRequest $request, $id) { $companies = \App\Company::findOrFail($id); $companies->update($request->all()); flash()->success('Company ' . $companies->company_name . ' successfully updated!'); #dd(flash()); return redirect('/companies'); }
public function update($id, CompanyRequest $request) { $company = Company::findOrFail($id); $company->update($request->all()); return Redirect::to('empresas'); }
/** * Update the specified resource in storage. * * @param CompanyRequest $request * @param Company $company * @return Response */ public function update(CompanyRequest $request, Company $company) { $company->update($request->all()); return redirect('quan-tri/cong-ty')->with('flash_message', Lang::get('system.update')); }