public function store(Request $request, Contactcompany $contactcompany) { Contactcompany::create($request->all()); Flash::success('Contactcompany has been created successFully!'); return Redirect::back(); }
public function store(Request $request, Contactcompany $contactcompany) { $contactcompany = Contactcompany::create($request->all()); return response(['data' => $contactcompany, 'status' => 'success', 'message' => 'successfully created']); }