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