コード例 #1
0
 public function destroy(Fund $fund)
 {
     if (is_integer($fund)) {
         $fund = Fund::find($fund);
     }
     $fund->delete();
     Flash::success('Fund has been created Deleted!');
     return Redirect::back();
 }
コード例 #2
0
 public function destroy($fund)
 {
     $fund = Fund::find($fund);
     $fund->delete();
     return response(['data' => true, 'status' => 'success', 'message' => 'successfully deleted']);
 }