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