public function destroy(TicketType $ticket_type) { if (!Helper::getMode()) { return redirect()->back()->withErrors(config('constants.DISABLE_MESSAGE')); } $ticket_type->delete(); return redirect('/configuration#ticket')->withSuccess(config('constants.DELETED')); }