Ejemplo n.º 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();
 }
Ejemplo n.º 2
0
 public function destroy($fund)
 {
     $fund = Fund::find($fund);
     $fund->delete();
     return response(['data' => true, 'status' => 'success', 'message' => 'successfully deleted']);
 }