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