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