Exemplo n.º 1
0
 public function destroy(Contact $contact)
 {
     $contact->delete();
     return redirect('contact')->with('message', 'Contact successfully removed.');
 }
 /**
  * destroy Contact
  *
  * @param  Business           $business Business holding the Contact
  * @param  Contact            $contact  Contact to destroy
  * @param  ContactFormRequest $request  Contact Form Request
  * @return Response                     Redirect back to Business show
  */
 public function destroy(Business $business, Contact $contact, ContactFormRequest $request)
 {
     $this->log->info(__METHOD__);
     $this->log->info(sprintf("  businessId:%s contactId:%s", $business->id, $contact->id));
     $contact->delete();
     Flash::success(trans('manager.contacts.msg.destroy.success'));
     return redirect()->route('manager.business.show', $business);
 }