/** * Store a newly created resource in storage. * @return Response */ public function store(ContactFormRequest $contact) { $account = $this->user->account; $input = Input::all(); $input['account_id'] = $account->id; Contact::create($input); return Redirect::route('admin.contacts.index')->with('message', 'Contact has been created'); }
/** * Store a newly created resource in storage. * * @return Response */ public function store(ContactFormRequest $contact) { $input = Input::all(); Contact::create($input); return Redirect::route('admin.contacts.index')->with('message', 'Contact has been created'); }
/** * Store a newly created resource in storage. * * @param ContactFormRequest $contactForm FormRequest * @param Contact $contact Contact * @return \Illuminate\Http\Response */ public function store(ContactFormRequest $contactForm, Contact $contact) { $contact->create($contactForm->all()); return Redirect::route('admin.contacts.index')->with('message', 'Contact has been created'); }