NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #3143 most downloaded on Packagist
Craft CMS
Latest stable
5.12.1
Last release 12 days ago
10 Nov 2026
Ships fairly regularly
a new release about every 2 weeks
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
13 years old
1348 releases · first in 2013
Drag across the ruler to compare, or tap a release to open it.
…and “Tags” are now listed under a new “Deprecated” heading, if those concepts are supported for the project.
@ or {. (#20109)compare/{id}, which shows two versions side by side: a draft and the current entry, two revisions, the user’s unsaved changes and the entry as it’s saved, or the entry in two sites. Two separate entries can be compared too, at compare/{fromId}/{toId}, from element indexes’ “Compare” action, which is offered when two elements with the same field layout are selected, with the heading “Compare [entry] with [entry]” and each side’s own version menu. It’s opened from the Versions panel (formerly “Revisions”), which has a compare button beside each draft and revision, from the Sites panel, from the “Compare changes” item atop the editor’s action menu, and from the “Showing your unsaved changes” notice. The two versions are shown as editor panes with their fields lined up in their tabs, including sidebar tabs, and changed fields are marked on the side that made the change, or on both when neither did. Selecting a tab on either side selects it on both. Either version, or both, can be edited in place when the user can save it, with autosave and its own Save button, unless it’s a revision, and fields are marked as they’re edited. Arrow buttons between the panes copy a field’s value from one version into the other, with an “Undo” option. Each pane has a menu for choosing another version or another site, for whichever differs between the two panes, and a button between them swaps the two sides. On narrow screens, each field’s two versions are stacked, marked A and B. Between sites, translatable fields are marked when their values differ, and fields that aren’t translated aren’t. Nested and related elements, such as Matrix entries and relations, keep each version’s own order, with faint lines connecting the elements that moved, which are highlighted when either end is hovered or focused, and that follow the element when it’s reordered on the editable side. “Compare changes” draws the same lines. (#20384, #20474)slideoutWidth link option and new slideout and slideoutWidth arguments on CraftCms\Cms\Ui\Nodes\Table::createAction().craftcms/yii2-adapter now show a “Requires the Yii2 adapter” notice, and installing them also installs the adapter, unless composer.json already requires it.|date('short'), follow the site locale’s calendar too. (#8741, #20085)user-large, film-simple, and grid-horizontal (now user, film, and grip), no longer show when referenced by their Font Awesome 6 names, including in Icon field values, entry type and option icons, and plugins’ icon names. (#20520)releaseId element query param and GraphQL argument, and the “Query for releases” GraphQL schema permission adds releases and release queries.elements/delete-for-site action or the “Delete for site” element action, and “Delete for this site” is no longer offered for provisional drafts whose canonical entry only exists in that site.commerceguys/addressing, and are stored by their ISO codes rather than their names. Existing UK addresses are migrated automatically, and Administrative Area condition rules that reference county names are normalized to the new codes. (#19488)CraftCms\Cms\Entry\Events\EntryTypesResolving listeners leave available for the site, instead of ones that then fail with a 400 error. (#20322)trashedAssetDisk config setting. When it’s set, soft-deleting an asset moves its file to that disk, and restoring the asset moves it back. Otherwise, soft-deleting an asset deletes its file, and the asset can’t be restored, unless it was deleted along with its volume. (#8745, #20093)config/filesystems.php, and each defines whether its assets have public URLs. Existing filesystem references are migrated to matching disks automatically, with an actionable error if a disk isn’t configured, which suggests an equivalent disk for Local, Amazon S3, Google Cloud Storage, Azure Blob Storage, DigitalOcean Spaces, Linode Object Storage, and Cloudflare R2 filesystems. (#19650, #20471)asset_transformer key on disks in config/filesystems.php, set to a transform driver name such as craft, or to an array with a driver key and inline settings. Disks without the key use the craft transformer, and scoped disks without it use the disk they wrap.craft asset transformer’s output disk, whether transforms have public URLs, and whether transforms are generated before page load can be set per disk, with output_disk, has_urls, and generate_transforms_before_page_load keys in its asset_transformer array. To store transforms below a path, set output_disk to a scoped disk. Without output_disk, transforms are stored at the root of the volume’s disk rather than below the volume’s subpath. Volumes’ “Transform Filesystem” and “Transform Subpath” settings aren’t carried over, so after upgrading from Craft 5, transforms are stored on the volume’s own disk unless its asset_transformer sets output_disk. Upgrading also clears the transform index, so transforms are generated again as they’re requested. Transform files generated by Craft 5 aren’t reused or deleted.generateTransformsBeforePageLoad config setting to the craft asset transformer’s generate_transforms_before_page_load disk setting.intervention/image-driver-vips package.uploadSessionDisk config setting, which determines the disk used to stage upload sessions. (#19650)tempAssetUploadFs config setting to tempAssetUploadDisk, which now references a Laravel filesystem disk. (#19650)asset.blurhash in templates. (#19755)<img> tags returned by asset.getImg() now have a blurred placeholder as their background, unless the image has transparent regions. (#19750)blurhash, analysis, and placeholderDataUrl fields to assets in GraphQL queries. analysis holds what was found in an image, such as its colors, embedded metadata, and type. (#19740, #19750, #19755, #20103)orientation asset query param and GraphQL argument, and image assets’ orientations are available via asset.orientation in templates and the orientation GraphQL field. (#20114)maxUploadFileSize config setting, and were left behind as assets when the element couldn’t be saved because a file wasn’t allowed in the field.authGuard and authPasswordBroker config settings, allowing Craft authentication to use a dedicated Laravel guard, provider, and password broker. (#19598)loginPath config setting is now false by default.users/password-reset-url, always pointed to the front end, even for users with control panel access. (#16340)CraftCms\Cms\Field\Data\LinkData objects, and Table fields now track the elements they link to. (#16009, #19998){postDate} or a Date field’s {startDate}. Entry types’ UI label formats now show those dates the same way, in the user’s locale. Filters still get the date, so {startDate|date('Y')} works as before. Generated fields are now also rendered in their site’s language, like entry title formats. (#20467, #20526, #20527)projectConfig.email mail settings and mail transport adapter configuration in favor of Laravel's mail config and drivers.MAIL_MAILER, or made the default in config/mail.php. It’s available as the craft-transport mailer, and is listed in the Yii2 Loose Ends utility while it’s in use. (#20502)Craft::$app->mailer now sends email from the sender in Settings → Email by default, rather than Laravel’s mail.from config. (#20504)autocomplete tokens, so browsers and password managers can fill them in. (#20407)ai.providers config, with keys set through environment variables. AI features stay off until a provider is chosen. (#20006)/ in the chat. (#20109)index-assets commands, which queue images to be analyzed. (#20103)mcp:read, mcp:write, and mcp:admin OAuth scopes for the authenticated MCP server. Users choose an access level when they authorize an MCP client, and it defaults to read only. (#20080)oauth-registration rate limiter. (#20303)/.well-known/ai-catalog.json and a Server Card at <endpoint>/server-card, per SEP-2127. Servers on control panel URLs are never advertised, and the authenticated server is only advertised when public registration is enabled. Discovery requests are subject to the defaultRateLimit config setting. (#20283)mcp:serve command, which serves the authenticated MCP server over stdio as a named user. (#19846)guidance_get, skills_list, and skills_get MCP tools, which return the AI guidance and skills. (#20109)guidance_update, skills_create, skills_update, and skills_delete MCP tools, which save the AI guidance for the sites the user can edit and manage skills, for users who can use the AI Guidance & Skills utility. (#20109)guidance_update_personal MCP tool, which saves the user’s own AI guidance. (#20109)elements_field_schema tool now says that Markdown fields take Markdown, rather than HTML. (#20109)elements_* MCP tools no longer list draft, revision, or structure criteria and attributes for element types that don’t support them, such as structure params for assets and users. (#20254)sortOrder is omitted, and reject a sortOrder that doesn’t list every new entry. (#20292)relatedTo and notRelatedTo element query criteria, so strict MCP clients such as VS Code accept the search_query tool. (#20329)cp-navigations configuration type, which reads and writes each navigation as the tree the navigation builder edits. (#20247)user_permissions_user_update and user_permissions_group_update MCP tools, which add and remove specific permissions without resending complete lists. (#20437)configuration_get, configuration_list, configuration_create, and configuration_update MCP tools now return each record’s revision, and configuration_update and configuration_delete accept it as expectedRevision, failing without changing anything if the record has changed since it was read. Without expectedRevision, they can still overwrite changes made since the read. (#20438)assets_create and assets_replace MCP tools accept base64-encoded file data and local file paths (stdio server only, limited to project directories where a local volume could be located), in addition to download URLs. Download URLs don’t require a file_id, and follow up to 3 redirects, each validated against SSRF.assets_create and assets_upload_prepare MCP tools can upload files to an Assets field’s default upload location, via their fieldId and elementId arguments.assets_upload_prepare MCP tool is now available over stdio. Its uploads go to action URLs on APP_URL, authorized by a token returned for each upload, so stdio clients can upload files the server can’t read, such as files on the host of a container it runs in. (#20493)configuration_update MCP tool accepts field settings in the form that configuration_get returns them, such as Matrix fields’ entry types. (#20406)CraftCms\Cms\Field\Contracts\McpOutputFieldInterface to control how their values are returned by MCP tools.cpTrigger. (#20353)fields arguments accept dot paths, such as blocks.innerBlocks, which include nested fields of nested elements as {type, id, status} summaries. (#20415)addresses is included in fields. (#20415)elements_list, drafts_list, revisions_list, search_query, and craft_query MCP tools return all non-nested custom fields when fields is null. (#20463)asset_folders_list MCP tool accepts null for criteria.parentId, which lists volumes’ root folders. (#20464)mcp/sdk to 0.9. MCP tools that declare an outputSchema now return an error if their structured content doesn’t match it.resources/widgets/ directory. (#19319)autoEagerLoadElements config setting (true by default), which determines whether element queries should be automatically lazy eager-loaded. (#19637)compiledTemplatesPath config setting. (#18861)defaultRateLimit and defaultRateLimitDuration config settings, which configure the rate limits for login, password reset, and two-step verification requests. (#20054)$ or @.ddev craft and ddev composer in DDEV, and valet php craft and valet composer for Laravel Valet sites isolated to a PHP version. This includes the Plugin Store’s installation instructions, which no longer have separate “Shell” and “DDEV” tabs, and the OAuth signing key instructions on the Settings → MCP and My Account → Tokens screens. (#20492){{ in a message’s subject or body suggests the Twig variables it can use. (#19946)isSystemLive config setting. Laravel maintenance mode should be used instead. With the Yii adapter installed, the deprecated craft:on and craft:off commands still work, and run up and down.allowedGraphqlOrigins, disableGraphqlTransformDirective, enableBasicHttpAuth, enableTwigSandbox, omitScriptNameInUrls, pathParam, permissionsPolicyHeader, previewIframeResizerOptions, purgeStaleUserSessionDuration, requireMatchingUserAgentForSession, requireUserAgentAndIpForSession, useFileLocks, useIframeResizer, and usePathInfo config settings, which no longer have any effect.url(''), siteUrl(''), and homepage URLs, now respect the addTrailingSlashesToUrls config setting, so they no longer end with a trailing slash by default. The siteUrl Twig variable still always ends with a trailing slash. (#19723)pageTrigger query parameter rather than path-style pagination segments.routes.php config file. Register routes using Laravel's routing instead. With the Yii adapter installed, site routes in config/craft/routes.php still work, but are deprecated.craft middleware group can now use Route::allowDuringMaintenance() to stay reachable during maintenance mode. (#20095)laravel_session and XSRF-TOKEN cookies for visitors without one, unless something writes to the session or puts its CSRF token in the response. Responses that don't need a session can then be stored by shared caches, such as CDNs. Requests that arrive with a session cookie are unaffected. For visitors without a session, back() and url()->previous() rely on the Referer header, so sites should send a Referrer-Policy such as same-origin or strict-origin-when-cross-origin (the browser default), not no-referrer.Route::withLazySession(), which gives any route, such as a plugin’s or the host app’s own, the same lazy session as Craft’s site routes. Middleware that reads the session must come after StartSession in the middleware priority list, as lazy routes run their session middleware at that position rather than at its place in the web group. A StartSession subclass in the web group is still used.craftCommand() Twig function, which returns a Craft console command as it should be run for the current environment, such as ddev craft. (#20492)orderBy(), select(), and groupBy() now quote strings as column names, except rand() and random(), which use the database’s random function on MySQL, PostgreSQL, and SQLite alike. Any other SQL expression must be passed with expression() in Twig or DB::raw() in PHP; strings containing ( throw an exception explaining this. (#20190)enabled ?? (setEnabled ? true : null), so a POST carrying none of enabled, setEnabled, or enabledForSite force-enabled the element, and posting setEnabled=0 was how a request opted out of that. A posted status now decides on its own, and a save that doesn’t carry one leaves the element’s status untouched — which is what lets partial/delta saves keep a disabled element disabled. The setEnabled param has nothing left to suppress and is ignored.{% paginate %} queries to use Laravel paginators and generate query-string pagination URLs based on the pageTrigger general config setting.|hexdec Twig filter, which converts a hexadecimal string to a decimal number. It replaces the Hexdec plugin, which can be uninstalled.|anchors Twig filter and @anchors GraphQL directive, which add linkable anchors to HTML headings, and the anchors config setting. They replace the Anchors plugin, which keeps working with the Yii adapter installed. To switch to core, uninstall the plugin, then remove its craftcms/anchors package. With the Yii adapter installed, the plugin’s config/craft/anchors.php file and craft\anchors\Plugin::getInstance()->parser API keep working afterward, but are deprecated.|sanitize Twig filter for sanitizing HTML with CraftCms\Cms\Support\Facades\HtmlSanitizers.|money Twig filter’s formatLocale argument to locale.{% render %} Twig tag. {% render %} tags and render() methods are allowed within the Twig sandbox. (#19988)|date within the Twig sandbox.asset.analysis.colors.textColor(), which also gives the text’s contrast ratio. (#20103)site fields to elements, volume fields to assets, and groups fields to users. (#20055)hasUrls field to volumes in GraphQL queries.graphql:read or graphql:write scope, from personal access tokens created on My Account → Tokens or OAuth clients that users authorize. Requests made with them can query and change only the content that the token’s user has permission to access, and graphql:read tokens can’t run mutations. (#20231)currentUser GraphQL query, which returns the user that authenticated the request with an access token. (#20231)level GraphQL argument is now a [QueryArgument], so it accepts the same values as the level element query param, such as ">= 2" or [1, 2]. Queries that pass it from an Int variable must declare the variable as [QueryArgument]. (#20209)addressLine1, addressLine2, addressLine3, dependentLocality, field, fieldId, firstName, fullName, lastName, locality, organization, organizationTaxId, postalCode, primaryOwnerId, and sortingCode arguments, like the matching address query params. (#20251)canonicalId, canonicalUid, draftId, draftName, draftNotes, fieldId, isDraft, isUnpublishedDraft, ownerId, and sortOrder fields to addresses, and the sortOrder field to content blocks, in GraphQL queries. (#20251)elements_* MCP tools’ query criteria descriptions, now name the element type, such as “the entries’ statuses”, rather than referring to “elements”. (#20250)sortOrder, rather than ignoring them, and each Matrix entry input can only specify one entry type. (#19965)null when their conditions are element-specific. Fields the user can’t edit are excluded from mutation arguments, or result in an error when set if their conditions are element-specific. (#20391)php craft fields:merge and php craft entry-types:merge commands will now generate Laravel migrations.CraftCms\Cms\Database\Migration::archiveTableIfExists(), the native equivalent of craft\db\Migration::archiveTableIfExists(). It also renames the archived table’s indexes and PostgreSQL sequence, and drops its foreign keys on MySQL, so install migrations can create the table again. Archived names are kept within the database’s identifier length limit, including the table prefix.craft\db\Migration::archiveTableIfExists() no longer truncates archived table names to 10 characters, such as webhoo_old instead of webhookgroups_old.elevatedSessionDuration general config setting. The auth.password_timeout config value should be used instead. To disable password confirmation (elevated sessions), you now set this value to -1 instead of 0.
errorTemplatePrefix general config setting. Error templates now go in an errors/ folder within the site templates, such as errors/404.twig, errors/_404.twig, or errors/404.blade.php, with errors/offline and errors/error as fallbacks, and a site’s own template folder takes precedence, such as resources/views/siteHandle/errors/404.twig. (#20448)testToEmailAddress general config setting. Illuminate\Support\Facades\Mail::alwaysTo() should be used instead.blowfishHashCost general config setting in favor of Laravel's hashing.bcrypt.rounds config or the BCRYPT_ROUNDS environment variable.csrfTokenName, enableCsrfCookie, and enableCsrfProtection general config settings. (#18806)defaultCookieDomain, phpSessionName, sameSiteCookieValue, useSecureCookies, and userSessionDuration general config settings. Laravel’s session config should be used instead.rememberedUserSessionDuration and verificationCodeDuration general config settings. Laravel’s auth.guards.craft.remember and auth.passwords.craft.expire config values should be used instead.secureHeaders, secureProtocolHeaders, and trustedHosts general config settings. Laravel’s trusted proxies should be configured instead.devMode and securityKey general config settings. Laravel’s app.debug and app.key config values should be used instead.craft.app.config.general in Twig. app.config.craft.general should be used instead.craft.app.userPermissions. craft.userPermissions should be used instead.asset.setTransform(). asset.transform() should be used instead. With the Yii adapter installed, setTransform() still works on assets returned by Assets fields and asset queries, but the transform only applies to the asset’s URL, not its width, height, or getImg() output. (#20191)DB_PREFIX environment variable. When craftcms/yii2-adapter is installed, Craft 5’s CRAFT_DB_TABLE_PREFIX and DB_TABLE_PREFIX environment variables are still applied, with a trailing underscore. (#20192)pixelandtonic/imagine with intervention/image for image manipulation.craftcms/cms-assets package. (#19162)PDO::MYSQL_ATTR_SSL_* attributes set, and respect the PDO::MYSQL_ATTR_SSL_CAPATH and PDO::MYSQL_ATTR_SSL_CIPHER attributes. (#19366)config/project/ folder empty. Existing files are now only replaced as new ones are written, and the error now includes its underlying cause. (#20519)Your coding agent can read these notes before it upgrades. Set up the MCP server →
Items that rely on JavaScript are left out, and deprecation warnings point to the code to update.
craft-button links couldn’t be reached with the <kbd>Tab</kbd> key. (#19785)elements.* MCP tools that list, read, create, update, delete, restore, validate, and duplicate elements of any supported type, with elements.schema and craft://element-types resources describing each type’s criteria and attributes. (#19846)activity.list and activity.comments.create MCP tools for reading element timelines and adding editorial comments. (#19846)mcp:serve command, which serves the authenticated MCP server over stdio as a named user. (#19846)CraftCms\Cms\Config\McpConfig::$instructions setting, and the CraftCms\Cms\Mcp\Events\CollectingAdminInstructions event for site and plugin guidance. (#19846)elements.list, drafts.list, revisions.list, and search.query MCP tools. (#19846)<craft-component-select>, keeping selected entry types listed as checked options. (#19888)money columns and grouped options in legacy editable tables and Form tables, including a configurable Money cell type for Table fields. (#19870)CraftCms\Cms\Form\Controls\NestedElements and CraftCms\Cms\Element\NestedElementManager::formControl(), allowing plugins to manage custom nested element types as cards or embedded element indexes. (#19792)CraftCms\Cms\Http\ViewModels\ElementEditViewModel for custom element types. (#19792)craft:layout-slot, craft:app-layout, and craft:cp-container global Vue components, which plugins can use to fill control panel screen layout regions on their own Inertia pages. (#19854)primary-action screen layout slot and CraftCms\Cms\Http\Responses\CpScreenResponse::primaryAction(), for replacing the Save button while keeping its action menu. (#19854)CraftCms\Cms\Element\Events\ElementActionMenuDescriptorsResolving, allowing plugins to add action menu items to the Inertia element editor and element chips. (#19783)CraftCms\Cms\Mcp\Elements\ElementAdapter, CraftCms\Cms\Mcp\Elements\BaseElementAdapter, and CraftCms\Cms\Mcp\Elements\ElementAdapterRegistry, allowing plugins to make their element types available through the elements.* MCP tools. (#19846)CraftCms\Cms\Mcp\Attributes\RequiresHttp, for MCP capabilities that only work over HTTP. (#19846)directPermissions to MCP user permission results and CraftCms\Cms\User\UserPermissions::getDirectPermissionsByUserId(). (#19846)CraftCms\Cms\Element\Events\ElementEditorPayloadResolving. (#19792)CraftCms\Cms\Asset\AssetUploadHandler::ingest(), allowing non-HTTP adapters to reuse Craft’s asset creation workflow. (#19823)CraftCms\Cms\Asset\Data\AssetIngest, allowing transport adapters to set metadata and custom field values before validation and persistence. (#19827)CraftCms\Cms\Element\UserInitiatedElementSave and CraftCms\Cms\Element\Data\UserInitiatedElementSaveResult, providing a shared workflow for user-initiated element saves. (#19822)CraftCms\Cms\Component\TypeRegistry::defer(), for registering types once the registry is first read rather than at boot. (#19851)$appearance argument to CraftCms\Cms\Cp\Html\StatusHtml::statusIndicatorHtml() and componentStatusIndicatorHtml(). (#19842)CraftCms\Cms\Markdown\MarkdownOptions::$indentedCode, which determines whether indented lines can start code blocks. (#19859)CraftCms\Cms\Search\Events\KeywordsIndexing::$layoutElementUid. (#13991)--c-layer-header and --c-layer-skip-link CSS custom properties, and the z-header and z-skip-link utilities. (#19886)width attribute to <craft-input-date-time>, along with CraftCms\Cms\Cp\Components\InputDateTime::width() and CraftCms\Cms\Form\Controls\DateTime::fullWidth(), for stretching date and time inputs across their container. (#19871)createHttpClient(), http, isHttpError(), and isCancel() to @craftcms/ui.Craft.isCancel().CraftCms\Cms\Cp\Components\ComponentSelect and CraftCms\Cms\Cp\Components\EntryTypeSelect, which the _includes/forms/componentSelect.twig and _includes/forms/entryTypeSelect.twig templates now render. (#19888)CraftCms\Cms\Cp\FormFields::componentSelectFromConfig() and entryTypeSelectFromConfig(). (#19888)CraftCms\Cms\Form\Controls\EntryTypeSelect. (#19888)checkbox-options attribute to <craft-component-select>, which keeps selected options listed as checked items. (#19888)text-quiet Tailwind utility. (#19888)craft\base\Element::EVENT_DEFINE_ACTION_MENU_ITEMS, or by plugin element types’ safeActionMenuItems() and destructiveActionMenuItems() overrides, through the Yii adapter, if they define a url or action. Items that rely on JavaScript are left out, and deprecation warnings point to the code to update. (#19783)CraftCms\Cms\Cp\FormFields::editableTableHtml(), editableTableFieldHtml(), and the corresponding Twig macros to use form-builder tables. (#19873)CraftCms\Cms\Entry\EntryTypes::saveEntryType() to validate entry types and their field layouts by default, with a $runValidation argument for bypassing validation. (#19821)<craft-indicator> to use the solid appearance by default, rather than outline-fill, except for white and black fills, which keep outline-fill (with a white outline for black). (#19842)actionClient and apiClient from @craftcms/ui to use a fetch-based HTTP client with the same request methods, rather than Axios.Craft.sendActionRequest() and Craft.sendApiRequest() to no longer use Axios. Their errors still pass axios.isAxiosError() and axios.isCancel() checks.axios when craftcms/yii2-adapter is installed. Craft.sendActionRequest() or actionClient from @craftcms/ui should be used instead.craft\queue\Queue::getJobId() to return null when the current job isn’t being run by Yii’s queue. (#19835)craftcms/yii2-adapter. (#19804)initJs option and number column locale option. Tables now mount automatically, and number columns submit unformatted values. (#19873)cancelToken request option for Craft.sendActionRequest() and Craft.sendApiRequest(). signal should be used instead.craft\base\Plugin::getVersion() and setVersion(). The $version property should be used instead. (#19850)Cp.$axios.craft\elements\db\ElementQuery::beforePrepare(). CraftCms\Cms\Element\Queries\ElementQuery::elementQueryBeforeQuery() should be overridden instead. (#19838)craft\elements\db\ElementQuery::joinElementTable(). Element queries should now declare their element table via the $table property, which is joined automatically. (#19838)craft\elements\db\ElementQuery::$subQuery. Element queries are now a single query, so joins and conditions should be applied to $query. (#19838)breadcrumbs and submit-button screen layout slots, which never rendered on full pages. The crumbs page prop and the primary-action slot should be used instead. (#19854)pasteableEntryTypeIds nested element manager setting. pasteableData should be used instead. (#19792)showLabelField was disabled. (#19811)minRows setting before becoming visible. (#19815)on instead of their configured checked value in HTML forms. (#19873)slot attribute. (#19874)CraftCms\Cms\User\UserGroups::saveGroup() did not validate user groups, and added its $runValidation argument. (#19820)craft:up could fail on installs that didn’t have a migrations table yet. (#19796)craft\services\Dashboard::EVENT_REGISTER_WIDGET_TYPES listeners, relied on the current user. Legacy type registration events are now triggered when the types are first needed rather than on every request, as they were in Craft 5. (#19851)craft\base\Plugin::getVersion() returned 1.0 for Craft 5 plugins, rather than the version from their Composer manifest. (#19850)Craft::getAlias() was passed a value that wasn’t an alias, such as null. Non-alias values are now returned unchanged, as they were in Craft 5. (#19853)craft\web\assets\htmx\HtmxAsset. The bundle is now deprecated and doesn’t register htmx, so plugins that rely on htmx should bundle it themselves. (#19836)actions/… URL. (#19837)cp.js, leaving legacy controls unresponsive. (#19840)cp.js, causing “jQuery is not defined” errors. (#19840)getFieldLayout() methods declared a craft\models\FieldLayout return type. craft\models\FieldLayout is now an alias of CraftCms\Cms\FieldLayout\FieldLayout. (#19834)craft\base\Model. (#19813)CpContainer’s full slot wasn’t displayed at full width. (#19854)> This update contains breaking changes for plugins. See #19574, #19563, #19588, #19585, and #19650 for details.
[!IMPORTANT] This update contains breaking changes for plugins. See #19574, #19563, #19588, #19585, and #19650 for details.
contentMaxWidth and centerContent options. (#19648)ElementEditor now supports rendering as a full page in addition to a slideout. (#19648)formModal element action behavior. (#19768)sidebarForm and metadataHtml props to Form.vue pages, allowing sidebar controls to be saved alongside the main form. (#19778)CraftCms\Cms\Http\Responses\CpScreenResponse::addAltAction() submissions on Inertia Form pages and slideouts. (#19779)<craft-timeline-item> web component. (#19629)placeholder property to <craft-thumbnail>, for an image to show while the thumbnail loads. (#19750)CraftCms\Cms\Form\Controls\Combobox\CreateOption for creating and selecting resources in comboboxes, including user photo volumes. (#19777)--c-thumbnail-image-radius custom property to <craft-thumbnail>, and its other custom properties can now be set on an ancestor. (#19758)<craft-chip>’s prefix slot no longer replaces its thumbnail, icon, and status; it’s shown before them. (#19758)CraftCms\Cms\Form\Nodes\Callout::padding(), supported by PHP and Vue form rendering. (#19773)crop, fit, stretch, and letterbox modes to craft-thumbnail, and removed size-dependent asset thumbnail cropping.<img> tags returned by CraftCms\Cms\Asset\Elements\Asset::getImg() now have a blurred placeholder as their background, unless the image has transparent regions. (#19750)asset.blurhash in templates and the blurhash field in GraphQL queries. (#19755)blurhash, colors, and placeholderDataUrl fields to assets in GraphQL queries. (#19740, #19750, #19755)$mode argument to core thumbnail APIs, defaulting to Fit for thumbnail HTML and Crop for CraftCms\Cms\Asset\Assets::getThumbUrl(). Implementations of CraftCms\Cms\Component\Contracts\Thumbable and CraftCms\Cms\Field\Contracts\ThumbableFieldInterface, and overrides of thumbnail layout methods and thumbUrl(), must update their signatures for Craft 6, including through existing Yii aliases; existing calls remain valid. The Yii Assets service wrapper and legacy thumbnail event are unchanged.CraftCms\Cms\Asset\Elements\Asset::$colors. (#19740, #19750)CraftCms\Cms\Asset\Elements\Asset::getBlurhash(). (#19755)CraftCms\Cms\Asset\Elements\Asset::getPlaceholderDataUrl(). (#19750)CraftCms\Cms\Asset\Elements\Asset::$uploadColors. (#19751)CraftCms\Cms\Image\Blurhash. (#19755)CraftCms\Cms\Image\ColorGrid. (#19755)CraftCms\Cms\Image\Data\ImageColors. (#19740, #19750)CraftCms\Cms\Image\Images::colors(). (#19740, #19750)users/upload-user-photo to start an upload session using JSON file metadata instead of multipart file data.assets/upload and assets/replace-file multipart endpoints and legacy uploader events and overrides.CraftCms\Cms\Condition\BaseConditionGroup. (#19587)CraftCms\Cms\Condition\ConditionBuilderPayload. (#19587)CraftCms\Cms\Condition\ConditionBuilderRenderer. (#19587)CraftCms\Cms\Condition\ConditionBuilder. (#19587)CraftCms\Cms\Condition\ConditionRulePayload. (#19587)CraftCms\Cms\Condition\Contracts\ConditionComponentInterface. (#19587)CraftCms\Cms\Condition\Contracts\ConditionGroupInterface. (#19587)CraftCms\Cms\Condition\Contracts\ConditionInterface::createGroup(). (#19587)CraftCms\Cms\Condition\Contracts\ConditionRuleInterface::getForm(), which replaces getHtml(). (#19588)CraftCms\Cms\Condition\Contracts\ConditionRuleInterface::isSelectableForCondition(). (#19563)CraftCms\Cms\Condition\Enums\GroupOperator. (#19587)CraftCms\Cms\Element\Conditions\Contracts\ElementQueryConditionRuleInterface, which element condition rules that modify element queries should now implement. (#19563)CraftCms\Cms\Element\Conditions\ElementCondition::$forQuery. (#19563)CraftCms\Cms\Element\Conditions\ElementCondition. (#19587)CraftCms\Cms\Condition\Contracts\ConditionRuleInterface::getHtml(). getForm() must be implemented instead. (#19588)CraftCms\Cms\Element\Conditions\Contracts\ElementConditionRuleInterface::getExclusiveQueryParams() and modifyQuery(). ElementQueryConditionRuleInterface::modifyQuery() should be implemented instead, which now accepts the underlying query builder directly. (#19563)CraftCms\Cms\Element\Conditions\ElementCondition::$queryParams. (#19563)CraftCms\Cms\Field\Contracts\FieldInterface::modifyQuery() now accepts an Illuminate\Database\Query\Builder object for its $query argument, and has a new CraftCms\Cms\Element\Queries\Contracts\ElementQueryInterface $elementQuery argument, and a void return type. (#19562, #19585)CraftCms\Cms\Workflow\Contracts\WorkflowStageInterface and CraftCms\Cms\Workflow\Stages\WorkflowStage, for creating custom workflow stage types. (#19667)CraftCms\Cms\Workflow\WorkflowStageTypes, for registering custom workflow stage types. (#19667)CraftCms\Cms\Workflow\Contracts\WorkflowableInterface, which element types can implement to support workflows. (#19667)CraftCms\Cms\Workflow\Workflows and CraftCms\Cms\Support\Facades\Workflows. (#19667)CraftCms\Cms\Workflow\Events\WorkflowTransitioning, WorkflowTransitioned, and WorkflowCommented events. (#19667)autoEagerLoadElements general config setting (true by default), which determines whether element queries should be automatically lazy eager-loaded. (#19637)CraftCms\Cms\Activity\Contracts\ShouldBeRetained, allowing activity event types such as comments to opt out of activity garbage collection.CraftCms\Cms\User\Elements\User elements. (#19541)authGuard and authPasswordBroker general config settings, allowing Craft authentication to use a dedicated Laravel guard, provider, and password broker. (#19598)config/filesystems.php, and each defines whether its assets have public URLs. Existing filesystem references are migrated to matching disks automatically, with an actionable error if a disk isn’t configured. (#19650)CraftCms\Cms\Asset\Models\Volume::$hasUrls, which determines whether the volume’s assets have public URLs. (#19650)CraftCms\Cms\Config\GeneralConfig::$uploadSessionDisk and getUploadSessionDisk(), which determine the disk used to stage upload sessions. (#19650)CraftCms\Cms\Config\GeneralConfig::$tempAssetUploadFs to $tempAssetUploadDisk, and getTempAssetUploadFs() to getTempAssetUploadDisk(), which now reference a Laravel filesystem disk exclusively. (#19650)CraftCms\Cms\Cp\SelectOptions::getFsOptions() to getDiskOptions(), which now returns Laravel filesystem disk options exclusively. (#19650)CraftCms\Cms\Asset\Assets::getTempAssetUploadFs() and CraftCms\Cms\Asset\AssetsHelper::isTempUploadFs(). Assets::getTempAssetUploadDisk() should be used instead, which now returns a Laravel filesystem disk. (#19650)CraftCms\Cms\Cp\Components\FilesystemSelect and CraftCms\Cms\Form\Controls\FilesystemSelect. (#19650)CraftCms\Cms\Filesystem\Filesystems, FilesystemTypes, Contracts\FsInterface, Filesystems\Filesystem (and its DiskFilesystem, Local, MissingFs, and Temp implementations), Resources\FsResource, Events\FilesystemRenamed, and CraftCms\Cms\Support\Facades\Filesystems. Laravel filesystem disks should be configured and referenced directly instead; Craft filesystem types registered through craft\base\Fs remain supported for legacy plugins via the Yii adapter. (#19650)CraftCms\Cms\Http\Controllers\Settings\FilesystemsController and CraftCms\Cms\Http\ViewModels\FilesystemsEditViewModel, along with the Filesystems control panel settings page. (#19650)CraftCms\Cms\Plugin\Concerns\HasFilesystemTypes. Plugins can no longer register custom Craft filesystem types. (#19650)CraftCms\Cms\Form\Controls\Text::suffix() for display-only suffix text in PHP and Vue form controls. (#19770)CraftCms\Cms\Element\Data\ElementSiteSettings, the shared base for element URI and route settings. (#19762)CraftCms\Cms\Form\Nodes\Group::expanded(), allowing collapsible section groups to start expanded in Vue and HTML forms. (#19772)CraftCms\Cms\Route\CurrentElement, a contextual attribute for injecting the matched element into controller actions and route closures. (#19762)CraftCms\Cms\Contracts\PluginInterface::createSettings(), which replaces createSettingsModel(). (#19574)CraftCms\Cms\Dashboard\Widgets\Widget::component() and props(), which replace getBodyHtml(). (#19564)CraftCms\Cms\Support\Url::stripCpTrigger(). (#19724)CraftCms\Cms\Support\Url::removeParam() now accepts an array of param names. (#19724)CraftCms\Cms\Contracts\PluginInterface::createSettingsModel(). createSettings() must be implemented instead. (#19574)CraftCms\Cms\Dashboard\Widgets\Widget::getBodyHtml(). component() and props() must be implemented instead. (getBodyHtml() remains supported through the Yii adapter.) (#19564)CraftCms\Cms\Support\Url::baseUrl(), cpHost(), encodeParams(), host(), isFullUrl(), removeParams(), and rootRelativeUrl(). (They remain available on craft\helpers\UrlHelper through the Yii adapter.) (#19724)Cp.$elementDetailsTabs, allowing plugins to register control panel element-details tabs. (#19646)CraftCms\Cms\Support\Flash::all(), make(), and push(), and a $target argument to Flash::success(), error(), and notice() for showing a message in an inline outlet rather than the default message display.messages Inertia shared prop, which carries every flashed control panel message with its type, settings, and id.useMessages() and useMessageOutlet() for showing control panel messages from Vue, and the craft-message window event for showing them from anywhere else.asSuccess() and asFailure() JSON responses now include a messages list on control panel requests, and asSuccess() no longer also flashes the message to the session for JSON responses.asFailure() now flashes its message even when the response has validation errors.flash Inertia shared prop. messages should be used instead.useFlash(), useFlashMessages(), and the FlashMessages Vue component. useMessages() should be used instead.XRegExp library by default. Plugins that require it can register craft\web\assets\xregexp\XregexpAsset. (#19621)CraftCms\Cms\ProjectConfig\ProjectConfig::getPendingChanges().url(''), siteUrl(''), and homepage URLs, now respect the addTrailingSlashesToUrls config setting, so they no longer end with a trailing slash by default. The siteUrl Twig variable still always ends with a trailing slash. (#19723)CraftCms\Cms\Support\Env::parse() to preserve unknown aliases rather than throw an exception. (#19535)CraftCms\Cms\Filesystem\Filesystems\Filesystem::getRootUrl(). (#19535)resave and update-statuses commands reported skipped revisions as root element lookup errors.composer.json partially modified after a failure. (#19568)__ERROR__ or __VALUE__ keys. (#19568)readOnly state. (#19726)<craft-input-date-time> didn’t have individual accessible names. (#19741)CRAFT_SITE or X-Craft-Site referenced a missing site. (#19745)<craft-callout> boxes didn’t span all columns in grid layouts. (#19773)<craft-input> fields with a maxlength weren’t sized to fit it, which made the element index pagination’s page input overlap the “Next page” button.Removed CraftCms\Cms\Config\GeneralConfig::$isSystemLive, app()->isLive(), and the core craft:on and craft:off commands. Deprecated compatibility rema…
CraftCms\Cms\Asset\AssetTransformers and CraftCms\Cms\Asset\AssetTransformDrivers.CraftCms\Cms\Config\GeneralConfig::$defaultAssetTransformer.CraftCms\Cms\Config\GeneralConfig::$isSystemLive, app()->isLive(), and the core craft:on and craft:off commands. Deprecated compatibility remains available through craftcms/yii2-adapter.generateTransformsBeforePageLoad setting to Craft Asset Transformer profiles.CraftCms\Cms\Image\ImageTransforms. Legacy equivalents remain available through craftcms/yii2-adapter.$ or @, automatically bracing embedded environment variables.config/craft/app.php did not receive messages logged with Craft::info() and related methods. (#19517)CraftCms\Cms\Filesystem\Filesystems\Local, with legacy filesystem compatibility remaining available through craftcms/yii2-adapter. (#19525)Improved template resource cache collection by replaying structured HTML stack entries without parsing rendered tags.
CraftCms\Cms\Auth\Passkeys\Passkeys::verifyPasskey() to return the updated credential record on success.webonyx/graphql-php while preserving Craft-specific query condition validation.CraftCms\Cms\Form\FormResolver performance by indexing control paths and node UIDs for membership checks.CraftCms\Cms\Http\ResponseHeaders and CraftCms\Cms\Support\Facades\ResponseHeaders for accumulating response headers within the current request scope.CraftCms\Cms\Support\Json::decode() to use exception-based JSON decoding.craft:db:drop-all-tables to use Laravel’s schema API.CraftCms\Cms\Asset\Enums\AssetIndexStatus and explicit status transitions.CraftCms\Cms\Plugin\Plugin::settingsForm() for defining standard plugin settings pages with the Control Panel Form system. (#19439)CraftCms\Cms\Plugin\Plugin::settingsHtml(). settingsForm() should be used instead; Yii-era plugin settings HTML remains supported by craftcms/yii2-adapter. (#19439)CpScreenResponse-based screen as an in-page panel from a normal Inertia response, alongside the existing legacy Craft.CpScreenSlideout. (#19354)CraftCms\Cms\Http\Responses\CpScreenResponse::screenData(). (#19354)Pane.vue Vue component in favor of the craft-pane web component. (#19398)CraftCms\Cms\Edition capability checks could report capabilities from the configured edition rather than the receiver.CraftCms\Cms\Element\ElementCollection::with() could pass incompatible element classes into eager loading.CraftCms\Cms\Utility\Utilities\ClearCaches::add() and addTag() were unavailable as Artisan commands.craft\web\View::registerAssetBundle() during plugin initialization were not included in rendered pages. (#19393)craftcms/yii2-adapter. (#19394)config/craft/app.web.php or config/craft/app.console.php was present.jobprogress table was missing dateCompleted and dateFailed columns for installs that were upgraded from Craft 5.Fixed a bug where Yii-style migrations could be required twice.
Deprecated the Craft.LightSwitch, Craft.InfoIcon, Craft.ColorInput, Craft.PasswordInput, Craft.IconPicker, Craft.SlidePicker, Craft.SlideRuleInput, an…
resources/widgets/ directory. (#19319)pixelandtonic/imagine with intervention/image for image manipulation.intervention/image-driver-vips package.CraftCms\Cms\FieldLayout\FieldLayout, CraftCms\Cms\FieldLayout\FieldLayoutTab, and field layout elements.craft:resave:all to discover registered craft:resave:* Artisan commands directly, rather than relying on a resolving event. (#19270)CraftCms\Cms\Cp\FormFields::textFromConfig() to accept an optional CraftCms\Cms\Cp\Components\Input instance as a second argument, so callers can build on an existing component instead of always creating a plain Input. (#19323)CraftCms\Cms\Search\Events\SearchPerformed to be a readonly, immutable event; its $results and $scores properties can no longer be overridden by listeners. CraftCms\Cms\Search\Events\SearchScoresResolving should be used to override scores instead. (#19308)CraftCms\Cms\Asset\AssetFileKinds. (#19270)CraftCms\Cms\Cp\Components\Button::action(), for declarative click actions. (#19324)CraftCms\Cms\Cp\Components\Button::inherit(). (#19306)CraftCms\Cms\Cp\Components\InputColor. (#19323)CraftCms\Cms\Cp\Components\InputPassword. (#19323)CraftCms\Cms\Cp\Data\NavItem::group(). (#19350)CraftCms\Cms\Cp\Enums\ButtonVariant. (#19306)CraftCms\Cms\Cp\FormFields::colorFromConfig(). (#19323)CraftCms\Cms\Cp\FormFields::passwordFromConfig(), passwordHtml(), and passwordFieldHtml(). (#19323)CraftCms\Cms\Cp\Html\ElementHtml::elementCardLabelHtml(), elementCardActionsHtml(), elementCardThumbHtml(), and elementCardThumbAlignment(). (#19324)CraftCms\Cms\Cp\Settings::registerSetting() and registerReadOnlySetting(). (#19270)CraftCms\Cms\Dashboard\WidgetTypes. (#19270)CraftCms\Cms\Database\Commands\MigrateCommand::registerMigrator(). (#19270)CraftCms\Cms\Element\ElementTypes. (#19270)CraftCms\Cms\Element\NestedElementManager::getCardsData() and getIndexData(). (#19324)CraftCms\Cms\Field\FieldTypes. (#19270)CraftCms\Cms\Field\LinkTypes. (#19270)CraftCms\Cms\Field\NestedEntryFieldTypes. (#19270)CraftCms\Cms\FieldLayout\NativeFields. (#19270)CraftCms\Cms\Filesystem\FilesystemTypes. (#19270)CraftCms\Cms\Gql\GqlArguments. (#19270)CraftCms\Cms\Gql\GqlDirectives. (#19270)CraftCms\Cms\Gql\GqlMutations. (#19270)CraftCms\Cms\Gql\GqlQueries. (#19270)CraftCms\Cms\Gql\GqlTypes. (#19270)CraftCms\Cms\Image\ImageTransformers. (#19270)CraftCms\Cms\Image\Raster::getInterventionImage().CraftCms\Cms\Plugin\Plugin::$filesystemTypes. (#19307)CraftCms\Cms\Plugin\Plugin::$gqlDirectives. (#19307)CraftCms\Cms\Plugin\Plugin::$gqlMutations. (#19307)CraftCms\Cms\Plugin\Plugin::$gqlQueries. (#19307)CraftCms\Cms\Plugin\Plugin::$gqlTypes. (#19307)CraftCms\Cms\Plugin\Plugin::$linkTypes. (#19307)CraftCms\Cms\Plugin\Plugin::$siteTemplateRoots. (#19307)CraftCms\Cms\Plugin\Plugin::getCacheOptions(). (#19307)CraftCms\Cms\Plugin\Plugin::getCacheTags(). (#19307)CraftCms\Cms\Plugin\Plugin::getNativeFields(). (#19307)CraftCms\Cms\Plugin\Plugin::getSystemMessages(). (#19307)CraftCms\Cms\Search\Events\SearchResultsResolving. (#19308)CraftCms\Cms\Search\Events\SearchScoresResolving. (#19308)CraftCms\Cms\Support\Facades\AuthMethods. (#19270)CraftCms\Cms\SystemMessage\SystemMessages::register(). (#19270)CraftCms\Cms\Twig\Variables\Cp::color() and password(). (#19323)CraftCms\Cms\User\UserPermissions::registerPermissionGroup(). (#19270)CraftCms\Cms\Utility\Utilities\ClearCaches::add() and addTag(). (#19270)CraftCms\Cms\Utility\UtilityTypes. (#19270)CraftCms\Cms\View\TemplateCacheCollectors. (#19270)CraftCms\Cms\View\TemplateRoots. (#19270)CraftCms\Cms\Support\Concerns\EvaluatesClosures and support for closure values in fluent CP component and field layout builder APIs.CraftCms\Cms\FieldLayout\LayoutElements\BaseField::label() to accept an optional label and return the field layout element when one is passed. Overrides must accept the new optional argument.CraftCms\Cms\Image\Raster::getTextBox() to return a width and height array.CraftCms\Cms\FieldLayout\LayoutElements\BaseField::instructions(), tip(), and warning() methods to instructionsText(), tipText(), and warningText().CraftCms\Cms\Asset\Events\AssetFileKindsResolving. CraftCms\Cms\Asset\AssetFileKinds::register() should be used instead. (#19270)CraftCms\Cms\Auth\Events\AuthMethodsResolving. CraftCms\Cms\Auth\AuthMethods::register() should be used instead. (#19270)CraftCms\Cms\Cp\Events\RegisterCpSettings and CraftCms\Cms\Cp\Events\RegisterReadonlyCpSettings. CraftCms\Cms\Cp\Settings::registerSetting() and registerReadOnlySetting() should be used instead. (#19270)CraftCms\Cms\Dashboard\Events\WidgetTypesResolving. CraftCms\Cms\Dashboard\WidgetTypes::register() should be used instead. (#19270)CraftCms\Cms\Database\Events\MigratorsResolving. CraftCms\Cms\Database\Commands\MigrateCommand::registerMigrator() should be used instead. (#19270)CraftCms\Cms\Element\Events\ElementResaveCommandsResolving. A normal Artisan command in the craft:resave namespace should be registered instead. (#19270)CraftCms\Cms\Element\Events\ElementTypesResolving. CraftCms\Cms\Element\ElementTypes::register() should be used instead. (#19270)CraftCms\Cms\Field\Events\FieldTypesResolving. CraftCms\Cms\Field\FieldTypes::register() should be used instead. (#19270)CraftCms\Cms\Field\Events\LinkTypesResolving. CraftCms\Cms\Field\LinkTypes::register() should be used instead. (#19270)CraftCms\Cms\Field\Events\NestedEntryFieldTypesResolving. CraftCms\Cms\Field\NestedEntryFieldTypes::register() should be used instead. (#19270)CraftCms\Cms\FieldLayout\Events\NativeFieldsResolving. CraftCms\Cms\FieldLayout\NativeFields::register() should be used instead. (#19270)CraftCms\Cms\Filesystem\Events\FilesystemTypesResolving. CraftCms\Cms\Filesystem\FilesystemTypes::register() should be used instead. (#19270)CraftCms\Cms\Gql\Events\GqlArgumentHandlersResolving. CraftCms\Cms\Gql\GqlArguments::register() should be used instead. (#19270)CraftCms\Cms\Gql\Events\GqlDirectivesResolving. CraftCms\Cms\Gql\GqlDirectives::register() should be used instead. (#19270)CraftCms\Cms\Gql\Events\GqlMutationsResolving. CraftCms\Cms\Gql\GqlMutations::register() should be used instead. (#19270)CraftCms\Cms\Gql\Events\GqlQueriesResolving. CraftCms\Cms\Gql\GqlQueries::register() should be used instead. (#19270)CraftCms\Cms\Gql\Events\GqlTypesResolving. CraftCms\Cms\Gql\GqlTypes::register() should be used instead. (#19270)CraftCms\Cms\Image\Events\ImageTransformersResolving. CraftCms\Cms\Image\ImageTransformers::register() should be used instead. (#19270)CraftCms\Cms\Image\Images::MINIMUM_IMAGICK_VERSION and craft\services\Images::MINIMUM_IMAGICK_VERSION.CraftCms\Cms\Image\Raster::getImagineImage().CraftCms\Cms\Search\Events\ScoringResults in favor of the following new events: (#19308)
CraftCms\Cms\Search\Events\SearchResultsResolvingCraftCms\Cms\Search\Events\SearchScoresResolvingCraftCms\Cms\SystemMessage\Events\SystemMessagesResolving. CraftCms\Cms\SystemMessage\SystemMessages::register() should be used instead. (#19270)CraftCms\Cms\User\Events\UserPermissionsResolving. CraftCms\Cms\User\UserPermissions::registerPermissionGroup() should be used instead. (#19270)CraftCms\Cms\Utility\Events\ClearCachesOptionsResolving and CraftCms\Cms\Utility\Events\ClearCachesTagOptionsResolving. CraftCms\Cms\Utility\Utilities\ClearCaches::add() and addTag() should be used instead. (#19270)CraftCms\Cms\Utility\Events\UtilitiesResolving. CraftCms\Cms\Utility\UtilityTypes::register() should be used instead. (#19270)CraftCms\Cms\View\Events\CpTemplateRootsResolving and CraftCms\Cms\View\Events\SiteTemplateRootsResolving. CraftCms\Cms\View\TemplateRoots::register() should be used instead. (#19270)CraftCms\Cms\View\Events\TemplateCacheCollectorsResolving. CraftCms\Cms\View\TemplateCacheCollectors::register() should be used instead. (#19270)@craftcms/ui/factory module, a jQuery-free layer of typed element factories that mirror the src/Cp/Components PHP builders. (#19323)createTextInput() and createCopyTextPrompt() to the @craftcms/ui/factory module. (#19333)turnOn(), turnOff(), and turnIndeterminate() methods to the <craft-switch> web component. (#19323)group property to the <craft-nav-item> web component, for rendering a subnav as a non-collapsible semantic grouping. (#19350)Garnish.CustomSelect and Garnish.MenuBtn to @craftcms/garnish, jQuery-free TypeScript ports of the legacy floating listbox menu and menu-button classes. (#19352)Craft.ComponentSelectInput control panel JavaScript class out of the core bundle into a yii2-adapter compatibility asset, since <craft-component-select> is now used everywhere in core; the componentSelect.twig jsClass escape hatch still works for plugin subclasses. (#19333)Craft.AssetMover, Craft.AssetSelectorModal, Craft.BaseElementSelectInput, Craft.BaseElementSelectorModal, Craft.BaseUploader, Craft.Chart, Craft.CpModal, Craft.CustomizeSourcesModal, Craft.DataTableSorter, Craft.ElementActionTrigger, Craft.ElementDeletionManager, Craft.ElementTableSorter, Craft.EntrySelectInput, Craft.Grid, Craft.PreviewFileModal, Craft.Tabs, Craft.TagSelectInput, Craft.Uploader, and Craft.VolumeFolderSelectorModal control panel JavaScript classes from the legacy jQuery bundle to TypeScript modules. (#19352)<craft-nav-item> to render as a <span> instead of an <a> when it has no href, dropping aria-current in that case. (#19350)Craft.LightSwitch, Craft.InfoIcon, Craft.ColorInput, Craft.PasswordInput, Craft.IconPicker, Craft.SlidePicker, Craft.SlideRuleInput, and Craft.Tooltip control panel JavaScript classes, along with the .infoicon jQuery plugin. The corresponding @craftcms/ui web components should be used instead. (#19323)Craft.Accordion and Craft.EnvVarGenerator control panel JavaScript classes. (#19323)Craft.DeleteUserModal control panel JavaScript class. It was deprecated in 5.10.0 and unused. (#19352)accent semantic color used by colorable elements (e.g. craft-callout, [data-color]) rendered red instead of blue, due to a drifted color mapping in @craftcms/ui. (#19306)forms.checkboxField() and CraftCms\Cms\Cp\FormFields::checkboxFieldHtml() rendered an empty field. (#19338)$ is not defined and window.Cp.config is not a function errors to the console. (#19340)actionClient requests for bare action paths could corrupt the ?site= query string on multi-site installs. (#19342)Craft.cp.announce() now accepts live regions that are plain elements as well as jQuery collections. (#19340)Fixed a high-severity authorization bypass vulnerability.
[!IMPORTANT] This update contains breaking changes for plugins. See #19263 for details.
extra.laravel.providers in composer.json. (#19263)CraftCms\Cms\Cp\Components\Button. (#19248)CraftCms\Cms\Cp\Components\ButtonGroup. (#19248)CraftCms\Cms\Cp\Components\Callout. (#19248)CraftCms\Cms\Cp\Components\Checkbox. (#19248)CraftCms\Cms\Cp\Components\CheckboxGroup. (#19248)CraftCms\Cms\Cp\Components\CheckboxSelect. (#19248)CraftCms\Cms\Cp\Components\ChoiceGroup. (#19248)CraftCms\Cms\Cp\Components\ComponentRegistry. (#19248)CraftCms\Cms\Cp\Components\Field. (#19248)CraftCms\Cms\Cp\Components\FieldGroup. (#19248)CraftCms\Cms\Cp\Components\Lightswitch. (#19248)CraftCms\Cms\Cp\Components\Radio. (#19248)CraftCms\Cms\Cp\Components\RadioGroup. (#19248)CraftCms\Cms\Cp\Components\ViewComponent. (#19248)CraftCms\Cms\Cp\Concerns\EvaluatesClosures. (#19248)CraftCms\Cms\Cp\Concerns\HasAppearance. (#19248)CraftCms\Cms\Cp\Concerns\HasDisabled. (#19248)CraftCms\Cms\Cp\Concerns\HasId. (#19248)CraftCms\Cms\Cp\Concerns\HasSize. (#19248)CraftCms\Cms\Cp\Concerns\HasVariant. (#19248)CraftCms\Cms\Cp\Enums\Appearance. (#19248)CraftCms\Cms\Cp\Enums\Size. (#19248)CraftCms\Cms\Cp\Enums\Variant. (#19248)CraftCms\Cms\Cp\FormFields::buttonFromConfig(). (#19248)CraftCms\Cms\Cp\FormFields::buttonGroupFromConfig(). (#19248)CraftCms\Cms\Cp\FormFields::checkboxFromConfig(). (#19248)CraftCms\Cms\Cp\FormFields::checkboxGroupFromConfig(). (#19248)CraftCms\Cms\Cp\FormFields::checkboxSelectFromConfig(). (#19248)CraftCms\Cms\Cp\FormFields::lightswitchFromConfig(). (#19248)CraftCms\Cms\Cp\FormFields::radioFromConfig(). (#19248)CraftCms\Cms\Cp\FormFields::radioGroupFieldHtml(). (#19248)CraftCms\Cms\Cp\FormFields::radioGroupFromConfig(). (#19248)CraftCms\Cms\Support\Facades\Template. (#19290)CraftCms\Cms\Twig\Contracts\TwigRendererInterface. (#19290)CraftCms\Cms\Twig\Variables\Cp::button(). (#19248)CraftCms\Cms\Twig\Variables\Cp::buttonGroup(). (#19248)CraftCms\Cms\Twig\Variables\Cp::checkbox(). (#19248)CraftCms\Cms\Twig\Variables\Cp::checkboxGroup(). (#19248)CraftCms\Cms\Twig\Variables\Cp::checkboxSelect(). (#19248)CraftCms\Cms\Twig\Variables\Cp::lightswitch(). (#19248)CraftCms\Cms\Twig\Variables\Cp::radio(). (#19248)CraftCms\Cms\Twig\Variables\Cp::radioGroup(). (#19248)CraftCms\Cms\ui(). (#19248)CraftCms\Cms\View\TemplateManager. (#19290)template() and pageTemplate() now accept an optional template renderer name. (#19290)TemplateRendered and PageTemplateRendered events now expose the final renderer name via $rendererName; the corresponding before events no longer expose renderer identity. (#19290)CraftCms\Cms\Support\HtmlSanitizer\HtmlSanitizers with CraftCms\Cms\Support\HtmlSanitizer\HtmlSanitizerManager. HTML sanitizers should now be registered via CraftCms\Cms\Support\Facades\HtmlSanitizers::extend() rather than CraftCms\Cms\Support\HtmlSanitizer\HtmlSanitizers::register(). (#19292)CraftCms\Cms\Plugin\Events\PluginUnregistered. (#19263)CraftCms\Cms\Plugin\Plugin::bootPlugin(). boot() should be used instead. (#19263)CraftCms\Cms\Plugin\Plugin::registerPlugin(). register() should be used instead. (#19263)yii\web\JqueryAsset wasn’t resolving properly. (#19264)craft:users:set-password password validation, exit statuses, and session invalidation. (#19272)Updated logout routes to require CSRF-protected POST requests.
Illuminate\Support\Js::from(). (#19252)Fixed moderate-severity authorization bypass vulnerabilities.
Illuminate\Contracts\Translation\HasLocalePreference support to user elements, allowing Laravel notifications to use users’ Language preferences. (#19228)loginPath weren’t being handled properly. (#19220)loginPath, setPasswordPath, and verifyEmailPath were getting redirected to the control panel. (#19229)translationDebugOutput was enabled. (#19228)FormRequest classes could persist unvalidated settings. (#19228)Users can now connect their accounts to one or more Socialite providers.
It’s now possible to load Blade views within Twig templates.
craftcms/cms-assets package. (#19162)CraftCms\Cms\Twig\PageLifecycle to CraftCms\Cms\View\PageLifecycle. (#19148)CraftCms\Cms\Twig\TemplateResolver to CraftCms\Cms\View\TemplateResolver. (#19148)migrations table was missing its track column. (#19168)--single-transaction or --column-statistics=0 flags on MySQL.Added CraftCms\Yii2Adapter\Database\DeprecatedTable.
CraftCms\Yii2Adapter\Database\DeprecatedTable.CraftCms\Cms\Translation\Formatter::asRelativeTime(). (#19146)craft\elements\Category::find() now returns a CraftCms\Yii2Adapter\Element\Queries\CategoryQuery object. (#19120)craft\elements\GlobalSet::find() now returns a CraftCms\Yii2Adapter\Element\Queries\GlobalSetQuery object. (#19120)craft\elements\Tag::find() now returns a CraftCms\Yii2Adapter\Element\Queries\TagQuery object. (#19120)$styles, $scripts, and $publishables weren’t published automatically when the plugin was installed or enabled. (#19137)cpTrigger. (#19127)en-US).previewTokenDuration config setting into account.Added CraftCms\Cms\Twig\AllowableInSandbox.
Added a new core Markdown field
CraftCms\Cms\Validation\Events\ValidationRulesResolving::$ruleset.ValidationRulesResolving event to include any implementation ValidatesWithRuleset or a Illuminate\Http\Request object.CraftCms\Cms\Validation\Events\ValidationRulesResolving::$component to $subject.CraftCms\Cms\Element\Validation\Events\ValidationRulesResolving to CraftCms\Cms\Validation\Events\ to reflect its broader applicability to components and rulesets.craft:install command would hang if run within a production environment.showCardsInGrid. (#19047)CraftCms\Yii2Adapter\Mixins\ValidateMixin::addErrors() had incorrect arguments. (#19065)Improved the accessibility of the Login page.
CraftCms\Cms\User\Contracts\CraftUser and CraftUserTrait. (#19009)CraftCms\Cms\Auth\UserProvider; the Craft guard now defaults to Laravel’s Eloquent provider using CraftCms\Cms\User\Models\User. (#19009)Auth::craftUser()/auth('craft')->craftUser() and request()->craftUser() as Craft-safe ways to access the authenticated user. (#19009)Element::getIterator() no longer includes custom field values. (#19004)actions.php routes could collide between plugins. (#18994)1 when blank. (#19001)Improved emoji shortcode handling performance for strings without shortcode delimiters.
Yiisoft\Translator\Translator instance, enabling Yiisoft\Translator\Event\MissingTranslationEvent listeners. (#18952)loginPath config setting is now false by default.PluginsLoaded event to PluginsRegistered. (#18973)CraftCms\Cms\Support\Typecast could skip setters that used a same-name private backing property.CraftCms\Cms\Support\Typecast could attempt to assign read-only, private-set, protected-set, or setterless virtual properties.CraftCms\Cms\Validation\Contracts\Validatable::prepareForValidation() wasn’t called consistently, and plain Validatable classes without a configured ruleset couldn’t be validated. (#18944)config/license.key instead of config/craft/license.key.code class. (#18900)Added “Elements” and “Deprecations” panels to Laravel Debugbar.
php artisan schedule:run.yiisoft/html to 4.1.0. (#18920)elvanto/litemoji to 5.2.0. (#18917)pragmarx/google2fa to 9.0.0. (#18919)sources values. (#18915)web middleware.loginPath or logoutPath was set to false in GeneralConfig. (#18894)craft template variable. (#18903)null as the response (#18907)ol and ul were not normalizing the attributes (#18907)Added the compiledTemplatesPath config setting.
compiledTemplatesPath config setting. (#18861)minAuthors to the section table (#18875)cpTrigger would be appended twice to the URL after running migrations from the control panel. (#18858)Stringable objects. (#18883)Deprecated the csrfTokenName, enableCsrfCookie, and enableCsrfProtection general config settings.
config/craft/sanitizers/. (#18808)paginate Twig variable back.craftAsset() Twig function now resolves to Vite versioned assets. (#18801)|money Twig filter’s formatLocale argument to locale.csrfTokenName, enableCsrfCookie, and enableCsrfProtection general config settings. (#18806)CraftCms\Cms\View\TwigEngine. (#18804)CraftCms\Cms\Support\Typecast could give private properties precedence over typed setters.runQueueAutomatically wasn’t being respected. (#18817)CraftCms\Cms\Validation\Rules\EnvValueRule could parse boolean values incorrectly.craft:.DefaultController.Application::EVENT_AFTER_REQUEST event wasn’t triggered.yii\base\InvalidConfigException would be thrown when a Yii2-based plugin registered an asset bundle. (#18818){{ successMessageInput() }} would not decrypt the resulting message for the flash message.getHasSsoIdentity() would return false when Socialite was not installed but the user had an SSO identity.null but were not considered handled.craft:install in environments where Laravel Prompts can only render tasks statically. (#18830)orderBy() arguments could cause element queries to throw an unknown column exception. (#18852)Deprecated support for categories, global sets, and tags.
CraftCms\Cms\Support\Arr.CraftCms\Cms\Support\DateTimeHelper.CraftCms\Cms\Support\File.CraftCms\Cms\Support\Facades\Path.CraftCms\Cms\Support\Facades\Markdown.CraftCms\Cms\Support\Path.CraftCms\Cms\Support\Str.CraftCms\Cms\Support\URL.CraftCms\Cms\action_url(), CraftCms\Cms\cp_url(), and CraftCms\Cms\site_url() helper functions.craft\services\Elements::stopCollectingCacheInfo() no longer sets the returned duration to the cacheDuration config setting if a duration wasn’t explicitly declared. (#16796)craft\helpers\ArrayHelper. CraftCms\Cms\Support\Arr should be used instead.craft\helpers\ConfigHelper. CraftCms\Cms\Support\Config should be used instead.craft\helpers\DateTimeHelper. CraftCms\Cms\Support\DateTimeHelper should be used instead.craft\helpers\Diff. CraftCms\Cms\Support\Diff should be used instead.craft\helpers\ElementHelper. CraftCms\Cms\Element\ElementHelper should be used for core element helper APIs, CraftCms\Cms\Element\ElementSources for source lookup, CraftCms\Cms\Element\ElementAttributeRenderer for attribute rendering, CraftCms\Cms\Element\Drafts for provisional draft helpers, CraftCms\Cms\Field\Enums\TranslationMethod for translation helpers, and Illuminate\Support\Facades\Context with CraftCms\Cms\Element\Drafts::CONTEXT_PREVIEW_USER_ID for preview-user context.craft\helpers\Html. CraftCms\Cms\Support\Html should be used instead.craft\helpers\HtmlPurifier. CraftCms\Cms\Support\HtmlSanitizer\HtmlSanitizers should be used for HTML sanitization, and CraftCms\Cms\Support\Str should be used for UTF-8 cleanup instead.craft\helpers\HtmlPurifier::process(). CraftCms\Cms\Support\HtmlSanitizer\HtmlSanitizers::sanitize() should be used instead.craft\helpers\HtmlPurifier::cleanUtf8().craft\helpers\HtmlPurifier::convertToUtf8(). CraftCms\Cms\Support\Str::convertToUtf8() should be used instead.craft\helpers\HtmlPurifier::configure(). CraftCms\Cms\Support\HtmlSanitizer\HtmlSanitizers::defaults() or a custom sanitizer registration should be used instead.config/craft/htmlpurifier/*.json sanitizer config files. Sanitizers should be registered on CraftCms\Cms\Support\HtmlSanitizer\HtmlSanitizers instead.craft\services\Path. CraftCms\Cms\Support\Path should be used instead.craft\helpers\SessionHelper. Illuminate\Support\Facades\Session should be used instead.craft\helpers\Sequence. CraftCms\Cms\Support\Sequence should be used instead.craft\helpers\StringHelper. CraftCms\Cms\Support\Str should be used instead.Craft::$app->getConfig()->getGeneral(). CraftCms\Cms\Config\GeneralConfig should be used instead. This can be used through dependency injection or through app(CraftCms\Cms\Config\GeneralConfig::class).craft.app.config.general in Twig. app.config.craft.general should be used instead.craft\helpers\App::env(), CraftCms\Cms\Support\Env::get() should be used instead.craft\markdown\Markdown, craft\markdown\GithubMarkdown, craft\markdown\MarkdownExtra, and craft\markdown\PreEncodedMarkdown. CraftCms\Cms\Support\Facades\Markdown should be used instead.craft\helpers\DateRange. CraftCms\Cms\Shared\Enums\DateRangeType and CraftCms\Cms\Shared\Enums\DateRangePeriod should be used instead.craft\helpers\Cp. One of the following classes should be used instead:
CraftCms\Cms\Cp\AlertsCraftCms\Cms\Cp\FormFieldsCraftCms\Cms\Cp\Html\ContentHtmlCraftCms\Cms\Cp\Html\ElementHtmlCraftCms\Cms\Cp\Html\ElementIndexHtmlCraftCms\Cms\Cp\Html\MenuHtmlCraftCms\Cms\Cp\Html\PreviewHtmlCraftCms\Cms\Cp\Html\StatusHtmlCraftCms\Cms\Cp\IconsCraftCms\Cms\Cp\RequestedSitecraft\helpers\Json. CraftCms\Cms\Support\Json should be used instead.craft\services\Composer. CraftCms\Cms\Support\Composer should be used instead.craft\enums\Color. CraftCms\Cms\Support\Enums\Color should be used instead.craft\enums\AttributeStatus. CraftCms\Cms\Element\Enums\AttributeStatus should be used instead.craft\enums\CmsEdition. CraftCms\Cms\Edition should be used instead.craft\enums\ElementIndexViewMode. CraftCms\Cms\Element\Enums\ElementIndexViewMode should be used instead.craft\enums\LicenseKeyStatus. CraftCms\Cms\Support\Enums\LicenseKeyStatus should be used instead.craft\enums\MenuItemType. CraftCms\Cms\Element\Enums\MenuItemType should be used instead.craft\enums\PropagationMethod. CraftCms\Cms\Element\Enums\PropagationMethod should be used instead.craft\enums\TimePeriod. CraftCms\Cms\Support\Enums\TimePeriod should be used instead.craft\services\Gc. CraftCms\Cms\GarbageCollection\GarbageCollection should be used instead.craft\services\Api. CraftCms\Cms\Support\Api should be used instead.craft\helpers\Api. CraftCms\Cms\Support\Api should be used instead.craft\nameparsing\CustomLanguage. CraftCms\Cms\Shared\Nameparser\CustomLanguage should be used instead.craft\helpers\App. The following classes/methods should be used instead:
App:devMode() -> app()->hasDebugModeEnabled()App:parseBooleanEnv() --> \CraftCms\Cms\Support\Env::parseBoolean()App:normalizeValue() --> \CraftCms\Cms\normalizeValue()App:maxPowerCaptain() --> \CraftCms\Cms\maxPowerCaptain()App:silence() --> \CraftCms\Cms\silence()App:backtrace() --> \CraftCms\Cms\backtraceAsString()App:env() --> \CraftCms\Cms\Support\Env::get()App:parseEnv() --> \CraftCms\Cms\Support\Env::parse()App:phpVersion() --> \CraftCms\Cms\Support\PHP::version()App:extensionVersion() --> \CraftCms\Cms\Support\PHP::extensionVersion()App:phpConfigValueAsBool() --> \CraftCms\Cms\Support\PHP::configValueAsBool()App:phpConfigValueInBytes() --> \CraftCms\Cms\Support\PHP::configValueInBytes()App:phpSizeToBytes() --> \CraftCms\Cms\Support\PHP::sizeToBytes()App:phpConfigValueAsPaths() --> \CraftCms\Cms\Support\PHP::configValueAsPaths()App:normalizePhpPaths() --> \CraftCms\Cms\Support\PHP::normalizePaths()App:isPathAllowed() --> \CraftCms\Cms\Support\PHP::isPathAllowed()App:phpExecutable() --> \CraftCms\Cms\Support\PHP::executable()App:testIniSet() --> \CraftCms\Cms\Support\PHP::testIniSet()App:checkForValidIconv() --> \CraftCms\Cms\Support\PHP::checkForValidIconv()App:supportsIdn() --> \CraftCms\Cms\Support\PHP::supportsIdn()App:licenseKey() --> app(\CraftCms\Cms\License\License::class)->key()App:licensingIssues() --> app(\CraftCms\Cms\License\License::class)->issues()App:licenseShunCookieName() --> app(\CraftCms\Cms\License\License::class)->shunCookieName()App:licensingIssuesHash() --> app(\CraftCms\Cms\License\License::class)->issuesHash()Craft::createGuzzleClient(). CraftCms\Cms\Support\Facades\Http::create() should be used instead.craft\helpers\FileHelper. CraftCms\Cms\Support\File should be used instead.craft\helpers\UrlHelper. CraftCms\Cms\Support\URL should be used instead.CraftCms\Cms\Support\Facades\Deprecator.CraftCms\Cms\Deprecator\Commands\ClearDeprecations.craft\console\controllers\ClearDeprecationsController.php.craft\services\Deprecator. CraftCms\Cms\Deprecator\Deprecator should be used instead.craft\models\DeprecationError. CraftCms\Cms\Deprecator\Models\DeprecationError should be used instead.craft\errors\DeprecationException. CraftCms\Cms\Deprecator\Exceptions\DeprecationException should be used instead.php craft twig:cache - Precompile Twig viewsphp craft twig:clear - Clear precompiled Twig viewscraft\console\controllers\EnvController has been removed in favor of the classes below:
CraftCms\Cms\Console\Commands\Env\EnvRemoveCommand => php craft env:removeCraftCms\Cms\Console\Commands\Env\EnvSetCommand => php craft env:setCraftCms\Cms\Console\Commands\Env\EnvShowCommand => php craft env:showcraft\console\controllers\IndexAssetsController has been removed in favor of the classes below:
CraftCms\Cms\Asset\Commands\CleanupAssetIndexesCommand => php craft index-assets:cleanupCraftCms\Cms\Asset\Commands\IndexAllAssetsCommand => php craft index-assets:allCraftCms\Cms\Asset\Commands\IndexOneAssetCommand => php craft index-assets:onecraft\console\controllers\BaseSystemStatusController, craft\console\controllers\OnController, and craft\console\controllers\OffController have been removed in favor of the classes below:
CraftCms\Cms\Console\Commands\System\OnCommand => php craft onCraftCms\Cms\Console\Commands\System\OffCommand => php craft offcraft\console\controllers\ElementsController has been removed in favor of the classes below:
CraftCms\Cms\Element\Commands\DeleteCommand => php craft elements:deleteCraftCms\Cms\Element\Commands\DeleteAllOfTypeCommand => php craft elements:delete-all-of-typeCraftCms\Cms\Element\Commands\RestoreCommand => php craft elements:restorecraft\console\controllers\UpdateStatusesController has been removed in favor of the class below:
CraftCms\Cms\Entry\Commands\UpdateStatusesCommand => php craft update-statusescraft\console\controllers\utils\FixElementUidsController has been removed in favor of the class below:
CraftCms\Cms\Console\Commands\Utils\FixElementUidsCommand => php craft utils:fix-element-uidscraft\console\controllers\utils\FixFieldLayoutUidsController has been removed in favor of the class below:
CraftCms\Cms\Console\Commands\Utils\FixFieldLayoutUidsCommand => php craft utils:fix-field-layout-uidscraft\console\controllers\utils\PruneOrphanedEntriesController has been removed in favor of the class below:
CraftCms\Cms\Console\Commands\Utils\PruneOrphanedEntriesCommand => php craft utils:prune-orphaned-entriescraft\console\controllers\utils\PruneProvisionalDraftsController has been removed in favor of the class below:
CraftCms\Cms\Console\Commands\Utils\PruneProvisionalDraftsCommand => php craft utils:prune-provisional-draftscraft\console\controllers\utils\PruneRevisionsController has been removed in favor of the class below:
CraftCms\Cms\Console\Commands\Utils\PruneRevisionsCommand => php craft utils:prune-revisionscraft\console\controllers\utils\RepairController::actionProjectConfig() has been removed in favor of the class below:
CraftCms\Cms\ProjectConfig\Commands\RepairCommand => php craft project-config:repairCraft's Mutex classes have been deprecated. Laravel's atomic locking should be used instead.
craft\mutex\Mutexcraft\mutex\MutexTraitCraft::$app->getMutex()craft\base\ComponentInterface. CraftCms\Cms\Component\Contracts\ComponentInterface should be used instead.craft\base\ConfigurableComponentInterface. CraftCms\Cms\Component\Contracts\ConfigurableComponentInterface should be used instead.craft\base\SavableComponentInterface. CraftCms\Cms\Component\Contracts\SavableComponentInterface should be used instead.craft\controllers\DashboardController. The following controllers now implement this functionality:
CraftCms\Cms\Http\Controllers\Dashboard\DashboardControllerCraftCms\Cms\Http\Controllers\Dashboard\WidgetsControllerCraftCms\Cms\Http\Controllers\Dashboard\Widgets\CraftSupportControllerCraftCms\Cms\Http\Controllers\Dashboard\Widgets\FeedControllerCraft::$app->getDashboard(). app(\CraftCms\Cms\Dashboard\Dashboard::class) should be used instead.craft\services\Dashboard. CraftCms\Cms\Dashboard\Dashboard should be used instead.craft\base\Widget. CraftCms\Cms\Dashboard\Widgets\Widget should be used instead.craft\base\WidgetInterface. CraftCms\Cms\Dashboard\Contracts\WidgetInterface should be used instead.craft\base\WidgetTrait.craft\widgets\CraftSupport. CraftCms\Cms\Dashboard\Widgets\CraftSupport should be used instead.craft\widgets\Feed. CraftCms\Cms\Dashboard\Widgets\Feed should be used instead.craft\widgets\MissingWidget. CraftCms\Cms\Dashboard\Widgets\MissingWidget should be used instead.craft\widgets\MyDrafts. CraftCms\Cms\Dashboard\Widgets\MyDrafts should be used instead.craft\widgets\NewUsers. CraftCms\Cms\Dashboard\Widgets\NewUsers should be used instead.craft\widgets\QuickPost. CraftCms\Cms\Dashboard\Widgets\QuickPost should be used instead.craft\widgets\RecentEntries. CraftCms\Cms\Dashboard\Widgets\RecentEntries should be used instead.craft\widgets\Updates. CraftCms\Cms\Dashboard\Widgets\Updates should be used instead.craft\records\Widget. CraftCms\Cms\Dashboard\Models\Widget should be used instead.craft\services\Dashboard::EVENT_REGISTER_WIDGET_TYPES. CraftCms\Cms\Dashboard\Events\WidgetTypesResolving should be used instead.craft\events\WidgetEvent in favor of the following new events:
craft\services\Dashboard::EVENT_BEFORE_SAVE_WIDGET => CraftCms\Cms\Dashboard\Events\WidgetSavingcraft\services\Dashboard::EVENT_AFTER_SAVE_WIDGET => CraftCms\Cms\Dashboard\Events\WidgetSavedcraft\services\Dashboard::EVENT_BEFORE_DELETE_WIDGET => CraftCms\Cms\Dashboard\Events\WidgetDeletingcraft\services\Dashboard::EVENT_AFTER_DELETE_WIDGET => CraftCms\Cms\Dashboard\Events\WidgetDeletedCraftCms\Cms\Support\Facades\Addresses.CraftCms\Cms\Asset\AssetsHelper.CraftCms\Cms\Support\Facades\Assets.CraftCms\Cms\Support\Facades\AssetIndexer facade.CraftCms\Cms\Support\Facades\Folders.craft\helpers\Assets. CraftCms\Cms\Asset\AssetsHelper should be used instead.craft\services\Assets. CraftCms\Cms\Asset\Assets and CraftCms\Cms\Asset\Folders should be used instead.\craft\records\Asset. \CraftCms\Cms\Asset\Models\Asset should be used instead.\craft\records\AssetIndexData. \CraftCms\Cms\Asset\Models\AssetIndexData should be used instead.\craft\records\AssetIndexingSession. \CraftCms\Cms\Asset\Models\AssetIndexingSession should be used instead.\craft\records\Volume. \CraftCms\Cms\Asset\Models\Volume should be used instead.\craft\records\VolumeFolder. \CraftCms\Cms\Asset\Models\VolumeFolder should be used instead.\craft\controllers\AssetIndexesController. \CraftCms\Cms\Http\Controllers\Utilities\AssetIndexesController should be used instead.craft\services\AssetIndexer. CraftCms\Cms\Asset\AssetIndexer should be used instead.craft\models\AssetIndexData. CraftCms\Cms\Asset\Data\AssetIndexEntry should be used instead.craft\models\AssetIndexingSession. CraftCms\Cms\Asset\Data\IndexingSession should be used instead.craft\errors\AssetException. CraftCms\Cms\Asset\Exceptions\AssetException should be used instead.craft\errors\AssetDisallowedExtensionException. CraftCms\Cms\Asset\Exceptions\AssetDisallowedExtensionException should be used instead.craft\errors\AssetNotIndexableException. CraftCms\Cms\Asset\Exceptions\AssetNotIndexableException should be used instead.craft\errors\FileException. CraftCms\Cms\Asset\Exceptions\FileException should be used instead.craft\errors\ImageException. CraftCms\Cms\Asset\Exceptions\ImageException should be used instead.craft\errors\ImageTransformException. CraftCms\Cms\Asset\Exceptions\ImageTransformException should be used instead.craft\errors\MissingAssetException. CraftCms\Cms\Asset\Exceptions\MissingAssetException should be used instead.craft\errors\MissingVolumeFolderException. CraftCms\Cms\Asset\Exceptions\MissingVolumeFolderException should be used instead.craft\errors\VolumeException. CraftCms\Cms\Asset\Exceptions\VolumeException should be used instead.CraftCms\Cms\Asset\Events\AssetFileKindsResolving.CraftCms\Cms\Asset\Events\SetAssetFilename.craft\events\SetAssetFilenameEvent. CraftCms\Cms\Asset\Events\SetAssetFilename should be used instead.craft\events\RegisterAssetFileKindsEvent. CraftCms\Cms\Asset\Events\AssetFileKindsResolving should be used instead.craft\events\ReplaceAssetEvent in favor of the following new events:
craft\services\Assets::EVENT_BEFORE_REPLACE_ASSET => CraftCms\Cms\Asset\Events\AssetReplacingcraft\services\Assets::EVENT_AFTER_REPLACE_ASSET => CraftCms\Cms\Asset\Events\AssetReplacedcraft\events\DefineAssetThumbUrlEvent. CraftCms\Cms\Asset\Events\ThumbUrlResolving should be used instead.craft\events\AssetPreviewEvent. CraftCms\Cms\Asset\Events\PreviewHandlerResolving should be used instead.CraftCms\Cms\Auth\Events\SettingPassword.CraftCms\Cms\User\Notifications\ResetPasswordNotification.craft\services\Auth. CraftCms\Cms\Auth\Auth should be used instead.craft\web\User. auth('craft')->user() or CraftCms\Cms\User\Elements\User methods should be used instead.craft\events\AuthenticateUserEvent. CraftCms\Cms\Auth\Events\UserAuthenticating should be used instead.\craft\records\Authenticator. \CraftCms\Cms\Auth\Models\Authenticator should be used instead.\craft\records\RecoveryCodes. \CraftCms\Cms\Auth\Models\RecoveryCodes should be used instead.\craft\records\SsoIdentity. \CraftCms\Cms\Auth\Models\SsoIdentity should be used instead.\craft\records\WebAuthn. \CraftCms\Cms\Auth\Models\WebAuthn should be used instead.craft\behaviors\SessionBehavior::authorize. CraftCms\Cms\Auth\SessionAuth::authorize should be used instead.craft\behaviors\SessionBehavior::deauthorize. CraftCms\Cms\Auth\SessionAuth::deauthorize should be used instead.craft\behaviors\SessionBehavior::checkAuthorization. CraftCms\Cms\Auth\SessionAuth::checkAuthorization should be used instead.craft\services\Users::isVerificationCodeValidForUser(). Password::broker('craft')->tokenExists($user, $code) should be used instead.GeneralConfig::elevatedSessionDuration(). The auth.password_timeout config value should be used instead. To disable password confirmation (elevated sessions), you now set this value to -1 instead of 0.
craft\controllers\AuthController. The following controllers now implement this functionality:
CraftCms\Cms\Http\Controllers\Users\AuthMethodControllerCraftCms\Cms\Http\Controllers\Users\PasskeysControllerCraftCms\Cms\Http\Controllers\Users\RecoveryCodesControllerverificationCode and verificationCodeIssuedDate columns on the users table in favor of the password_reset_tokens table.Craft 6 now uses Laravel's authorization system for element authorization checks.
CraftCms\Cms\Auth\Events\ElementAuthorizing event for customizing element authorization.CraftCms\Cms\Element\Policies\ElementPolicy base policy for element authorization.CraftCms\Cms\Address\Policies\AddressPolicyCraftCms\Cms\Asset\Policies\AssetPolicyCraftCms\Cms\Entry\Policies\EntryPolicyCraftCms\Cms\User\Policies\UserPolicyCraftCms\Cms\Field\Policies\ContentBlockPolicyCraftCms\Cms\Auth\Passkeys\Passkeys.craft\services\Auth passkey methods. The following should be used instead:
Auth::hasPasskeys() -> app(Passkeys::class)->hasPasskeys()Auth::getPasskeys() -> app(Passkeys::class)->getPasskeys()Auth::getPasskeyCreationOptions() -> app(Passkeys::class)->getPasskeyCreationOptions()Auth::verifyPasskeyCreationResponse() -> app(Passkeys::class)->verifyPasskeyCreationResponse()Auth::getPasskeyRequestOptions() -> app(Passkeys::class)->getPasskeyRequestOptions()Auth::verifyPasskey() -> app(Passkeys::class)->verifyPasskey()Auth::deletePasskey() -> app(Passkeys::class)->deletePasskey()craft\auth\passkeys\CredentialRepository. CraftCms\Cms\Auth\Passkeys\CredentialRepository should be used instead.craft\auth\passkeys\WebauthnServer. CraftCms\Cms\Auth\Passkeys\WebauthnServer should be used instead.CraftCms\Cms\Support\Facades\Conditions.craft\controllers\ConditionsController. CraftCms\Cms\Http\Controllers\ConditionsController should be used instead.craft\services\Conditions. CraftCms\Cms\Condition\Conditions should be used instead.craft\base\conditions\ConditionInterface. CraftCms\Cms\Condition\Contracts\ConditionInterface should be used instead.craft\base\conditions\ConditionRuleInterface. CraftCms\Cms\Condition\Contracts\ConditionRuleInterface should be used instead.craft\base\conditions\BaseCondition. CraftCms\Cms\Condition\BaseCondition should be used instead.craft\base\conditions\BaseConditionRule. CraftCms\Cms\Condition\BaseConditionRule should be used instead.craft\base\conditions\BaseTextConditionRule. CraftCms\Cms\Condition\BaseTextConditionRule should be used instead.craft\base\conditions\BaseNumberConditionRule. CraftCms\Cms\Condition\BaseNumberConditionRule should be used instead.craft\base\conditions\BaseSelectConditionRule. CraftCms\Cms\Condition\BaseSelectConditionRule should be used instead.craft\base\conditions\BaseMultiSelectConditionRule. CraftCms\Cms\Condition\BaseMultiSelectConditionRule should be used instead.craft\base\conditions\BaseLightswitchConditionRule. CraftCms\Cms\Condition\BaseLightswitchConditionRule should be used instead.craft\base\conditions\BaseDateRangeConditionRule. CraftCms\Cms\Condition\BaseDateRangeConditionRule should be used instead.craft\base\conditions\BaseElementSelectConditionRule. CraftCms\Cms\Condition\BaseElementSelectConditionRule should be used instead.craft\elements\conditions\ElementCondition. CraftCms\Cms\Element\Conditions\ElementCondition should be used instead.craft\elements\conditions\ElementConditionInterface. CraftCms\Cms\Element\Conditions\Contracts\ElementConditionInterface should be used instead.craft\elements\conditions\ElementConditionRuleInterface. CraftCms\Cms\Element\Conditions\Contracts\ElementConditionRuleInterface should be used instead.craft\elements\conditions\HintableConditionRuleTrait. CraftCms\Cms\Element\Conditions\HintableConditionRuleTrait should be used instead.craft\elements\conditions\TitleConditionRule. CraftCms\Cms\Element\Conditions\TitleConditionRule should be used instead.craft\elements\conditions\SlugConditionRule. CraftCms\Cms\Element\Conditions\SlugConditionRule should be used instead.craft\elements\conditions\UriConditionRule. CraftCms\Cms\Element\Conditions\UriConditionRule should be used instead.craft\elements\conditions\IdConditionRule. CraftCms\Cms\Element\Conditions\IdConditionRule should be used instead.craft\elements\conditions\StatusConditionRule. CraftCms\Cms\Element\Conditions\StatusConditionRule should be used instead.craft\elements\conditions\HasUrlConditionRule. CraftCms\Cms\Element\Conditions\HasUrlConditionRule should be used instead.craft\elements\conditions\HasDescendantsRule. CraftCms\Cms\Element\Conditions\HasDescendantsRule should be used instead.craft\elements\conditions\LevelConditionRule. CraftCms\Cms\Element\Conditions\LevelConditionRule should be used instead.craft\elements\conditions\DateCreatedConditionRule. CraftCms\Cms\Element\Conditions\DateCreatedConditionRule should be used instead.craft\elements\conditions\DateUpdatedConditionRule. CraftCms\Cms\Element\Conditions\DateUpdatedConditionRule should be used instead.craft\elements\conditions\SiteConditionRule. CraftCms\Cms\Element\Conditions\SiteConditionRule should be used instead.craft\elements\conditions\SiteGroupConditionRule. CraftCms\Cms\Element\Conditions\SiteGroupConditionRule should be used instead.craft\elements\conditions\LanguageConditionRule. CraftCms\Cms\Element\Conditions\LanguageConditionRule should be used instead.craft\elements\conditions\RelatedToConditionRule. CraftCms\Cms\Element\Conditions\RelatedToConditionRule should be used instead.craft\elements\conditions\NotRelatedToConditionRule. CraftCms\Cms\Element\Conditions\NotRelatedToConditionRule should be used instead.craft\elements\conditions\entries\EntryCondition. CraftCms\Cms\Entry\Conditions\EntryCondition should be used instead.craft\elements\conditions\entries\PostDateConditionRule. CraftCms\Cms\Entry\Conditions\PostDateConditionRule should be used instead.craft\elements\conditions\entries\ExpiryDateConditionRule. CraftCms\Cms\Entry\Conditions\ExpiryDateConditionRule should be used instead.craft\elements\conditions\entries\SectionConditionRule. CraftCms\Cms\Entry\Conditions\SectionConditionRule should be used instead.craft\elements\conditions\entries\TypeConditionRule. CraftCms\Cms\Entry\Conditions\TypeConditionRule should be used instead.craft\elements\conditions\entries\AuthorConditionRule. CraftCms\Cms\Entry\Conditions\AuthorConditionRule should be used instead.craft\elements\conditions\entries\AuthorGroupConditionRule. CraftCms\Cms\Entry\Conditions\AuthorGroupConditionRule should be used instead.craft\elements\conditions\entries\ViewableConditionRule. CraftCms\Cms\Entry\Conditions\ViewableConditionRule should be used instead.craft\elements\conditions\entries\SavableConditionRule. CraftCms\Cms\Entry\Conditions\SavableConditionRule should be used instead.craft\elements\conditions\entries\FieldConditionRule. CraftCms\Cms\Entry\Conditions\FieldConditionRule should be used instead.craft\elements\conditions\users\UserCondition. CraftCms\Cms\User\Conditions\UserCondition should be used instead.craft\elements\conditions\users\UsernameConditionRule. CraftCms\Cms\User\Conditions\UsernameConditionRule should be used instead.craft\elements\conditions\users\EmailConditionRule. CraftCms\Cms\User\Conditions\EmailConditionRule should be used instead.craft\elements\conditions\users\FirstNameConditionRule. CraftCms\Cms\User\Conditions\FirstNameConditionRule should be used instead.craft\elements\conditions\users\LastNameConditionRule. CraftCms\Cms\User\Conditions\LastNameConditionRule should be used instead.craft\elements\conditions\users\GroupConditionRule. CraftCms\Cms\User\Conditions\GroupConditionRule should be used instead.craft\elements\conditions\users\AdminConditionRule. CraftCms\Cms\User\Conditions\AdminConditionRule should be used instead.craft\elements\conditions\users\CredentialedConditionRule. CraftCms\Cms\User\Conditions\CredentialedConditionRule should be used instead.craft\elements\conditions\users\LastLoginDateConditionRule. CraftCms\Cms\User\Conditions\LastLoginDateConditionRule should be used instead.craft\elements\conditions\users\AffiliatedSiteConditionRule. CraftCms\Cms\User\Conditions\AffiliatedSiteConditionRule should be used instead.craft\elements\conditions\assets\AssetCondition. CraftCms\Cms\Asset\Conditions\AssetCondition should be used instead.craft\elements\conditions\assets\VolumeConditionRule. CraftCms\Cms\Asset\Conditions\VolumeConditionRule should be used instead.craft\elements\conditions\assets\FilenameConditionRule. CraftCms\Cms\Asset\Conditions\FilenameConditionRule should be used instead.craft\elements\conditions\assets\FileTypeConditionRule. CraftCms\Cms\Asset\Conditions\FileTypeConditionRule should be used instead.craft\elements\conditions\assets\FileSizeConditionRule. CraftCms\Cms\Asset\Conditions\FileSizeConditionRule should be used instead.craft\elements\conditions\assets\HeightConditionRule. CraftCms\Cms\Asset\Conditions\HeightConditionRule should be used instead.craft\elements\conditions\assets\WidthConditionRule. CraftCms\Cms\Asset\Conditions\WidthConditionRule should be used instead.craft\elements\conditions\assets\DateModifiedConditionRule. CraftCms\Cms\Asset\Conditions\DateModifiedConditionRule should be used instead.craft\elements\conditions\assets\HasAltConditionRule. CraftCms\Cms\Asset\Conditions\HasAltConditionRule should be used instead.craft\elements\conditions\assets\UploaderConditionRule. CraftCms\Cms\Asset\Conditions\UploaderConditionRule should be used instead.craft\elements\conditions\assets\SavableConditionRule. CraftCms\Cms\Asset\Conditions\SavableConditionRule should be used instead.craft\elements\conditions\assets\ViewableConditionRule. CraftCms\Cms\Asset\Conditions\ViewableConditionRule should be used instead.craft\elements\conditions\addresses\AddressCondition. CraftCms\Cms\Address\Conditions\AddressCondition should be used instead.craft\elements\conditions\addresses\FullNameConditionRule. CraftCms\Cms\Address\Conditions\FullNameConditionRule should be used instead.craft\elements\conditions\addresses\OrganizationConditionRule. CraftCms\Cms\Address\Conditions\OrganizationConditionRule should be used instead.craft\elements\conditions\addresses\OrganizationTaxIdConditionRule. CraftCms\Cms\Address\Conditions\OrganizationTaxIdConditionRule should be used instead.craft\elements\conditions\addresses\LocalityConditionRule. CraftCms\Cms\Address\Conditions\LocalityConditionRule should be used instead.craft\elements\conditions\addresses\DependentLocalityConditionRule. CraftCms\Cms\Address\Conditions\DependentLocalityConditionRule should be used instead.craft\elements\conditions\addresses\PostalCodeConditionRule. CraftCms\Cms\Address\Conditions\PostalCodeConditionRule should be used instead.craft\elements\conditions\addresses\SortingCodeConditionRule. CraftCms\Cms\Address\Conditions\SortingCodeConditionRule should be used instead.craft\elements\conditions\addresses\CountryConditionRule. CraftCms\Cms\Address\Conditions\CountryConditionRule should be used instead.craft\elements\conditions\addresses\AdministrativeAreaConditionRule. CraftCms\Cms\Address\Conditions\AdministrativeAreaConditionRule should be used instead.craft\elements\conditions\addresses\AddressLine1ConditionRule. CraftCms\Cms\Address\Conditions\AddressLine1ConditionRule should be used instead.craft\elements\conditions\addresses\AddressLine2ConditionRule. CraftCms\Cms\Address\Conditions\AddressLine2ConditionRule should be used instead.craft\elements\conditions\addresses\AddressLine3ConditionRule. CraftCms\Cms\Address\Conditions\AddressLine3ConditionRule should be used instead.craft\elements\conditions\addresses\FieldConditionRule. CraftCms\Cms\Address\Conditions\FieldConditionRule should be used instead.craft\fields\conditions\FieldConditionRuleInterface. CraftCms\Cms\Field\Conditions\Contracts\FieldConditionRuleInterface should be used instead.craft\fields\conditions\FieldConditionRuleTrait. CraftCms\Cms\Field\Conditions\FieldConditionRuleTrait should be used instead.craft\fields\conditions\GeneratedFieldConditionRule. CraftCms\Cms\Field\Conditions\GeneratedFieldConditionRule should be used instead.craft\fields\conditions\TextFieldConditionRule. CraftCms\Cms\Field\Conditions\TextFieldConditionRule should be used instead.craft\fields\conditions\NumberFieldConditionRule. CraftCms\Cms\Field\Conditions\NumberFieldConditionRule should be used instead.craft\fields\conditions\MoneyFieldConditionRule. CraftCms\Cms\Field\Conditions\MoneyFieldConditionRule should be used instead.craft\fields\conditions\OptionsFieldConditionRule. CraftCms\Cms\Field\Conditions\OptionsFieldConditionRule should be used instead.craft\fields\conditions\RelationalFieldConditionRule. CraftCms\Cms\Field\Conditions\RelationalFieldConditionRule should be used instead.craft\fields\conditions\LightswitchFieldConditionRule. CraftCms\Cms\Field\Conditions\LightswitchFieldConditionRule should be used instead.craft\fields\conditions\EmptyFieldConditionRule. CraftCms\Cms\Field\Conditions\EmptyFieldConditionRule should be used instead.craft\fields\conditions\DateFieldConditionRule. CraftCms\Cms\Field\Conditions\DateFieldConditionRule should be used instead.craft\fields\conditions\CountryFieldConditionRule. CraftCms\Cms\Field\Conditions\CountryFieldConditionRule should be used instead.craft\fields\conditions\LinkFieldConditionRule. CraftCms\Cms\Field\Conditions\LinkFieldConditionRule should be used instead.craft\events\RegisterConditionRulesEvent. CraftCms\Cms\Condition\Events\ConditionRulesResolving should be used instead.craft\services\Drafts. CraftCms\Cms\Element\Drafts should be used instead.craft\events\DraftEvent. One of the events extending CraftCms\Cms\Element\Events\DraftEvent should be used instead.craft\behaviors\DraftBehavior. CraftCms\Cms\Element\Concerns\Draftable should be used instead.CraftCms\Cms\Element\ElementCaches and CraftCms\Cms\Support\Facades\ElementCaches.
craft\services\Elements::getIsCollectingCacheInfo(). CraftCms\Cms\Element\ElementCaches::isCollectingCacheInfo() should be used instead.craft\services\Elements::startCollectingCacheInfo(). CraftCms\Cms\Element\ElementCaches::startCollectingCacheInfo() should be used instead.craft\services\Elements::collectCacheTags(). CraftCms\Cms\Element\ElementCaches::collectCacheTags() should be used instead.craft\services\Elements::setCacheExpiryDate(). CraftCms\Cms\Element\ElementCaches::setCacheExpiryDate() should be used instead.craft\services\Elements::collectCacheInfoForElement(). CraftCms\Cms\Element\ElementCaches::collectCacheInfoForElement() should be used instead.craft\services\Elements::stopCollectingCacheInfo(). CraftCms\Cms\Element\ElementCaches::stopCollectingCacheInfo() should be used instead.craft\services\Elements::invalidateAllCaches(). CraftCms\Cms\Element\ElementCaches::invalidateAll() should be used instead.craft\services\Elements::invalidateCachesForElementType(). CraftCms\Cms\Element\ElementCaches::invalidateForElementType() should be used instead.craft\services\Elements::invalidateCachesForElement(). CraftCms\Cms\Element\ElementCaches::invalidateForElement() should be used instead.CraftCms\Cms\Element\BulkOp\BulkOps, CraftCms\Cms\Element\BulkOp\BulkOpDeferrals, and CraftCms\Cms\Support\Facades\BulkOps.
craft\services\Elements::getBulkOpKeys(). CraftCms\Cms\Element\BulkOp\BulkOps::activeKeys() should be used instead.craft\services\Elements::beginBulkOp(). CraftCms\Cms\Element\BulkOp\BulkOps::start() should be used instead.craft\services\Elements::resumeBulkOp(). CraftCms\Cms\Element\BulkOp\BulkOps::resume() should be used instead.craft\services\Elements::endBulkOp(). CraftCms\Cms\Element\BulkOp\BulkOps::end() should be used instead.craft\services\Elements::trackElementInBulkOps(). CraftCms\Cms\Element\BulkOp\BulkOps::trackElement() should be used instead.craft\services\Elements::ensureBulkOp(). CraftCms\Cms\Element\BulkOp\BulkOps::ensure() should be used instead.craft\events\BulkOpEvent::defer(). CraftCms\Cms\Element\BulkOp\BulkOps::defer() should be used instead.CraftCms\Cms\Element\ElementActivity, CraftCms\Cms\Element\Data\ElementActivity, CraftCms\Cms\Element\Enums\ElementActivityType, and CraftCms\Cms\Support\Facades\ElementActivity.
craft\services\Elements::getRecentActivity(). CraftCms\Cms\Element\ElementActivity::getRecentActivity() should be used instead.craft\services\Elements::trackActivity(). CraftCms\Cms\Element\ElementActivity::trackActivity() should be used instead.CraftCms\Cms\Element\Actions\ElementAction, CraftCms\Cms\Element\ElementActions, CraftCms\Cms\Element\Contracts\DeleteActionInterface, CraftCms\Cms\Element\Contracts\ElementActionInterface, CraftCms\Cms\Element\Events\ElementActionPerformed, CraftCms\Cms\Element\Events\ElementActionPerforming, CraftCms\Cms\Http\Controllers\Elements\PerformElementActionController, and CraftCms\Cms\Support\Facades\ElementActions.CraftCms\Cms\Element\Actions, CraftCms\Cms\Asset\Actions, CraftCms\Cms\Entry\Actions, and CraftCms\Cms\User\Actions.CraftCms\Cms\Element\ElementExporters, CraftCms\Cms\Element\Contracts\ElementExporterInterface, CraftCms\Cms\Element\Exporters\ElementExporter, CraftCms\Cms\Http\Controllers\Elements\ElementIndex\ExportElementIndexController, and CraftCms\Cms\Support\Facades\ElementExporters.CraftCms\Cms\Element\Exporters.craft\errors\InvalidTypeException. CraftCms\Cms\Element\Exceptions\InvalidTypeException should be used instead.craft\errors\UnsupportedSiteException. CraftCms\Cms\Element\Exceptions\UnsupportedSiteException should be used instead.craft\base\ElementAction, craft\base\ElementActionInterface, craft\elements\actions\DeleteActionInterface, and the legacy craft\elements\actions\* classes. The corresponding CraftCms\Cms\Element\Actions\*, CraftCms\Cms\Asset\Actions\*, CraftCms\Cms\Entry\Actions\*, and CraftCms\Cms\User\Actions\* classes should be used instead.craft\base\ElementExporter, craft\base\ElementExporterInterface, and the legacy craft\elements\exporters\* classes. The corresponding CraftCms\Cms\Element\Exporters\* classes should be used instead.Craft 6 introduces a new validation system that uses Laravel's Validator instead of Yii2's model validation.
CraftCms\Cms\Validation\Contracts\Validatable interface for classes that support Laravel-style validation.CraftCms\Cms\Validation\Contracts\ValidatableWithRuleset interface for classes that use a Ruleset class to define validation rules.CraftCms\Cms\Validation\Ruleset abstract class for defining validation rules, messages, and preparation logic.CraftCms\Cms\Validation\Attributes\Ruleset PHP attribute for specifying a component's ruleset class.CraftCms\Cms\Validation\Concerns\Validates trait for simple validation support.CraftCms\Cms\Validation\Concerns\ValidatesWithRuleset trait for ruleset-based validation.CraftCms\Cms\Validation\Concerns\HasScenarios trait for scenario-based validation filtering.CraftCms\Cms\Validation\Concerns\InteractsWithValidator trait providing common validator interactions.CraftCms\Cms\Element\Validation\ElementRules abstract class for defining element-specific validation rules.CraftCms\Cms\Element\Validation\Events\ValidationRulesResolving event for plugins to modify element validation rules.CraftCms\Cms\Element\Validation\Rules\ElementUriRule for validating element URIs.CraftCms\Cms\Address\Validation\AddressRulesCraftCms\Cms\Asset\Validation\AssetRulesCraftCms\Cms\Entry\Validation\EntryRulesCraftCms\Cms\User\Validation\UserRulesCraftCms\Cms\Field\Elements\ContentBlockRulesCraftCms\Cms\Asset\Validation\Rules\AssetLocationRule for validating asset locations.CraftCms\Cms\User\Validation\Rules\UserPasswordRule for validating user passwords.CraftCms\Cms\User\Validation\Rules\UsernameRule for validating usernames.CraftCms\Cms\Validation\Rules\UniqueCaseInsensitiveRule for case-insensitive unique validation.CraftCms\Cms\Validation\Rules\DisallowMb4 for disallowing 4-byte UTF-8 characters.CraftCms\Cms\Validation\Rules\MoneyRule for validating money values.FieldInterface::getElementValidationRules() has been replaced by FieldInterface::getElementRules() which returns rules in Laravel's validation format.FieldInterface::prepareForElementValidation() for preparing field values before validation.['required', 'string', 'max:255']).craft\base\Model::hasErrors(). Use ->errors()->has($attribute) or ->errors()->isNotEmpty() instead.craft\base\Model::getErrors(). Use ->errors()->get($attribute) or ->errors()->getMessages() instead.craft\base\Model::addErrors(). Use ->errors()->add($attribute, $message) instead.craft\base\Model::clearErrors(). Use ->errors()->forget() instead.CraftCms\Cms\Component\Concerns\ValidatableComponent. Use CraftCms\Cms\Validation\Concerns\Validates instead.CraftCms\Cms\Component\Contracts\ValidatableComponentInterface. Use CraftCms\Cms\Validation\Contracts\Validatable instead.\craft\records\ContentBlock. \CraftCms\Cms\Element\Models\ContentBlock should be used instead.\craft\records\Draft. \CraftCms\Cms\Element\Models\Draft should be used instead.\craft\records\Element. \CraftCms\Cms\Element\Models\Element should be used instead.\craft\records\Element_SiteSettings. \CraftCms\Cms\Element\Models\ElementSiteSettings should be used instead.\craft\records\Revision. \CraftCms\Cms\Element\Models\Revision should be used instead.craft\services\ElementSources. CraftCms\Cms\Element\ElementSources should be used instead.craft\events\DefineSourceSortOptionsEvent. CraftCms\Cms\Element\Events\ElementSourceSortOptionsResolving should be used instead.craft\events\DefineSourceTableAttributesEvent. CraftCms\Cms\Element\Events\ElementSourceTableAttributesResolving should be used instead.craft\elements\db\ElementRelationParamParser. CraftCms\Cms\Database\ElementRelationParamFilter should be used instead.craft\elements\db\NestedElementQueryInterface. CraftCms\Cms\Element\Queries\Contracts\NestedElementQueryInterface should be used instead.craft\elements\db\NestedElementQueryTrait. CraftCms\Cms\Element\Queries\Concerns\QueriesNestedElements should be used instead.craft\elements\db\OrderByPlaceholderExpression. CraftCms\Cms\Database\Expressions\OrderByPlaceholderExpression should be used instead.\craft\elements\db\AddressQuery. \CraftCms\Cms\Element\Queries\AddressQuery should be used instead.\craft\elements\db\AssetQuery \CraftCms\Cms\Element\Queries\AssetQuery should be used instead.\craft\elements\db\ContentBlockQuery \CraftCms\Cms\Element\Queries\ContentBlockQuery should be used instead.\craft\elements\db\ElementQuery \CraftCms\Cms\Element\Queries\ElementQuery should be used instead.\craft\elements\db\ElementQueryInterface\craft\elements\db\EntryQuery \CraftCms\Cms\Element\Queries\EntryQuery should be used instead.\craft\elements\db\UserQuery \CraftCms\Cms\Element\Queries\UserQuery should be used instead.GeneralConfig::$pageTrigger query parameter.craft\services\Entries. CraftCms\Cms\Entry\Entries and CraftCms\Cms\Entry\EntryTypes should be used instead.craft\models\EntryType. CraftCms\Cms\Entry\Data\EntryType should be used instead.craft\records\EntryType. CraftCms\Cms\Entry\Models\EntryType should be used instead.craft\records\Entry. CraftCms\Cms\Entry\Models\Entry should be used instead.craft\errors\EntryTypeNotFoundException. CraftCms\Cms\Entry\Exceptions\EntryTypeNotFoundException should be used instead.craft\events\EntryTypeEvent. One of these should be used instead:
craft\services\Entries::EVENT_BEFORE_DELETE_ENTRY_TYPE => CraftCms\Cms\Section\Events\DeletingEntryTypecraft\services\Entries::EVENT_BEFORE_APPLY_ENTRY_TYPE_DELETE => CraftCms\Cms\Entry\Events\ApplyingEntryTypeDeletecraft\services\Entries::EVENT_AFTER_DELETE_ENTRY_TYPE => CraftCms\Cms\Entry\Events\EntryTypeDeletedcraft\services\Entries::EVENT_BEFORE_SAVE_ENTRY_TYPE => CraftCms\Cms\Entry\Events\EntryTypeSavingcraft\services\Entries::EVENT_AFTER_SAVE_ENTRY_TYPE => CraftCms\Cms\Entry\Events\EntryTypeSavedcraft\controllers\EntriesController. The following controllers now implement this functionality:
CraftCms\Cms\Http\Controllers\Entries\CreateEntryControllerCraftCms\Cms\Http\Controllers\Entries\EntriesIndexControllerCraftCms\Cms\Http\Controllers\Entries\MoveEntryToSectionControllerCraftCms\Cms\Http\Controllers\Entries\StoreEntryControllercraft\controllers\EntryTypesController in favor of CraftCms\Cms\Http\Controllers\EntryTypesControllercraft\console\controllers\EntryTypesController in favor of:
CraftCms\Cms\Entry\Commands\MergeEntryTypesCommandCraftCms\Cms\Component\Component base class, replacing Yii2's BaseObject/Component with config hydration, magic getters/setters, and Arrayable support.CraftCms\Cms\Component\Exceptions\InvalidCallException, replacing yii\base\InvalidCallException.CraftCms\Cms\Component\Exceptions\UnknownPropertyException, replacing yii\base\UnknownPropertyException.CraftCms\Cms\FieldLayout\FieldLayoutForm.CraftCms\Cms\FieldLayout\FieldLayoutFormTab.CraftCms\Cms\FieldLayout\FieldLayoutFormElement.CraftCms\Cms\FieldLayout\FieldLayoutServiceProvider.CraftCms\Cms\FieldLayout\Concerns\HasFieldLayout trait.craft\models\FieldLayout. CraftCms\Cms\FieldLayout\FieldLayout should be used instead.craft\models\FieldLayoutTab. CraftCms\Cms\FieldLayout\FieldLayoutTab should be used instead.craft\base\FieldLayoutComponent. CraftCms\Cms\FieldLayout\FieldLayoutComponent should be used instead.craft\base\FieldLayoutElement. CraftCms\Cms\FieldLayout\FieldLayoutElement should be used instead.craft\base\FieldLayoutProviderInterface. CraftCms\Cms\FieldLayout\Contracts\FieldLayoutProviderInterface should be used instead.craft\records\FieldLayout. CraftCms\Cms\FieldLayout\Models\FieldLayout should be used instead.craft\fieldlayoutelements\BaseField. CraftCms\Cms\FieldLayout\LayoutElements\BaseField should be used instead.craft\fieldlayoutelements\BaseNativeField. CraftCms\Cms\FieldLayout\LayoutElements\BaseNativeField should be used instead.craft\fieldlayoutelements\BaseUiElement. CraftCms\Cms\FieldLayout\LayoutElements\BaseUiElement should be used instead.craft\fieldlayoutelements\CustomField. CraftCms\Cms\FieldLayout\LayoutElements\CustomField should be used instead.craft\fieldlayoutelements\Heading. CraftCms\Cms\FieldLayout\LayoutElements\Heading should be used instead.craft\fieldlayoutelements\HorizontalRule. CraftCms\Cms\FieldLayout\LayoutElements\HorizontalRule should be used instead.craft\fieldlayoutelements\Html. CraftCms\Cms\FieldLayout\LayoutElements\Html should be used instead.craft\fieldlayoutelements\LineBreak. CraftCms\Cms\FieldLayout\LayoutElements\LineBreak should be used instead.craft\fieldlayoutelements\Markdown. CraftCms\Cms\FieldLayout\LayoutElements\Markdown should be used instead.craft\fieldlayoutelements\Template. CraftCms\Cms\FieldLayout\LayoutElements\Template should be used instead.craft\fieldlayoutelements\TextField. CraftCms\Cms\FieldLayout\LayoutElements\TextField should be used instead.craft\fieldlayoutelements\TextareaField. CraftCms\Cms\FieldLayout\LayoutElements\TextareaField should be used instead.craft\fieldlayoutelements\Tip. CraftCms\Cms\FieldLayout\LayoutElements\Tip should be used instead.craft\fieldlayoutelements\TitleField. CraftCms\Cms\FieldLayout\LayoutElements\TitleField should be used instead.craft\fieldlayoutelements\FullNameField. CraftCms\Cms\FieldLayout\LayoutElements\FullNameField should be used instead.craft\fieldlayoutelements\addresses\AddressField. CraftCms\Cms\FieldLayout\LayoutElements\addresses\AddressField should be used instead.craft\fieldlayoutelements\addresses\CountryCodeField. CraftCms\Cms\FieldLayout\LayoutElements\addresses\CountryCodeField should be used instead.craft\fieldlayoutelements\addresses\LabelField. CraftCms\Cms\FieldLayout\LayoutElements\addresses\LabelField should be used instead.craft\fieldlayoutelements\addresses\LatLongField. CraftCms\Cms\FieldLayout\LayoutElements\addresses\LatLongField should be used instead.craft\fieldlayoutelements\addresses\OrganizationField. CraftCms\Cms\FieldLayout\LayoutElements\addresses\OrganizationField should be used instead.craft\fieldlayoutelements\addresses\OrganizationTaxIdField. CraftCms\Cms\FieldLayout\LayoutElements\addresses\OrganizationTaxIdField should be used instead.craft\fieldlayoutelements\assets\AssetTitleField. CraftCms\Cms\FieldLayout\LayoutElements\assets\AssetTitleField should be used instead.craft\fieldlayoutelements\assets\AltField. CraftCms\Cms\FieldLayout\LayoutElements\assets\AltField should be used instead.craft\fieldlayoutelements\entries\EntryTitleField. CraftCms\Cms\FieldLayout\LayoutElements\Entries\EntryTitleField should be used instead.craft\fieldlayoutelements\users\UsernameField. CraftCms\Cms\FieldLayout\LayoutElements\Users\UsernameField should be used instead.craft\fieldlayoutelements\users\FullNameField. CraftCms\Cms\FieldLayout\LayoutElements\Users\FullNameField should be used instead.craft\fieldlayoutelements\users\EmailField. CraftCms\Cms\FieldLayout\LayoutElements\Users\EmailField should be used instead.craft\fieldlayoutelements\users\AffiliatedSiteField. CraftCms\Cms\FieldLayout\LayoutElements\Users\AffiliatedSiteField should be used instead.craft\fieldlayoutelements\users\PhotoField. CraftCms\Cms\FieldLayout\LayoutElements\Users\PhotoField should be used instead.craft\events\CreateFieldLayoutFormEvent. CraftCms\Cms\FieldLayout\Events\FieldLayoutFormCreating should be used instead.craft\events\DefineFieldLayoutCustomFieldsEvent. CraftCms\Cms\FieldLayout\Events\FieldLayoutCustomFieldsResolving should be used instead.craft\events\DefineFieldLayoutElementsEvent. CraftCms\Cms\FieldLayout\Events\FieldLayoutUIElementsResolving should be used instead.craft\events\DefineFieldLayoutFieldsEvent. CraftCms\Cms\FieldLayout\Events\NativeFieldsResolving should be used instead.craft\events\DefineShowFieldLayoutComponentInFormEvent. CraftCms\Cms\FieldLayout\Events\FieldLayoutComponentShowInFormResolving should be used instead.craft\events\DefineFieldActionsEvent. CraftCms\Cms\FieldLayout\Events\FieldLayoutActionMenuItemsResolving should be used instead.GeneralConfig::$pageTrigger query parameter.craft\controllers\FieldsController in favor of CraftCms\Cms\Http\Controllers\FieldsController.craft\controllers\MatrixController. CraftCms\Cms\Http\Controllers\MatrixController should be used instead.craft\controllers\RelationalFieldsController. CraftCms\Cms\Http\Controllers\RelationalFieldsController should be used instead.craft\errors\InvalidFieldException. CraftCms\Cms\Field\Exceptions\InvalidFieldException should be used instead.craft\fields\data\ColorData. CraftCms\Cms\Field\Data\ColorData should be used instead.craft\fields\data\IconData. CraftCms\Cms\Field\Data\IconData should be used instead.craft\fields\data\JsonData. CraftCms\Cms\Field\Data\JsonData should be used instead.craft\fields\data\LinkData. CraftCms\Cms\Field\Data\LinkData should be used instead.craft\fields\data\MultiOptionsFieldData. CraftCms\Cms\Field\Data\MultiOptionsFieldData should be used instead.craft\fields\data\OptionData. CraftCms\Cms\Field\Data\OptionData should be used instead.craft\fields\data\SingleOptionFieldData. CraftCms\Cms\Field\Data\SingleOptionFieldData should be used instead.craft\fields\linktypes\Asset. CraftCms\Cms\Field\LinkTypes\Asset should be used instead.craft\fields\linktypes\BaseElementLinkType. CraftCms\Cms\Field\LinkTypes\BaseElementLinkType should be used instead.craft\fields\linktypes\BaseLinkType. CraftCms\Cms\Field\LinkTypes\BaseLinkType should be used instead.craft\fields\linktypes\BaseTextLinkType. CraftCms\Cms\Field\LinkTypes\BaseTextLinkType should be used instead.craft\fields\linktypes\Category. CraftCms\Cms\Field\LinkTypes\Category should be used instead.craft\fields\linktypes\Email. CraftCms\Cms\Field\LinkTypes\Email should be used instead.craft\fields\linktypes\Entry. CraftCms\Cms\Field\LinkTypes\Entry should be used instead.craft\fields\linktypes\Phone. CraftCms\Cms\Field\LinkTypes\Phone should be used instead.craft\fields\linktypes\Sms. CraftCms\Cms\Field\LinkTypes\Sms should be used instead.craft\fields\linktypes\Url. CraftCms\Cms\Field\LinkTypes\Url should be used instead.craft\fields\Addresses. CraftCms\Cms\Field\Addresses should be used instead.craft\fields\Assets. CraftCms\Cms\Field\Assets should be used instead.craft\fields\BaseOptionsField. CraftCms\Cms\Field\BaseOptionsField should be used instead.craft\fields\BaseRelationField. CraftCms\Cms\Field\BaseRelationField should be used instead.craft\fields\ButtonGroup. CraftCms\Cms\Field\ButtonGroup should be used instead.craft\fields\Categories. CraftCms\Cms\Field\Categories should be used instead.craft\fields\Checkboxes. CraftCms\Cms\Field\Checkboxes should be used instead.craft\fields\Color. CraftCms\Cms\Field\Color should be used instead.craft\fields\ContentBlock. CraftCms\Cms\Field\ContentBlock should be used instead.craft\fields\Country. CraftCms\Cms\Field\Country should be used instead.craft\fields\Date. CraftCms\Cms\Field\Date should be used instead.craft\fields\Dropdown. CraftCms\Cms\Field\Dropdown should be used instead.craft\fields\Email. CraftCms\Cms\Field\Email should be used instead.craft\fields\Entries. CraftCms\Cms\Field\Entries should be used instead.craft\fields\Icon. CraftCms\Cms\Field\Icon should be used instead.craft\fields\Json. CraftCms\Cms\Field\Json should be used instead.craft\fields\Lightswitch. CraftCms\Cms\Field\Lightswitch should be used instead.craft\fields\Link. CraftCms\Cms\Field\Link should be used instead.craft\fields\Matrix. CraftCms\Cms\Field\Matrix should be used instead.craft\fields\MissingField. CraftCms\Cms\Field\MissingField should be used instead.craft\fields\Money. CraftCms\Cms\Field\Money should be used instead.craft\fields\MultiSelect. CraftCms\Cms\Field\MultiSelect should be used instead.craft\fields\Number. CraftCms\Cms\Field\Number should be used instead.craft\fields\PlainText. CraftCms\Cms\Field\PlainText should be used instead.craft\fields\RadioButtons. CraftCms\Cms\Field\RadioButtons should be used instead.craft\fields\Range. CraftCms\Cms\Field\Range should be used instead.craft\fields\Table. CraftCms\Cms\Field\Table should be used instead.craft\fields\Tags. CraftCms\Cms\Field\Tags should be used instead.craft\fields\Time. CraftCms\Cms\Field\Time should be used instead.craft\fields\Url. CraftCms\Cms\Field\Url should be used instead.craft\fields\Users. CraftCms\Cms\Field\Users should be used instead.craft\services\Fields. CraftCms\Cms\Field\Fields should be used instead.craft\errors\InvalidSubpathException. CraftCms\Cms\Filesystem\Exceptions\InvalidSubpathException should be used instead.\craft\records\GqlSchema. \CraftCms\Cms\Gql\Models\GqlSchema should be used instead.\craft\records\GqlToken. \CraftCms\Cms\Gql\Models\GqlToken should be used instead.craft\config\GeneralConfig::$errorTemplatePrefix and craft\config\GeneralConfig::errorTemplatePrefix(). Configure Laravel's custom error pages instead.craft\filters\BasicHttpAuthLogin. Use the auth.basic middleware instead. (see https://laravel.com/docs/12.x/authentication#http-basic-authentication)craft\filters\BasicHttpAuthStatic. Use the auth.basic middleware instead. (see https://laravel.com/docs/12.x/authentication#http-basic-authentication)craft\filters\BasicHttpAuthTrait. Use the auth.basic middleware instead. (see https://laravel.com/docs/12.x/authentication#http-basic-authentication)craft\filters\Cors. Use Laravel's CORS settings instead. (see https://laravel.com/docs/12.x/routing#cors)craft\filters\Headers. Use Laravel middleware instead. (see https://laravel.com/docs/middleware)craft\filters\ConditionalFilterTrait.craft\filters\SiteFilterTrait.craft\filters\UtilityAccess.craft\controllers\AppController::actionLicensingIssues(). CraftCms\Cms\Http\Middleware\EnforceLicenses should be used instead.craft\controllers\AppController::actionHealthCheck(). CraftCms\Cms\Http\Controllers\App\HealthCheckController should be used instead.craft\controllers\AppController::actionGetCpAlerts() and actionShunCpAlert(). CraftCms\Cms\Http\Controllers\App\CpAlertsController should be used instead.craft\controllers\AppController::actionIconPickerOptions(). Use CraftCms\Cms\Http\Controllers\IconController::pickerOptions() instead.craft\controllers\AppController::actionSetLicenseShunCookie(). CraftCms\Cms\Http\Controllers\App\LicensesController::setShunCookie() should be used instead.craft\controllers\AppController::actionGetPluginLicenseInfo() and actionUpdatePluginLicense(). CraftCms\Cms\Http\Controllers\App\PluginsController should be used instead.craft\controllers\AppController::actionBrokenImage(). CraftCms\Cms\Http\Middleware\ShowBrokenImage should be used instead.craft\controllers\AppController::actionRenderElements() and actionRenderComponents(). CraftCms\Cms\Http\Controllers\App\RenderController should be used instead.craft\controllers\NotFoundController. Laravel's exception handling should be used instead.yii2-adapter\legacy\web\Application. The new \CraftCms\Cms\Http\Middleware\SetHeaders middleware handles this functionality.yii2-adapter\legacy\web\Application. The new \CraftCms\Cms\Http\Middleware\EnforceLicenses middleware handles this functionality.craft\controllers\AppController::actionTryEdition() and actionSwitchToLicensedEdition() in favor of CraftCms\Cms\Http\Controllers\EditionController.CraftCms\Cms\Email\Commands\SendTestMailCommand.CraftCms\Cms\Email\Mailables\CraftMailable, a base mailable class that automatically applies project config email settings (from, replyTo, mailer) with site-specific overrides.CraftCms\Cms\SystemMessage\Mailables\SystemMessageMailable.Craft::$app->getMailer(). Laravel mailers/drivers and CraftCms\Cms\SystemMessage\SystemMessages::mailable() should be used instead.craft\mail\Mailer. Laravel mailers/drivers and CraftCms\Cms\SystemMessage\SystemMessages::mailable() should be used instead.craft\helpers\MailerHelper. Laravel mail configuration and drivers should be used instead.craft\config\GeneralConfig::$testToEmailAddress and craft\config\GeneralConfig::testToEmailAddress(). Illuminate\Support\Facades\Mail::alwaysTo() should be used instead.craft\mail\Mailer::$template, craft\mail\Mailer::$siteOverrides, craft\models\MailSettings::$template, and craft\models\MailSettings::$siteOverrides. Laravel mailable views and environment-specific Laravel mailers should be used instead.projectConfig.email mail settings and mail transport adapter configuration in favor of Laravel's mail config and drivers.Craft and Yii's migrations have been removed in favor of Laravel migrations.
The php craft fields:merge and php craft entry-types:merge commands will now generate Laravel migrations.
craft\db\Migration. CraftCms\Cms\Database\Migration should be used instead.craft\db\MigrationManagercraft\helpers\MigrationHelper as it was deprecated since 4.0.0.craft\console\controllers\InstallController in favor of:
CraftCms\Cms\Console\Commands\InstallCommandCraftCms\Cms\Console\Commands\InstallCheckCommandcraft\console\controllers\MigrateController in favor of:
CraftCms\Cms\Database\Commands\MigrateCommandcraft\console\controllers\UpController in favor of:
CraftCms\Cms\Console\Commands\UpCommandCraftCms\Cms\Plugin\Plugin class is now a Laravel ServiceProvider which provides a new way to register components for your plugins.craft\services\Plugins. CraftCms\Cms\Plugin\Plugins should be used instead.craft\base\Plugin. CraftCms\Cms\Plugin\Plugin should be used instead.craft\base\PluginTrait.craft\base\PluginInterface. CraftCms\Cms\Plugin\Contracts\PluginInterface should be used instead.craft\errors\InvalidPluginException. CraftCms\Cms\Plugin\Exceptions\InvalidPluginException should be used instead.craft\errors\InvalidLicenseKeyException. CraftCms\Cms\Plugin\Exceptions\InvalidLicenseKeyException should be used instead.craft\controllers\PluginsController. Use CraftCms\Cms\Http\Controllers\PluginsController instead.craft\console\controllers\PluginController in favor of:
CraftCms\Cms\Plugin\Commands\DisableCommand -> php craft plugin:disableCraftCms\Cms\Plugin\Commands\EnableCommand -> php craft plugin:enableCraftCms\Cms\Plugin\Commands\InstallCommand -> php craft plugin:installCraftCms\Cms\Plugin\Commands\UninstallCommand -> php craft plugin:uninstallCraftCms\Cms\Plugin\Commands\ListCommand -> php craft plugin:listcraft\events\PluginEvent in favor of the following new events:
craft\base\Plugin::EVENT_BEFORE_SAVE_SETTINGS => CraftCms\Cms\Component\Events\ComponentEventcraft\base\Plugin::EVENT_AFTER_SAVE_SETTINGS => CraftCms\Cms\Component\Events\ComponentEventcraft\services\Plugins::EVENT_BEFORE_DISABLE_PLUGIN => CraftCms\Cms\Plugin\Events\PluginDisabling;craft\services\Plugins::EVENT_BEFORE_ENABLE_PLUGIN => CraftCms\Cms\Plugin\Events\PluginEnabling;craft\services\Plugins::EVENT_BEFORE_INSTALL_PLUGIN => CraftCms\Cms\Plugin\Events\PluginInstalling;craft\services\Plugins::EVENT_BEFORE_LOAD_PLUGINS => CraftCms\Cms\Plugin\Events\PluginsLoading;craft\services\Plugins::EVENT_BEFORE_SAVE_PLUGIN_SETTINGS => CraftCms\Cms\Plugin\Events\SavingPluginSettings;craft\services\Plugins::EVENT_BEFORE_UNINSTALL_PLUGIN => CraftCms\Cms\Plugin\Events\PluginUninstalling;craft\services\Plugins::EVENT_AFTER_DISABLE_PLUGIN => CraftCms\Cms\Plugin\Events\PluginDisabled;craft\services\Plugins::EVENT_AFTER_ENABLE_PLUGIN => CraftCms\Cms\Plugin\Events\PluginEnabled;craft\services\Plugins::EVENT_AFTER_INSTALL_PLUGIN => CraftCms\Cms\Plugin\Events\PluginInstalled;craft\services\Plugins::EVENT_AFTER_LOAD_PLUGINS => CraftCms\Cms\Plugin\Events\PluginsLoaded;craft\services\Plugins::EVENT_AFTER_SAVE_PLUGIN_SETTINGS => CraftCms\Cms\Plugin\Events\PluginSettingsSaved;craft\services\Plugins::EVENT_AFTER_UNINSTALL_PLUGIN => CraftCms\Cms\Plugin\Events\PluginUninstalled;Request::isPreview() macro for detecting preview requests via x-craft-preview or x-craft-live-preview parameters.Request::isCpRequest(), Request::isSiteRequest(), Request::isActionRequest(), Request::actionSegments(), Request::actionSegmentsToRoute(), Request::duplicateWithUri(), Request::getToken(), and Request::getSigned() macros.GeneralConfig::$pageTrigger query parameter rather than path-style pagination segments.CraftCms\Cms\Support\Security.CraftCms\Cms\Support\Facades\Security.CraftCms\Cms\Http\Middleware\AddLogContext.Craft::$app->getSecurity() in favor of Laravel's Hash and Crypt facades, or CraftCms\Cms\Support\Facades\Security.GeneralConfig::$blowfishHashCost in favor of Laravel's hashing.bcrypt.rounds config or the BCRYPT_ROUNDS environment variable.The craft\services\Updates internal service has been removed. CraftCms\Cms\Update\Updates should be used instead.
Moved the following controllers:
craft\controllers\ConfigSyncController => CraftCms\Cms\Http\Controllers\ConfigSyncControllercraft\controllers\InstallController => CraftCms\Cms\Http\Controllers\InstallControllercraft\controllers\MigrateController => CraftCms\Cms\Http\Controllers\MigrateControllercraft\controllers\PluginStoreController => CraftCms\Cms\Http\Controllers\PluginStore\PluginStoreControllercraft\controllers\PluginStore\InstallController => CraftCms\Cms\Http\Controllers\PluginStore\InstallControllercraft\controllers\PluginStore\RemoveController => CraftCms\Cms\Http\Controllers\PluginStore\RemoveControllercraft\controllers\UpdaterController => CraftCms\Cms\Http\Controllers\Updates\UpdaterControllercraft\controllers\UpdatesController => CraftCms\Cms\Http\Controllers\Updates\UpdatesControllercraft\console\controllers\UpdateController in favor of these commands:
CraftCms\Cms\Update\Commands\UpdateCommandCraftCms\Cms\Update\Commands\ComposerInstallCommandCraftCms\Cms\Update\Commands\InfoCommandcraft\helpers\Install. CraftCms\Cms\Site\Concerns\SiteDefaults should be used instead.craft\helpers\Update. The only method was checkPhpConstraint which is now available on CraftCms\Cms\Support\PHP::checkConstraint()craft\events\UpdateReleaseEvent in favor of CraftCms\Cms\Update\Events\CriticalUpdateReleasedEventcraft\models\Update. CraftCms\Cms\Update\Data\Update should be used instead.craft\models\UpdateRelease. CraftCms\Cms\Update\Data\UpdateRelease should be used instead.craft\models\Updates. CraftCms\Cms\Update\Data\Updates should be used instead.craft\console\controllers\UsersController in favor of the following commands (signatures are the same):
CraftCms\Cms\User\Commands\ActivationUrlCommandCraftCms\Cms\User\Commands\CreateCommandCraftCms\Cms\User\Commands\DeleteCommandCraftCms\Cms\User\Commands\ImpersonateCommandCraftCms\Cms\User\Commands\ListAdminsCommandCraftCms\Cms\User\Commands\LogoutAllCommandCraftCms\Cms\User\Commands\PasswordResetUrlCommandCraftCms\Cms\User\Commands\Remove2faCommandCraftCms\Cms\User\Commands\SetPasswordCommandCraftCms\Cms\User\Commands\UnlockCommandcraft\services\ProjectConfig. CraftCms\Cms\ProjectConfig\ProjectConfig should be used instead.craft\controllers\ProjectConfigController in favor of CraftCms\Cms\Http\Controllers\Utilities\ProjectConfigControllercraft\console\controllers\PcController & craft\console\controllers\ProjectConfigController in favor of the following commands:
CraftCms\Cms\ProjectConfig\Commands\ApplyCommandCraftCms\Cms\ProjectConfig\Commands\DiffCommandCraftCms\Cms\ProjectConfig\Commands\ExportCommandCraftCms\Cms\ProjectConfig\Commands\GetCommandCraftCms\Cms\ProjectConfig\Commands\RebuildCommandCraftCms\Cms\ProjectConfig\Commands\RemoveCommandCraftCms\Cms\ProjectConfig\Commands\SetCommandCraftCms\Cms\ProjectConfig\Commands\TouchCommandCraftCms\Cms\ProjectConfig\Commands\WriteCommandphp craft project-config or php craft pccraft\events\ConfigEvent in favor of the following events:
CraftCms\Cms\ProjectConfig\Events\ProjectConfigItemAddingCraftCms\Cms\ProjectConfig\Events\ItemAddedCraftCms\Cms\ProjectConfig\Events\ProjectConfigItemUpdatedCraftCms\Cms\ProjectConfig\Events\ItemUpdatedCraftCms\Cms\ProjectConfig\Events\ProjectConfigItemRemovedCraftCms\Cms\ProjectConfig\Events\ItemRemovedcraft\services\ProjectConfig::EVENT_AFTER_APPLY_CHANGES
CraftCms\Cms\ProjectConfig\Events\ChangesAppliedcraft\services\ProjectConfig::EVENT_AFTER_WRITE_YAML_FILESCraftCms\Cms\ProjectConfig\Events\YamlFilesWrittencraft\services\ProjectConfig::EVENT_REBUILD
CraftCms\Cms\ProjectConfig\Events\ProjectConfigRebuiltcraft\errors\BusyResourceException in favor of CraftCms\Cms\ProjectConfig\Exceptions\BusyResourceExceptioncraft\errors\StaleResourceException in favor of CraftCms\Cms\ProjectConfig\Exceptions\StaleResourceExceptionCraftCms\Cms\ProjectConfig\Exceptions\ReadonlyExceptioncraft\models\ProjectConfigData in favor of CraftCms\Cms\ProjectConfig\Data\ProjectConfigDatacraft\models\ReadOnlyProjectConfigData in favor of CraftCms\Cms\ProjectConfig\Data\ReadOnlyProjectConfigDatacraft\helpers\ProjectConfig. CraftCms\Cms\ProjectConfig\ProjectConfigHelper should be used instead.craft\services\Revisions. CraftCms\Cms\Element\Revisions should be used instead.craft\events\RevisionEvent. One of the events extending CraftCms\Cms\Element\Events\RevisionEvent should be used instead.craft\behaviors\RevisionBehavior. CraftCms\Cms\Element\Concerns\Revisionable should be used instead.craft\services\Routes. CraftCms\Cms\Route\Routes should be used instead.config/routes.php is no longer supported. Register routes using Laravel's routing instead.CraftCms\Cms\Support\Facades\Search.craft\services\Search. CraftCms\Cms\Search\Search should be used instead.Craft::$app->getSearch(). CraftCms\Cms\Support\Facades\Search or app(CraftCms\Cms\Search\Search::class) should be used instead.craft\search\SearchQuery. CraftCms\Cms\Search\SearchQuery should be used instead.craft\search\SearchQueryTerm. CraftCms\Cms\Search\SearchQueryTerm should be used instead.craft\search\SearchQueryTermGroup. CraftCms\Cms\Search\SearchQueryTermGroup should be used instead.craft\events\SearchEvent in favor of the following new events:
craft\services\Search::EVENT_BEFORE_SEARCH => CraftCms\Cms\Search\Events\SearchStartingcraft\services\Search::EVENT_AFTER_SEARCH => CraftCms\Cms\Search\Events\SearchPerformedcraft\services\Search::EVENT_BEFORE_SCORE_RESULTS => CraftCms\Cms\Search\Events\ScoringResultscraft\events\IndexKeywordsEvent. CraftCms\Cms\Search\Events\KeywordsIndexing should be used instead.GeneralConfig::$pageTrigger query parameter.craft\services\Entries. CraftCms\Cms\Section\Sections should be used instead.craft\models\Section. CraftCms\Cms\Section\Data\Section should be used instead.craft\records\Section. CraftCms\Cms\Section\Models\Section should be used instead.craft\models\Section_SiteSettings. CraftCms\Cms\Section\Data\SectionSiteSettings should be used instead.craft\records\Section_SiteSettings. CraftCms\Cms\Section\Models\SectionSiteSettings should be used instead.craft\events\SectionEvent. One of these should be used instead:
craft\services\Entries::EVENT_BEFORE_DELETE_SECTION => CraftCms\Cms\Section\Events\SectionDeletingcraft\services\Entries::EVENT_BEFORE_APPLY_SECTION_DELETE => CraftCms\Cms\Section\Events\SectionDeletionApplyingcraft\services\Entries::EVENT_AFTER_DELETE_SECTION => CraftCms\Cms\Section\Events\SectionDeletedcraft\services\Entries::EVENT_BEFORE_SAVE_SECTION => CraftCms\Cms\Section\Events\SectionSavingcraft\services\Entries::EVENT_AFTER_SAVE_SECTION => CraftCms\Cms\Section\Events\SectionSavedcraft\controllers\SectionsController in favor of `CrafNote truncated.
Renamed Craft’s MCP tools to use snake_case, such as elements_list instead of elements.list, since some MCP clients reject or rename tools with dots i
elements_list instead of elements.list, since some MCP clients reject or rename tools with dots in their names. Public MCP server approvals are updated automatically. Plugins should name their MCP tools the same way, such as my_plugin_orders_list. (#20351)assets_create and assets_replace MCP tools now accept base64-encoded data, local file paths (stdio only), and single-use upload URLs, in addition to download URLs. Download URLs no longer require a file_id, and now follow up to 3 redirects.assets_upload_url MCP tool, which returns single-use upload URLs for assets_create and assets_replace. Over stdio (mcp/serve), upload URLs are based on the site’s base URL, which must be absolute.assets_create MCP tool can now upload files to an Assets field’s default upload location, via its new fieldId and elementId arguments.user_permissions_user_update and user_permissions_group_update MCP tools, which add and remove specific permissions without resending complete lists. (#20434)configuration_get, configuration_list, configuration_create, and configuration_update MCP tools now return each record’s revision, and configuration_update and configuration_delete accept it as expectedRevision, failing if the record has changed since it was read. (#20440)fields arguments now accept dot paths, such as blocks.innerBlocks, which include nested fields of nested elements as summaries.addresses is included in fields.asset_folders_list MCP tool now accepts null for criteria.parentId, which lists volumes’ root folders.install CLI command..env file once Craft has been installed with them, and no longer accepts them if the .env file isn’t writable.craft\config\McpConfig::filters(). (#20558)craft\base\McpOutputFieldInterface, which fields can implement to control how their values are returned by MCP tools.craft\mcp\McpOutputContext.craft\mcp\elements\ElementAdapterRegistry::supports().craft\mcp\serializers\ElementSerializer::serializeNestedValue() and summarize().craft\services\ProjectConfig::acquireLock(). (#20440)craft\elements\Asset::canSave() now returns true for users’ own assets in their temporary upload folder.mcp/sdk to 0.9. MCP tools that declare an outputSchema now return an error if their structured content doesn’t match it.null for element-specific conditions), and non-editable fields are excluded from mutation arguments (or error when set). (#20391).well-known URLs.config/project/ folder empty. Existing files are now only replaced as new ones are written, and the error now includes its underlying cause. (#20519)user_permissions_group_set MCP tool over stdio. The MCP permission tools now also reject unknown permissions rather than ignoring them. (#20434)elements/delete-for-site action or the “Delete for site” element action.craft\base\Element::EVENT_AUTHORIZE_DELETE_FOR_SITE handlers were never called, so they couldn’t authorize users to delete elements for a site.craft\elements\Entry::EVENT_DEFINE_ENTRY_TYPES had excluded, resulting in a 400 error. (#20322)users/password-reset-url, always pointed to the front end, even for users with control panel access. (#16340)cpTrigger. (#20353)postDate or expiryDate values. (#20405)configuration_update MCP tool couldn’t update Matrix field settings. (#20406)elements_list, drafts_list, revisions_list, search_query, and craft_query MCP tools ignored fields: null, returning only element metadata instead of all non-nested custom fields.search_query MCP tool. (#20329)mcp/serve) weren’t saved until the server stopped. (#20330)craft\db\Migration::archiveTableIfExists() truncated archived table names, such as webhoo_old instead of webhookgroups_old. (#20484)Fixed a moderate-severity information disclosure vulnerability. (GHSA-hgwm-4xxx-w8jq)
/{cpTrigger}/mcp and /{cpTrigger}/mcp/auth, or /mcp and /mcp/auth when public registration is enabled. Endpoints within the control panel can only be used by users with control panel access. (#20189)/mcp. (#20145, #20189)/.well-known/ai-catalog.json and a Server Card at <endpoint>/server-card, per SEP-2127. Servers on control panel URLs are never advertised, and the authenticated server is only advertised when public registration is enabled. (#20283)mcp/serve command, which runs a stdio MCP server acting as a given user. (#20145)config/mcp.php and config/oauth.php config files. (#20145)oauth/generate-keys command, which generates the keys used to sign OAuth access tokens. (#20145)registrationRateLimit and registrationRateLimitDuration OAuth config settings. (#20303)craft\services\Mcp::EVENT_REGISTER_CAPABILITY_TYPES, OAuth resources via craft\services\OAuth::EVENT_REGISTER_RESOURCES, and personal access token scopes via craft\services\PersonalAccessTokens::registerScopeGroup(). (#20145, #20147)craft\base\ApplicationTrait::getOAuth(). (#20145)craft\base\InputSchemaFieldInterface. (#20145)craft\config\McpConfig. (#20145)craft\config\OAuthConfig. (#20145)craft\events\RegisterOAuthResourcesEvent. (#20145)craft\gql\GqlInputSchema. (#20145)craft\mcp and craft\oauth namespaces. (#20145, #20147)craft\services\Config::CATEGORY_MCP. (#20145)craft\services\Config::CATEGORY_OAUTH. (#20145)craft\services\Config::getMcp(). (#20145)craft\services\Config::getOAuth(). (#20145)craft\services\Mcp. (#20145)craft\services\OAuth. (#20145)craft\utilities\ClearCaches::clear(). (#20145)craft\base\InputSchemaFieldInterface. (#20145)craft\base\ApplicationTrait::getPersonalAccessTokens(). (#20147)craft\services\PersonalAccessTokens. (#20147)authenticated key on their config. (#20147)currentUser GraphQL query, which returns the user that authenticated the request. (#20147)sites, site, sections, section, entryTypes, entryType, volumes, volume, userGroups, userGroup, categoryGroups, categoryGroup, tagGroups, and tagGroup GraphQL queries, which are available when the schema includes the corresponding components. (#20055)site fields in GraphQL, when the schema includes the “Query for sites” component. (#20055)section and type fields in GraphQL, when the schema includes the “Query for sections” and “Query for entry types” components. (#20055)volume fields in GraphQL, when the schema includes the “Query for volumes” component. (#20055)groups fields in GraphQL, when the schema includes the “Query for user groups” component. (#20055)group fields in GraphQL, when the schema includes the “Query for category groups” and “Query for tag groups” components. (#20055)craft\elements\db\EagerLoadPlan::$configureQuery. (#20147)craft\gql\base\ElementMutationResolver::requireUserAuthorization(). (#20147)craft\gql\queries\Settings. (#20055)craft\gql\types\CategoryGroup. (#20055)craft\gql\types\EntryType. (#20055)craft\gql\types\Section. (#20055)craft\gql\types\Site. (#20055)craft\gql\types\TagGroup. (#20055)craft\gql\types\UserGroup. (#20055)craft\gql\types\Volume. (#20055)craft\helpers\Gql::getSchemaUser(). (#20147)craft\models\GqlSchema::$user. (#20147)craft\services\Gql::getOAuthResource(). (#20147)craft\services\Gql::getSchemaForUser(). (#20147)craft\services\Gql::SCOPE_READ. (#20147)craft\services\Gql::SCOPE_WRITE. (#20147)craft\base\Element::showSitesField(). (#20061)craft\base\Element::sitesFieldHtml(). (#20061)elements/save-draft action responses now include a canDeleteForSite key. (#20061).jxl) images, when ImageMagick supports it. JPEG XL images can now be uploaded, transformed, and set as a transform’s output format.md and markdown are now included in the default allowedFileExtensions config setting value. Markdown files can be previewed with syntax highlighting. (#20089)craft\elements\Asset::KIND_MARKDOWN. (#20089)craft\models\Volume::$propagationMethod. (#20060)craft\services\Images::getSupportsBmp().craft\services\Images::getSupportsJxl().Craft.BaseUploader::addFiles(). (#20183, #20212)Craft.BaseUploader now supports a pasteZone setting. Files pasted while focus is within it are passed to addFiles(), which custom uploader classes must implement to support pasted files. (#20183, #20212)craft\services\Assets::getAssetById() now returns the asset in another site if it doesn’t exist in the current site, when no site ID is passed. (#20060)hex properties and GraphQL values now include an alpha channel (e.g. #0000ff80) when the color isn’t fully opaque. Fully-opaque colors are still output as 6-digit hex values. (#8983, #20274)alpha, rgba, hsla, rgbChannels, oklch, and contrastColor properties, and a contrastRatio() method. (#8983, #20274)hex, label, red, green, blue, alpha, hue, saturation, lightness, luma, rgb, rgba, rgbChannels, hsl, hsla, oklch, contrastColor, and contrastRatio fields. (#8983, #20274)craft\fields\Color::$allowCustomAlpha. (#8983, #20274)craft\fields\Color::$fullGraphqlData. (#8983, #20274)craft\fields\data\ColorData::getAlpha(). (#8983, #20274)craft\fields\data\ColorData::getContrastColor(). (#8983, #20274)craft\fields\data\ColorData::getContrastRatio(). (#8983, #20274)craft\fields\data\ColorData::getHsla(). (#8983, #20274)craft\fields\data\ColorData::getOklch(). (#8983, #20274)craft\fields\data\ColorData::getRgbChannels(). (#8983, #20274)craft\fields\data\ColorData::getRgba(). (#8983, #20274)craft\gql\types\ColorData. (#8983, #20274)craft\gql\types\generators\ColorDataType. (#8983, #20274)craft\validators\ColorValidator::$allowAlpha. (#8983, #20274)craft\fields\data\ColorData::getHex() now has a $withAlpha argument, which defaults to true. (#8983, #20274)craft\validators\ColorValidator::normalizeColor() now expands 4-digit hex values to 8 digits, and removes fully-opaque alpha channels from 8-digit hex values. (#8983, #20274)customIconPath config setting, which registers a “Custom” icon set made up of the SVG files within a directory, such as @config/icons. (#17101, #20277)set property, set to the handle of the custom icon set the icon was selected from (or null for Font Awesome icons). (#17101, #20277)set-handle:icon-name. (#17101, #20277)IconData GraphQL objects now have set, svg, and keywords fields. (#17101, #20277)getSvg() and getKeywords() methods. (#17101, #20277)craft\services\Icons::EVENT_REGISTER_ICON_SETS. (#17101, #20277)craft\base\ApplicationTrait::getIcons(). (#17101, #20277)craft\events\RegisterIconSetsEvent. (#17101, #20277)craft\fields\data\IconData::$set. (#17101, #20277)craft\fields\data\IconData::getKeywords(). (#17101, #20277)craft\fields\data\IconData::getSvg(). (#17101, #20277)craft\fields\Icon::$iconSets. (#17101, #20277)craft\icons\DirectoryIconSet. (#17101, #20277)craft\icons\IconSet. (#17101, #20277)craft\services\Icons. (#17101, #20277)craft\helpers\Cp::iconSvg() now supports set-handle:icon-name values. (#17101, #20277)Craft.IconPicker now supports a sets setting, which can be set to an array of icon set handles (fontawesome for Font Awesome), or '*' for all icon sets. (#17101, #20277)craft\base\FieldTrait::$tip.craft\base\FieldTrait::$warning.craft\fieldlayoutelements\BaseField::defaultTip().craft\fieldlayoutelements\BaseField::defaultWarning().{% render %} Twig tag. (#19988){% render %} tags and render() methods are allowed within the Twig sandbox. (#19988)capitalize, lower, title, and upper Twig filters now have language arguments, which default to the current application language. (#19558)craft\base\Renderable. (#19988)craft\helpers\Template::render(). (#19988)craft\i18n\Locale::languageId().Illuminate\Support\Collection now has a render() macro, which replaces craft\elements\ElementCollection::render(). (#19988)craft\helpers\ElementHelper::normalizeSlug() now has a $language argument, which defaults to the current application language. (#19558)craft\helpers\StringHelper::toLowerCase(), ::toTitleCase(), and ::toUpperCase() now have $language arguments, which default to the current application language. (#19558)craft\helpers\ElementHelper::renderElements(). craft\helpers\Template::render() should be used instead. (#19988)craft\web\assets\highlight\HighlightAsset. (#20088)craft\web\assets\prismjs\PrismJsAsset. craft\web\assets\highlight\HighlightAsset should be used instead. PrismJsAsset now registers a Prism shim backed by TanStack Highlight, which supports Prism’s commonly-used APIs, but not grammar customization, hooks, or plugins. (#20088)users/login, auth/verify-totp, and auth/verify-recovery-code requests. (#20054)defaultRateLimit and defaultRateLimitDuration config settings, which configure the rate limits for users/login, users/send-password-reset-email, auth/verify-totp, and auth/verify-recovery-code requests. (#20054)ED256 passkey algorithm. (#19701)craft\helpers\StringHelper::areConfusable().craft\helpers\StringHelper::stripPrivateAndUnassignedChars().craft\helpers\StringHelper::invisibleCharsRegex() now also matches bidirectional embedding, override, and isolate characters; non-whitespace control characters; the word joiner, function application, combining grapheme joiner, and Mongolian vowel separator characters; and blank Hangul filler and braille characters.project-config/check command, which checks project config schema compatibility without applying changes.ssl-ca or disable-ssl-verify-server-cert), if the database connection doesn’t have any PDO::MYSQL_ATTR_SSL_* attributes set. (#19366)PDO::MYSQL_ATTR_SSL_CAPATH and PDO::MYSQL_ATTR_SSL_CIPHER database connection attributes. (#19366)createRevisions property to true to retain the previous behavior. (#19626)craft\test\ElementFixtureTrait. (#19626)craft\base\NestedElementTrait::$touchOwnersOnSave.craft\elements\db\NestedElementQueryTrait::mustHaveField().craft\elements\db\NestedElementQueryTrait::mustHaveOwner().craft\helpers\Db::isSafeOrderBy(). (#19994)league/oauth2-server, mcp/sdk, and symfony/finder. (#20145)craft\services\Elements::deleteElementsForSite() would remove elements’ site rows without deleting the elements, on single-site installs. (#20060)dateUpdated timestamps, which could cause new revisions to reuse stale nested content. (#19594)utf8 charset wasn’t getting normalized to utf8mb4. (#20248)craft\i18n\Locale::getOrientation() was returning ltr for some right-to-left locales, such as Central Kurdish (ckb) and Punjabi in Arabic script (pa-Arab). (#20301)withProvisionalDrafts to a Matrix field via GraphQL. (#20308)fields/merge and fields/auto-merge commands weren’t updating field condition rules that referenced the merged fields. (#19901)fields/merge and fields/auto-merge commands weren’t updating Content Block fields’ layouts. (#19901)returnUrl param. (#19983)orderBy criteria wasn’t getting applied to eager-loaded elements. (#19994)orderBy, offset, and limit params weren’t getting applied to element queries executed via eagerly(). (#19994)orderBy and inReverse criteria were set. (#19994)Fixed a high-severity SQL injection vulnerability. (GHSA-cphx-cx67-jcqj)
craft\db\Connection::cache() could cause infinite recursion when craft\cache\DbCache was used as the cache component. (#19877)update command. (#19878)Fixed a high-severity RCE vulnerability. (GHSA-hq78-cm2m-h24h)
craft\services\Users::destroyOtherSessions().craft\fields\Matrix::EVENT_DEFINE_ENTRY_TYPES. (#19685)attribute() Twig function was allowed within sandboxed Twig environments, even if it wasn’t listed in allowedFunctions.false key could return the wrong value when Dev Mode was disabled.setup/php-session-table and setup/db-cache-table commands. (#19742)Fixed an error that could occur when registering or logging in with a passkey. (#19657, #19660)
Fixed a high-severity SQL injection vulnerability. (GHSA-mjj9-pjh4-r48g)
craft\helpers\StringHelper::containsNewlines().craft\services\ElementSources::CONTEXT_RESTRICTED_MODAL.craft\elements\db\EagerLoadPlan::$siteIds.Added support for symfony/filesystem 7.x and 8.x.
Fixed high-severity RCE vulnerabilities. (GHSA-g48f-wc2q-4rrv, GHSA-wr79-9v6x-5rfq, GHSA-qm9x-rmcj-h2rc, GHSA-xmwr-88vw-5ghh)
[!WARNING]
GraphQL fields that return user data (author,authorId,authors,authorIds,draftCreator,revisionCreator,uploader, anduploaderId) are no longer available to schemas that don’t have “Query for users” enabled.
params argument of the url() Twig function now accepts false to remove all params from the passed-in URL. (#19102)craft\web\DbSession, which should be used instead of yii\web\DbSession to prevent “headers already sent” warnings from getting logged. (#19139)craft\fields\data\LinkData objects now include type, value, url, label, filename, link, attributes, defaultLabel, elementType, elementId, elementSiteId, and elementTitle keys. (craftcms/element-api#201)craft\fieldlayoutelements\CustomField::$oldFieldUid.craft\fields\conditions\FieldConditionRuleInterface::getFieldUid().craft\helpers\ElementHelper::containsTempSlug().craft\helpers\Gql::canQueryAllUsers().craft\helpers\UrlHelper::removeAllParams(). (#19102)craft\helpers\UrlHelper::removeParams(). (#19102)craft\services\Config::doesEnvVarExist().craft\services\Elements::reorderNestedElements(). (#19321)craft\helpers\App::parseEnv() behavior. (#19524, #19522)$params argument of craft\helpers\UrlHelper::url() now accepts false to remove all params from the passed-in URL. (#19102).well-known/passkey-endpoints requests. (#19364)craft\web\Controller::asModelSuccess() and asModelFailure() could include more data than expected. (#19469)null was passed to an asset query’s uploader param. (#19484).env file, and cause the license key input to disappear. (#19518)fields/auto-merge command. (#19519)getEagerLoadedElements() wasn’t returning results for eager-loaded native fields, such as authors. (#19471)Fixed high-severity RCE vulnerabilities. (GHSA-5m2g-hhqr-84pc, GHSA-vfcw-xv8p-8rj2)
Fixed high-severity RCE vulnerabilities. (GHSA-5jmw-g85v-7jv2, GHSA-9c4j-cjw3-r3xx, GHSA-5r92-75j8-c534)
craft\helpers\StringHelper::isMd5().project-config/apply --force. (#19300){{ head() }}, {{ beginBody() }}, or {{ endBody() }} tags. (#19304)Fixed high-severity RCE vulnerabilities.
craft\helpers\Gql::isMutation(). (#19285)craft\helpers\Gql::isMutation(). (#19285)Fixed high-severity authorization bypass vulnerabilities.
craft\gql\base\MutationResolver::requireAllowedSite().craft\web\twig\variables\CraftVariable::$rebrand was getting defined for Craft Team installs. (#19249)craft\gql\base\MutationResolver::requireAllowedSite().craft\web\twig\variables\CraftVariable::$rebrand was getting defined for Craft Team installs. (#19249)Updated web-auth/webauthn-lib to 5.3.
Fixed a low-severity information disclosure vulnerability.
craft\services\Security::isRestrictedDir(). (#19179)craft\helpers\Image::imageSizeByStream() now supports WebP, AVIF, and HEIC/HEIF images. (#19189)craft\services\Sites::getGroupById() now has a $withTrashed argument.site/siteId params weren’t being respected on eager-loaded localized queries. (#18588)--single-transaction flag on MariaDB. (#19191)Fixed a low-severity XSS vulnerability.
previewTokenDuration config setting was defaulting to 1 day, rather than to the defaultTokenDuration value. (#18550)Fixed a high-severity RCE vulnerability.
craft\web\twig\AllowableInSandbox.craft\helpers\App::parseEnv() wasn’t resolving aliases for environment variables that referenced an alias (e.g. @root/storage/rebrand). (#19108)Fixed high-severity RCE vulnerabilities.
craft\controllers\EVENT_BEFORE_SAVE_IMAGE. (#19068)craft\events\SaveAssetImageEvent. (#19068)craft\web\Request::getPreviewParam().X-Robots-Tag: none headers weren’t always being sent for requests with x-craft-preview or x-craft-live-preview query string params. (#19060)craft\helpers\App::parseEnv() wasn’t returning boolean values for environment variable names that resolved to true/false values. (#19029)width and height attributes. (#1902w7)config/general.console.php or config/general.web.php. (#19083)Fixed a moderate-severity authorization bypass vulnerability.
craft\base\ElementInterface::afterAssignedId().users/remove-2fa command non-interactively, if --method wasn’t provided. (#18724):empty:/:notempty: params properly. (#18988, #19019){id} in their Default Title Format weren’t always getting created with the correct generated title. (#18991)Fixed a bug where an empty storage/runtime/ directory was getting created even if runtimePath was being overridden in config/app.php.
storage/runtime/ directory was getting created even if runtimePath was being overridden in config/app.php. (#18936)Fixed a moderate-severity authorization bypass vulnerability.
craft\services\Path::getRuntimePath(). Craft::$app->getRuntimePath() should be called instead.config/app.php wasn’t possible. (#18936)Updated Twig to 3.26. (#18924, #18926)
Fixed a bug where assets’ Alternative Text values weren’t always being set when replacing an existing asset’s file.
Fixed a high-severity RCE vulnerability. (GHSA-f74w-488g-8x5r)
min-width styles based on their configured widths, if set. (#18534)<br> tags. (#18058)--to-default option to resave commands. (#18522)--method option to the users/remove-2fa command. (#18732)heading()/h() and h1()…h6() Twig functions. (#18524)tag() Twig function now accepts a string for its second argument. (#18524)|attr, |parseAttr, and |removeClass Twig filters no longer log warnings when performed on a string without an HTML tag. (#17622)|default Twig filter and is empty Twig test now treat all yii\base\Model instances as not empty. (#18727)|number Twig filter now has a locale argument. (#18823)|time and |datetime Twig filters now have withTimeZone arguments. (#18639)|timestamp Twig filter now returns the current time, if applied to a null/empty string value. (#18642)dataUrl() is no longer allowed in sandboxed Twig environments by default.delete GraphQL queries now have a hardDelete argument. (#18511)postDate values are now null on creation, rather than set to the dateCreated value. (#18642)url GraphQL fields’ immediately arguments are no longer deprecated. (#18581)craft\filters\SecFetchSiteFilter for request origin verification. (#18641)craft\fields\data\LinkData::getUrl() now has an $anyStatus argument, which can be set to false to prevent a value from being returned if a disabled/pending/expired element is linked. (#18527)craft\base\DefaultableFieldInterface. (#18522)craft\base\Element::EVENT_DEFINE_DELETION_BLOCKERS. (#18728)craft\base\ElementActionInterface::getTriggerId().craft\base\ElementInterface::deletionBlockers(). (#18728)craft\base\ElementInterface::setDirtyFieldTracking().craft\elements\PopulateElementEvent::$content.craft\elements\db\ElementQuery::$activeQuery.craft\elements\db\ElementQueryInterface::collectIds().craft\elements\deletionblockers\BaseDeletionBlocker. (#18728)craft\elements\deletionblockers\DeletionBlockerInterface. (#18728)craft\elements\deletionblockers\EntryAuthorsBlocker. (#18728)craft\elements\deletionblockers\RelationDeletionBlocker. (#18728)craft\errors\FieldNotFoundException::$fieldId.craft\events\DefineElementDeletionBlockersEvent. (#18728)craft\fieldlayoutelements\CustomField::setFieldId().craft\helpers\ElementHelper::belongsToCanonicalOwner().craft\helpers\Html::jsWithVars().craft\helpers\Markdown. (#18671)craft\models\Section::$minAuthors. (#18662)craft\queue\jobs\ReplaceRelations. (#18728)craft\services\Elements::REF_TAG_PATTERN.craft\services\Entries::reassignEntries().craft\validators\TimeValidator::$outOfRange. (#18575)Craft.CpScreenSlideout::reload(). (#18625)Craft.ElementDeletionManager.craft\elements\PopulateElementEvent::$row no longer includes fieldValues or generatedFieldValues keys.craft\helpers\DateTimeHelper::timeZoneAbbreviation() is no longer deprecated, and now has a $date argument.craft\i18n\Formatter::asTime() and asDatetime() now have $withTimeZone arguments. (#18639)craft\controllers\AppController::actionResourceJs(). (#18559)Craft.CP now triggers a queueCompleted event when the last queue job is completed.craft\controllers\UsersController::EVENT_DEFINE_CONTENT_SUMMARY. (#18728)craft\elements\User::$inheritorOnDelete. (#18728)craft\elements\actions\DeleteUsers. (#18728)craft\events\DefineUserContentSummaryEvent. (#18728)Craft.DeleteUserModal. (#18728)optimizeImageFilesize is disabled. (#18635)Fixed a high-severity XSS vulnerability. (GHSA-24x4-j6x9-rfw5)
entrify/global-set command on subsequent environments. (#18767)Fixed a moderate-severity authorization bypass vulnerability. (GHSA-7h62-6v23-v8fm)
composer.json were getting updated when installing/updating plugins. (#18755)Fixed high-severity authorization bypass vulnerabilities. (GHSA-x5m4-g2cq-52pq, GHSA-3w32-23wj-rxg3, GHSA-qh45-9g5p-m2v4)
resourceBasePath and resourceBaseUrl config settings weren’t being respected for console requests. (#18685)*Interface type condition. (#18708)id param was overridden. (#15570)Fixed an issue that prevented Craft from being installed.
eagerly(). (#18693)Deprecated craft\services\ProjectConfig::getPendingChangeSummary().
create() Twig function. (#18376)craft\helpers\ProjectConfig::pathDepth().craft\services\Fields::deleteLayout() and deleteLayoutById() now have $hardDelete arguments.craft\services\ProjectConfig::getPendingChangeSummary().entrify/global-set command. (#18650)craft\fields\data\JsonData objects from Twig. (#18656)Fixed moderate-severity information disclosure vulnerabilities. (GHSA-gj2p-p9m4-c8gw, GHSA-33m5-hqp9-97pw)
craft\controllers\ElementIndexesController::$fieldLayouts.craft\services\ElementSources::getTableAttributes() now has a $fieldLayouts argument.aria-activedescendant, aria-flowto, and aria-owns attributes weren’t getting namespaced by {% namespace %} tags. (#18577)enabled values were being treated as enabled. (#18572)on EntryInterface) rather than a specific type name. (#18588)loginPath, logoutPath, setPasswordPath, or verifyEmailPath config settings were set to a callable that called the sites service. (#18605)Added craft\helpers\DateTimeHelper::testTimeToSeconds().
craft\helpers\DateTimeHelper::testTimeToSeconds().utils/fix-field-layout-uids command. (#18516)craft\filters\SiteFilterTrait.authorGroup params with and or not operators wasn’t working properly. (#18551)gc command, if a Matrix field had been converted to an Addresses or Content Block field. (#18549)Updated @simplewebauthn/browser to 13.3.0.
craft\web\AssetManager::$cacheSourcePaths disabled. (#18536)craft\fields\data\LinkData::getUrl() was returning the URL suffix rather than an empty string, if the rendered base URL was an empty string.craft\web\AssetManager::$cacheSourcePaths disabled. (#18536)craft\fields\data\LinkData::getUrl() was returning the URL suffix rather than an empty string, if the rendered base URL was an empty string.Fixed moderate-severity SSRF vulnerabilities. (GHSA-3m9m-24vh-39wx, GHSA-95wr-3f2v-v2wh)
craft\filters\IpRateLimitIdentity. (#18510)craft\helpers\App::resourcePathByUri().users/suspend-user and users/unsuspend-user actions required that the logged-in user have control panel access. (#18485)width and height attributes weren’t getting them set as expected.target="_blank" added to them. (#18500)resave commands. (#18453)craft\helpers\UrlHelper::cpReferralUrl() was returning the referrer URL even if it had the same URI as the current page. (#18483)Fixed low-severity information disclosure vulnerabilities. (GHSA-44px-qjjc-xrhq, GHSA-vgjg-248p-rfm2, GHSA-x76w-8c62-48mg)
PDO::MYSQL_ATTR_MULTI_STATEMENTS attribute is no longer set by default for database connections. (#18474)craft\elements\Entry::canMove().Fixed a high-severity RCE vulnerability. (GHSA-2fph-6v5w-89hh)
PDO::MYSQL_ATTR_MULTI_STATEMENTS attribute is now set to false by default for database connections.searchindex and searchindexqueue rows weren’t being deleted when an element was deleted for a site. (#18394)craft\helpers\App::parseEnv() was returning null instad of an empty string, when an environment variable name was passed in, which was set to an empty string.Fixed a high-severity permission escalation vulnerability. (GHSA-cc7p-2j3x-x7xf)
craft\services\Tokens::getRemainingTokenUsages().craft\web\Request::getTokenRoute().Fixed moderate-severity RCE vulnerabilities. (GHSA-4484-8v2f-5748, GHSA-qx2q-q59v-wf3j)
nb locale is now treated as a fallback for no on environments where no isn’t supported. (#18431)on/off and yes/no. (#18441)craft\helpers\Typecast. (#18426)App::normalizeBooleanValue().craft\events\ExecuteGqlQueryEvent::$cacheDuration. (#18442)craft\events\ExecuteGqlQueryEvent::$cacheTags. (#18442)craft\web\Request::getWantsImage().craft\web\Request::getWantsJson().craft\web\Request::wants().brokenImagePath config setting for Chrome. (#18438)0.slug columns referenced in element queries’ select, where, or orderBy expressions now explicitly resolve to elements_sites.slug.
slug columns referenced in element queries’ select, where, or orderBy expressions now explicitly resolve to elements_sites.slug. (#18416)craft\helpers\App::parseBooleanEnv() wasn’t handling false values properly. (#18418)DECIMAL field values with 0 precision weren’t gettnig typecasted properly in element queries.Fixed a high-severity RCE vulnerability. (GHSA-fp5j-j7j4-mcxc)
[!WARNING]
Relational condition rules’ element ID templates are now rendered in a sandboxed Twig environment, whenenableTwigSandboxis enabled.
craft\helpers\ElementHelper::cleanseQueryCriteria().Element edit pages no longer redirect to their referral URL on save.
One column per quarter.