/**
  * update Business
  *
  * @param  Business            $business Business to update
  * @param  BusinessFormRequest $request  Business form Request
  * @return Response                      Redirect
  */
 public function update(Business $business, BusinessFormRequest $request)
 {
     $this->log->info("Manager\\BusinessController: update: businessId:{$business->id}");
     if (Gate::denies('update', $business)) {
         abort(403);
     }
     $category = Category::find(Request::get('category'));
     $business->category()->associate($category);
     $business->update(['name' => $request->get('name'), 'slug' => $request->get('slug'), 'description' => $request->get('description'), 'timezone' => $request->get('timezone'), 'postal_address' => $request->get('postal_address'), 'phone' => $request->get('phone'), 'social_facebook' => $request->get('social_facebook'), 'strategy' => $request->get('strategy')]);
     Flash::success(trans('manager.businesses.msg.update.success'));
     return redirect()->route('manager.business.show', array($business->id));
 }
 /**
  * update Business.
  *
  * @param Business            $business Business to update
  * @param BusinessFormRequest $request  Business form Request
  *
  * @return Response Redirect
  */
 public function update(Business $business, BusinessFormRequest $request)
 {
     $this->log->info(__METHOD__);
     $this->log->info(sprintf('businessId:%s', $business->id));
     $this->authorize('update', $business);
     // BEGIN
     $category = $request->get('category');
     $data = ['name' => $request->get('name'), 'description' => $request->get('description'), 'timezone' => $request->get('timezone'), 'postal_address' => $request->get('postal_address'), 'phone' => $request->get('phone'), 'social_facebook' => $request->get('social_facebook'), 'strategy' => $request->get('strategy')];
     $this->businessService->update($business, $data);
     $this->businessService->setCategory($business, $category);
     Flash::success(trans('manager.businesses.msg.update.success'));
     return redirect()->route('manager.business.show', compact('business'));
 }