public function destroy(Performance $performance) { if (is_integer($performance)) { $performance = Performance::find($performance); } $performance->delete(); Flash::success('Performance has been created Deleted!'); return Redirect::back(); }
public function destroy($performance) { $performance = Performance::find($performance); $performance->delete(); return response(['data' => true, 'status' => 'success', 'message' => 'successfully deleted']); }