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