<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Javier Eguiluz</title>
    <description>The latest articles on DEV Community by Javier Eguiluz (@javiereguiluz).</description>
    <link>https://dev.to/javiereguiluz</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F149151%2F680f65e7-3fa6-45ee-a2c9-769d1f2472dc.png</url>
      <title>DEV Community: Javier Eguiluz</title>
      <link>https://dev.to/javiereguiluz</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/javiereguiluz"/>
    <language>en</language>
    <item>
      <title>New in EasyAdmin 5.10</title>
      <dc:creator>Javier Eguiluz</dc:creator>
      <pubDate>Wed, 11 Nov 2026 07:58:52 +0000</pubDate>
      <link>https://dev.to/javiereguiluz/new-in-easyadmin-510-4eae</link>
      <guid>https://dev.to/javiereguiluz/new-in-easyadmin-510-4eae</guid>
      <description>&lt;p&gt;&lt;a href="https://github.com/EasyCorp/EasyAdminBundle/releases/tag/v5.10.0" rel="noopener noreferrer"&gt;EasyAdmin 5.10&lt;/a&gt; is out with &lt;strong&gt;better permission checks on custom actions&lt;/strong&gt;, &lt;strong&gt;confirmation messages per entity&lt;/strong&gt;, &lt;strong&gt;badge styles per field&lt;/strong&gt; and some fixes for the &lt;a href="https://dev.to/javiereguiluz/easyadmin-is-getting-a-brand-new-design-122c"&gt;redesign introduced in EasyAdmin 5.9&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Better Custom Action Permissions
&lt;/h2&gt;

&lt;p&gt;EasyAdmin always checked permissions when running built-in actions (&lt;code&gt;edit&lt;/code&gt;, &lt;code&gt;delete&lt;/code&gt;, etc.). Custom actions were different because &lt;code&gt;setPermission()&lt;/code&gt; and &lt;code&gt;disable()&lt;/code&gt; only hid the actions, but didn't check the permissions. This was the documented behavior and not a security issue: you just had to add the permission check yourself in the custom actions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Before&lt;/strong&gt;, you had to define the permission in two places:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="k"&gt;use&lt;/span&gt; &lt;span class="nc"&gt;App&lt;/span&gt;\&lt;span class="nc"&gt;Entity&lt;/span&gt;\&lt;span class="nc"&gt;Order&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;use&lt;/span&gt; &lt;span class="nc"&gt;EasyCorp&lt;/span&gt;\&lt;span class="nc"&gt;Bundle&lt;/span&gt;\&lt;span class="nc"&gt;EasyAdminBundle&lt;/span&gt;\&lt;span class="nc"&gt;Attribute&lt;/span&gt;\&lt;span class="nc"&gt;AdminRoute&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;use&lt;/span&gt; &lt;span class="nc"&gt;EasyCorp&lt;/span&gt;\&lt;span class="nc"&gt;Bundle&lt;/span&gt;\&lt;span class="nc"&gt;EasyAdminBundle&lt;/span&gt;\&lt;span class="nc"&gt;Config&lt;/span&gt;\&lt;span class="nc"&gt;Action&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;use&lt;/span&gt; &lt;span class="nc"&gt;EasyCorp&lt;/span&gt;\&lt;span class="nc"&gt;Bundle&lt;/span&gt;\&lt;span class="nc"&gt;EasyAdminBundle&lt;/span&gt;\&lt;span class="nc"&gt;Config&lt;/span&gt;\&lt;span class="nc"&gt;Actions&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;use&lt;/span&gt; &lt;span class="nc"&gt;EasyCorp&lt;/span&gt;\&lt;span class="nc"&gt;Bundle&lt;/span&gt;\&lt;span class="nc"&gt;EasyAdminBundle&lt;/span&gt;\&lt;span class="nc"&gt;Config&lt;/span&gt;\&lt;span class="nc"&gt;Crud&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;use&lt;/span&gt; &lt;span class="nc"&gt;EasyCorp&lt;/span&gt;\&lt;span class="nc"&gt;Bundle&lt;/span&gt;\&lt;span class="nc"&gt;EasyAdminBundle&lt;/span&gt;\&lt;span class="nc"&gt;Controller&lt;/span&gt;\&lt;span class="nc"&gt;AbstractCrudController&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;use&lt;/span&gt; &lt;span class="nc"&gt;Symfony&lt;/span&gt;\&lt;span class="nc"&gt;Component&lt;/span&gt;\&lt;span class="nc"&gt;HttpFoundation&lt;/span&gt;\&lt;span class="nc"&gt;Response&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;OrderCrudController&lt;/span&gt; &lt;span class="k"&gt;extends&lt;/span&gt; &lt;span class="nc"&gt;AbstractCrudController&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;configureActions&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;Actions&lt;/span&gt; &lt;span class="nv"&gt;$actions&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Actions&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nv"&gt;$viewInvoice&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Action&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="k"&gt;new&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'viewInvoice'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'Invoice'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'fa fa-file-invoice'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;linkToCrudAction&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'renderInvoice'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nv"&gt;$actions&lt;/span&gt;
            &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;add&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;Crud&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="no"&gt;PAGE_DETAIL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$viewInvoice&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="c1"&gt;// this only hid the action in the UI...&lt;/span&gt;
            &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;setPermission&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'viewInvoice'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'ROLE_FINANCE'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="c1"&gt;#[AdminRoute('/{id}/invoice')]&lt;/span&gt;
    &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;renderInvoice&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;Order&lt;/span&gt; &lt;span class="nv"&gt;$order&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Response&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="c1"&gt;// ...so you had to also protect the action yourself&lt;/span&gt;
        &lt;span class="nv"&gt;$this&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;denyAccessUnlessGranted&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'ROLE_FINANCE'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

        &lt;span class="c1"&gt;// ...&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Now&lt;/strong&gt;, the permission defined in &lt;code&gt;configureActions()&lt;/code&gt; is all you need. If the action is disabled or the user doesn't have its permission, EasyAdmin &lt;strong&gt;hides the button and also returns a 403 error&lt;/strong&gt; when someone opens its URL directly:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="c1"&gt;#[AdminRoute('/{id}/invoice')]&lt;/span&gt;
&lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;renderInvoice&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;Order&lt;/span&gt; &lt;span class="nv"&gt;$order&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Response&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="c1"&gt;// no permission check needed here&lt;/span&gt;

    &lt;span class="c1"&gt;// ...&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This works for the actions that run a method of the same CRUD controller, which are the ones created with &lt;code&gt;linkToCrudAction()&lt;/code&gt; and the ones that use &lt;code&gt;linkToRoute()&lt;/code&gt; with a custom action route of that controller. &lt;strong&gt;You don't have to change your code&lt;/strong&gt;: the checks that you added inside those methods keep working, they are only redundant now.&lt;/p&gt;

&lt;h2&gt;
  
  
  Confirmation Messages That Depend on the Entity
&lt;/h2&gt;

&lt;p&gt;The &lt;code&gt;askConfirmation()&lt;/code&gt; method shows a confirmation modal before running an action. Until now, the confirmation was &lt;strong&gt;the same for every row&lt;/strong&gt;: you could enable it or not, and define one message for all entities.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="nv"&gt;$archive&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Action&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="k"&gt;new&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'archive'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'Archive'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;linkToCrudAction&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'archive'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;askConfirmation&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'Are you sure you want to archive this post?'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In EasyAdmin 5.10, thanks to a contribution by &lt;a href="https://github.com/phcorp" rel="noopener noreferrer"&gt;phcorp&lt;/a&gt;, &lt;code&gt;askConfirmation()&lt;/code&gt; also accepts &lt;strong&gt;a closure that receives the entity&lt;/strong&gt;, the same way action labels already do:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="k"&gt;use&lt;/span&gt; &lt;span class="nc"&gt;App&lt;/span&gt;\&lt;span class="nc"&gt;Entity&lt;/span&gt;\&lt;span class="nc"&gt;Post&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nv"&gt;$archive&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Action&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="k"&gt;new&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'archive'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'Archive'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;linkToCrudAction&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'archive'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;askConfirmation&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;static&lt;/span&gt; &lt;span class="k"&gt;fn&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;Post&lt;/span&gt; &lt;span class="nv"&gt;$post&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nv"&gt;$post&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;isPublished&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="nf"&gt;sprintf&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'Visitors will not see "%s" anymore.'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$post&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;getTitle&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;
    &lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The closure returns one of these values:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;true&lt;/code&gt;: shows the generic confirmation message;&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;false&lt;/code&gt;: runs the action without confirmation for this entity;&lt;/li&gt;
&lt;li&gt;a string or a &lt;code&gt;TranslatableInterface&lt;/code&gt; object: shows a custom message. These messages are translated and support the same placeholders as before (&lt;code&gt;%action_name%&lt;/code&gt;, &lt;code&gt;%entity_name%&lt;/code&gt; and &lt;code&gt;%entity_id%&lt;/code&gt;).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This solves two common needs: &lt;strong&gt;explain what the action does to that specific entity&lt;/strong&gt; ("Deleting this category also deletes its 12 posts.") and &lt;strong&gt;ask only when it matters&lt;/strong&gt; (drafts are archived right away, published posts ask first).&lt;/p&gt;

&lt;h2&gt;
  
  
  Badge Styles per Field
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/EasyCorp/EasyAdminBundle/releases/tag/v5.8.0" rel="noopener noreferrer"&gt;EasyAdmin 5.8&lt;/a&gt; redesigned badges and added &lt;code&gt;Crud::setBadgeVariant()&lt;/code&gt; to change the style of all the badges of a dashboard or a CRUD controller. But sometimes you want a different style &lt;strong&gt;only for one field&lt;/strong&gt;: for example, a &lt;code&gt;dot&lt;/code&gt; badge for the status and the default &lt;code&gt;light&lt;/code&gt; badges for everything else.&lt;/p&gt;

&lt;p&gt;That's why the fields that render badges now define their own &lt;code&gt;setBadgeVariant()&lt;/code&gt; method:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="k"&gt;use&lt;/span&gt; &lt;span class="nc"&gt;EasyCorp&lt;/span&gt;\&lt;span class="nc"&gt;Bundle&lt;/span&gt;\&lt;span class="nc"&gt;EasyAdminBundle&lt;/span&gt;\&lt;span class="nc"&gt;Field&lt;/span&gt;\&lt;span class="nc"&gt;ChoiceField&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;yield&lt;/span&gt; &lt;span class="nc"&gt;ChoiceField&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="k"&gt;new&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'status'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;renderAsBadges&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'draft'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="s1"&gt;'warning'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'published'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="s1"&gt;'success'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="c1"&gt;// possible values: 'light', 'solid', 'outline', 'dot'&lt;/span&gt;
    &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;setBadgeVariant&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'dot'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is the same index page &lt;strong&gt;before and after&lt;/strong&gt; using the dot badge variant only in the status field:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F22ohxovvzfigbp1zaa11.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F22ohxovvzfigbp1zaa11.jpg" alt="The same index page before and after using the dot badge variant in the status field" width="799" height="619"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The method is available in &lt;code&gt;AssociationField&lt;/code&gt;, &lt;code&gt;BooleanField&lt;/code&gt;, &lt;code&gt;ChoiceField&lt;/code&gt;, &lt;code&gt;CollectionField&lt;/code&gt;, &lt;code&gt;CurrencyField&lt;/code&gt;, &lt;code&gt;LanguageField&lt;/code&gt; and &lt;code&gt;LocaleField&lt;/code&gt;. It accepts a string or a case of the &lt;code&gt;BadgeVariant&lt;/code&gt; enum (e.g. &lt;code&gt;BadgeVariant::Dot&lt;/code&gt;). &lt;strong&gt;The field variant wins over the CRUD variant&lt;/strong&gt;; if you set none of them, badges use &lt;code&gt;light&lt;/code&gt; as before.&lt;/p&gt;

&lt;h2&gt;
  
  
  Flags That Look Good Everywhere
&lt;/h2&gt;

&lt;p&gt;Inside an EasyAdmin backend, flags have small rounded corners and a subtle outline, so flags with white areas (like the flags of Japan or Poland) don't blend into the background. But those styles lived in the CSS of EasyAdmin. If you used &lt;code&gt;&amp;lt;twig:ea:Flag&amp;gt;&lt;/code&gt; on other pages of your application, you got the raw flag and had to style it yourself.&lt;/p&gt;

&lt;p&gt;In EasyAdmin 5.10, &lt;strong&gt;the flag includes its own styles&lt;/strong&gt;, so it looks the same anywhere without loading any CSS file. There are also two new props, &lt;code&gt;radius&lt;/code&gt; and &lt;code&gt;bordered&lt;/code&gt;, to configure it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight twig"&gt;&lt;code&gt;{# rounded corners and outline (the default) #}
&lt;span class="nt"&gt;&amp;lt;twig:ea:Flag&lt;/span&gt; &lt;span class="na"&gt;countryCode&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"JP"&lt;/span&gt;&lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;

{# possible values: none, sm, md, lg, full #}
&lt;span class="nt"&gt;&amp;lt;twig:ea:Flag&lt;/span&gt; &lt;span class="na"&gt;countryCode&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"JP"&lt;/span&gt; &lt;span class="na"&gt;radius&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"md"&lt;/span&gt;&lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;

{# no outline #}
&lt;span class="nt"&gt;&amp;lt;twig:ea:Flag&lt;/span&gt; &lt;span class="na"&gt;countryCode&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"JP"&lt;/span&gt; &lt;span class="na"&gt;bordered&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"{{ false }}"&lt;/span&gt;&lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;

{# the original flag, without any style #}
&lt;span class="nt"&gt;&amp;lt;twig:ea:Flag&lt;/span&gt; &lt;span class="na"&gt;countryCode&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"JP"&lt;/span&gt; &lt;span class="na"&gt;radius&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"none"&lt;/span&gt; &lt;span class="na"&gt;bordered&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"{{ false }}"&lt;/span&gt;&lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  A Form Field Reference in the UI Kit
&lt;/h2&gt;

&lt;p&gt;The &lt;a href="https://dev.to/javiereguiluz/new-in-easyadmin-ui-kit-22ea"&gt;UI Kit&lt;/a&gt; is a set of pages inside your own dashboard to see the EasyAdmin components and try designs. In this version it adds a new page at &lt;code&gt;/admin/_ea_ui_kit/form_fields&lt;/code&gt; with &lt;strong&gt;a form that includes all the form fields that EasyAdmin supports natively&lt;/strong&gt;: text, editors, choices, dates, numbers, countries, collections, file uploads, etc.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flvvvdly0nfl3r9mho813.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flvvvdly0nfl3r9mho813.jpg" alt="The form field reference page of the UI Kit, with all the form fields of EasyAdmin grouped by type" width="800" height="2544"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The page is rendered inside your dashboard, so &lt;strong&gt;it uses your theme and your custom CSS&lt;/strong&gt;. If you change the design of your backend, you can check the result in all the fields on a single page, instead of visiting many CRUD forms. The buttons above the form show the fields with help messages, with validation errors or disabled.&lt;/p&gt;

&lt;p&gt;Like the rest of the UI Kit, this page is only available in debug mode, so it doesn't exist in production.&lt;/p&gt;

&lt;h2&gt;
  
  
  Improved Performance
&lt;/h2&gt;

&lt;p&gt;Most applications that use EasyAdmin are not only a backend: they also have a public website, an API, etc. However, EasyAdmin was building many of its own services &lt;strong&gt;on every request of the application&lt;/strong&gt;, even on pages that have nothing to do with the backend. The reason is that Symfony creates the event listeners and the argument value resolvers before knowing if they are needed, and ours depended on factories, registries and the route generator.&lt;/p&gt;

&lt;p&gt;In EasyAdmin 5.10, the admin route subscriber receives a single service locator and only asks for its services &lt;strong&gt;after it knows that the request is an EasyAdmin one&lt;/strong&gt;. The two argument resolvers also have a lower priority, so Symfony resolves the services injected in your controllers before reaching them. You don't have to do anything to get this improvement.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Support EasyAdmin development:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;⭐ &lt;a href="https://easycorp.io/pro" rel="noopener noreferrer"&gt;Upgrade to EasyAdmin Pro&lt;/a&gt; for advanced features like Audit Log and Content Lock&lt;br&gt;
❤️ &lt;a href="https://github.com/sponsors/javiereguiluz" rel="noopener noreferrer"&gt;Become a sponsor&lt;/a&gt; if EasyAdmin helps your company ship faster&lt;/p&gt;

</description>
      <category>easyadmin</category>
      <category>symfony</category>
      <category>php</category>
    </item>
    <item>
      <title>The New EasyAdmin Design: Make It Yours</title>
      <dc:creator>Javier Eguiluz</dc:creator>
      <pubDate>Thu, 05 Nov 2026 08:10:16 +0000</pubDate>
      <link>https://dev.to/javiereguiluz/the-new-easyadmin-design-make-it-yours-4lc4</link>
      <guid>https://dev.to/javiereguiluz/the-new-easyadmin-design-make-it-yours-4lc4</guid>
      <description>&lt;p&gt;In &lt;a href="https://dev.to/javiereguiluz/easyadmin-is-getting-a-brand-new-design-122c"&gt;the previous post&lt;/a&gt; we showed the new EasyAdmin design that's coming soon. It looks good on any backend, but it's a generic design and your backend should look like your brand, product or company.&lt;/p&gt;

&lt;p&gt;With the new version, you can change most of the design with a few lines of PHP:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="kn"&gt;namespace&lt;/span&gt; &lt;span class="nn"&gt;App\Controller\Admin&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kn"&gt;use&lt;/span&gt; &lt;span class="nc"&gt;EasyCorp\Bundle\EasyAdminBundle\Attribute\AdminDashboard&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kn"&gt;use&lt;/span&gt; &lt;span class="nc"&gt;EasyCorp\Bundle\EasyAdminBundle\Config\Dashboard&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kn"&gt;use&lt;/span&gt; &lt;span class="nc"&gt;EasyCorp\Bundle\EasyAdminBundle\Config\Option\Font&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kn"&gt;use&lt;/span&gt; &lt;span class="nc"&gt;EasyCorp\Bundle\EasyAdminBundle\Config\Theme&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kn"&gt;use&lt;/span&gt; &lt;span class="nc"&gt;EasyCorp\Bundle\EasyAdminBundle\Controller\AbstractDashboardController&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="na"&gt;#[AdminDashboard(routePath: '/admin', routeName: 'admin')]&lt;/span&gt;
&lt;span class="kd"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;DashboardController&lt;/span&gt; &lt;span class="kd"&gt;extends&lt;/span&gt; &lt;span class="nc"&gt;AbstractDashboardController&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;configureDashboard&lt;/span&gt;&lt;span class="p"&gt;():&lt;/span&gt; &lt;span class="kt"&gt;Dashboard&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nc"&gt;Dashboard&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="k"&gt;new&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
            &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;setTitle&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'Plant Shop'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;setTheme&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;Theme&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="k"&gt;new&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
                &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;primaryColor&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'emerald'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;dark&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'teal'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
                &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;grays&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'stone'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;dark&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'zinc'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
                &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;radius&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'lg'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
                &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;spacing&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'sm'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
                &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;font&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;base&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Font&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nc"&gt;IbmPlexSans&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;monospace&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Font&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nc"&gt;JetBrainsMono&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;That's all. No CSS, no build step and no templates to override.&lt;/strong&gt; This is the result:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbl4132tbacg2vb709iuy.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbl4132tbacg2vb709iuy.jpg" alt="Plant Shop with the theme of the previous example: green color, warm grays, round corners and the IBM Plex Sans font" width="800" height="509"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Colors
&lt;/h2&gt;

&lt;p&gt;The theme API has been around since EasyAdmin 5.4. The new version adds the &lt;a href="https://tailwindcss.com/docs/colors" rel="noopener noreferrer"&gt;18 predefined colors&lt;/a&gt; from TailwindCSS that work well in both light and dark mode:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="c1"&gt;// neutral (black), red, orange, amber, yellow, lime, green,&lt;/span&gt;
&lt;span class="c1"&gt;// emerald, teal, cyan, sky, blue, indigo, violet, purple,&lt;/span&gt;
&lt;span class="c1"&gt;// fuchsia, pink, rose&lt;/span&gt;
&lt;span class="nc"&gt;Theme&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="k"&gt;new&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;primaryColor&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'indigo'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can also use your exact brand color, with an optional version for dark mode:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="nc"&gt;Theme&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="k"&gt;new&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;primaryColor&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'#15803d'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;dark&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'#22c55e'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Predefined colors include their own text color. For custom colors, EasyAdmin picks black or white, whichever is easier to read:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fevp4twswexn86j7gh8w9.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fevp4twswexn86j7gh8w9.jpg" alt="The same interface elements with two predefined colors and two custom colors, each one with readable text on top" width="800" height="793"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Fonts
&lt;/h2&gt;

&lt;p&gt;This is &lt;strong&gt;the big new theming feature&lt;/strong&gt;. Few things change the personality of an application as much as its font, and now it only takes one method:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="c1"&gt;// pick one of the fonts included by default:&lt;/span&gt;
&lt;span class="c1"&gt;// Inter, IbmPlexSans, Rubik and AtkinsonHyperlegibleNext&lt;/span&gt;
&lt;span class="nc"&gt;Theme&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="k"&gt;new&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;font&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;base&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Font&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nc"&gt;Rubik&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="c1"&gt;// you can also use the default font of the operating system&lt;/span&gt;
&lt;span class="nc"&gt;Theme&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="k"&gt;new&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;font&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;base&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Font&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nc"&gt;System&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;monospace&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Font&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nc"&gt;System&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="c1"&gt;// or any font from Google Fonts&lt;/span&gt;
&lt;span class="nc"&gt;Theme&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="k"&gt;new&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;font&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;base&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'Lexend'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;monospace&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'Fira Code'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;EasyAdmin now includes four ready-to-use fonts: &lt;a href="https://fonts.google.com/specimen/Inter" rel="noopener noreferrer"&gt;Inter&lt;/a&gt;, &lt;a href="https://fonts.google.com/specimen/IBM+Plex+Sans" rel="noopener noreferrer"&gt;IBM Plex Sans&lt;/a&gt;, &lt;a href="https://fonts.google.com/specimen/Rubik" rel="noopener noreferrer"&gt;Rubik&lt;/a&gt; and &lt;a href="https://fonts.google.com/specimen/Atkinson+Hyperlegible+Next" rel="noopener noreferrer"&gt;Atkinson Hyperlegible Next&lt;/a&gt; (designed for low-vision readers). All of them work well in professional backends, but they're different enough to give your backend its own personality.&lt;/p&gt;

&lt;p&gt;The included fonts are &lt;strong&gt;served by your own application&lt;/strong&gt;, so browsers don't make requests to other websites. Google Fonts are loaded from &lt;a href="https://fonts.bunny.net" rel="noopener noreferrer"&gt;Bunny Fonts&lt;/a&gt;, a mirror that doesn't track your users.&lt;/p&gt;

&lt;p&gt;This is the same page title and table row using four different fonts:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvthor3mcwo8l405u3c7u.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvthor3mcwo8l405u3c7u.jpg" alt="The same page title and table row using four different fonts" width="800" height="828"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Corners, Spacing and Grays
&lt;/h2&gt;

&lt;p&gt;Three more options change the feel of the entire backend:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="nc"&gt;Theme&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="k"&gt;new&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="c1"&gt;// used in buttons, badges, form inputs, etc.&lt;/span&gt;
    &lt;span class="c1"&gt;// values: 'none' (looks technical), 'xs', 'sm', 'md', 'lg', 'xl' (looks friendly)&lt;/span&gt;
    &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;radius&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'xl'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="c1"&gt;// changes both the margin and padding of all elements on the interface&lt;/span&gt;
    &lt;span class="c1"&gt;// values: 'xs', 'sm', 'md', 'lg', 'xl'&lt;/span&gt;
    &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;spacing&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'xs'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="c1"&gt;// same as Tailwind gray colors: https://tailwindcss.com/docs/colors&lt;/span&gt;
    &lt;span class="c1"&gt;// values: neutral, stone, zinc, gray, slate, mauve, olive, mist, taupe&lt;/span&gt;
    &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;grays&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'stone'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is the same backend with square corners and with very round corners:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fwismwidsaoa64q97fmuk.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fwismwidsaoa64q97fmuk.jpg" alt="The same interface with square corners and with very round corners" width="800" height="950"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This is the same table with compact spacing and with generous spacing:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzflo7pe9z4ajwuk0fmar.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzflo7pe9z4ajwuk0fmar.jpg" alt="The same table with compact spacing and with generous spacing" width="800" height="580"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Don't underestimate the grays. Most of the screen is gray (backgrounds, borders and secondary text), so this option changes the feel of your backend more than you'd expect.&lt;/p&gt;

&lt;h2&gt;
  
  
  Icons
&lt;/h2&gt;

&lt;p&gt;Icons aren't part of the theme config, but if you want a different look, changing them helps a lot. EasyAdmin uses &lt;a href="https://fontawesome.com" rel="noopener noreferrer"&gt;FontAwesome&lt;/a&gt; by default, a great icon set that works without any setup. Most screenshots of these posts use &lt;a href="https://lucide.dev" rel="noopener noreferrer"&gt;Lucide&lt;/a&gt; instead. This is the same menu with three popular icon sets:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4asrtjoyma0k350n9i93.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4asrtjoyma0k350n9i93.jpg" alt="The same menu with FontAwesome, Lucide and Material Symbols icons" width="800" height="499"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To use a different icon set, first install &lt;a href="https://symfony.com/bundles/ux-icons/current/index.html" rel="noopener noreferrer"&gt;Symfony UX Icons&lt;/a&gt;. The HTTP client lets it download the icons:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;composer require symfony/ux-icons symfony/http-client
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then, add the prefix of the icon set to your dashboard. You can find all the icon sets and their prefixes on &lt;a href="https://ux.symfony.com/icons" rel="noopener noreferrer"&gt;ux.symfony.com/icons&lt;/a&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;configureAssets&lt;/span&gt;&lt;span class="p"&gt;():&lt;/span&gt; &lt;span class="kt"&gt;Assets&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nc"&gt;Assets&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="k"&gt;new&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;useCustomIconSet&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'lucide'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Each icon set uses its own names, so you also need to update the icons of your menus, actions, fields, etc.:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="c1"&gt;// before (FontAwesome)&lt;/span&gt;
&lt;span class="nc"&gt;MenuItem&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;linkTo&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;UserCrudController&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="n"&gt;class&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'Users'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'fa fa-users'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="c1"&gt;// after (e.g. Lucide)&lt;/span&gt;
&lt;span class="nc"&gt;MenuItem&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;linkTo&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;UserCrudController&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="n"&gt;class&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'Users'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'users'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Finally, make sure that the icons are available in production. With this config, Symfony UX Icons saves each icon in &lt;code&gt;assets/icons/&lt;/code&gt; the first time it's displayed in your development environment, and you only have to commit those files:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="c1"&gt;# config/packages/ux_icons.yaml&lt;/span&gt;
&lt;span class="na"&gt;when@dev&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;ux_icons&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
        &lt;span class="na"&gt;iconify&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
            &lt;span class="na"&gt;auto_lock&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  One Backend, Many Personalities
&lt;/h2&gt;

&lt;p&gt;Let's put it all together to show some real examples of how you can give your backend a distinct personality with these design options.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;(1)&lt;/strong&gt; Backend with a look &lt;strong&gt;inspired by Google&lt;/strong&gt;: Google Sans font, blue color, neutral grays and Material Symbols icons.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ff5oajblfz4g3h0oqbd5z.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ff5oajblfz4g3h0oqbd5z.jpg" alt="Plant Shop with a look inspired by Google: Google Sans font, blue color, neutral grays and Material Symbols icons" width="800" height="509"&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="nc"&gt;Theme&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="k"&gt;new&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;primaryColor&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'#0b57d0'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;dark&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'#a8c7fa'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;grays&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'neutral'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;radius&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'xl'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;font&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;base&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'Google Sans'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;(2)&lt;/strong&gt; Backend with a look &lt;strong&gt;inspired by IBM Carbon&lt;/strong&gt;: IBM Plex Sans font, blue color, square corners and Carbon icons.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1fu0pufax6lzqbs1wdzd.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1fu0pufax6lzqbs1wdzd.jpg" alt="Plant Shop with a look inspired by IBM Carbon: IBM Plex Sans font, blue color, square corners and Carbon icons" width="800" height="509"&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="nc"&gt;Theme&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="k"&gt;new&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;primaryColor&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'#0f62fe'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;grays&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'gray'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;radius&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'none'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;spacing&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'sm'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;font&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;base&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Font&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nc"&gt;IbmPlexSans&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;(3)&lt;/strong&gt; Backend with an &lt;strong&gt;elegant&lt;/strong&gt; personality: a violet color, tinted grays and Phosphor Duotone icons (shown in dark mode).&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fk22973ohhjwccnkt5bxg.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fk22973ohhjwccnkt5bxg.jpg" alt="Plant Shop in dark mode with a violet color, tinted grays and Phosphor Duotone icons" width="800" height="509"&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="nc"&gt;Theme&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="k"&gt;new&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;primaryColor&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'violet'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;grays&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'mauve'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;radius&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'lg'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;(4)&lt;/strong&gt; Backend with an &lt;strong&gt;accessibility focus&lt;/strong&gt;: orange color, generous spacing, a font designed for low-vision readers and FontAwesome icons.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7xz3qx7y7xvoou29y37r.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7xz3qx7y7xvoou29y37r.jpg" alt="Plant Shop with an orange color, a font designed for low-vision readers and FontAwesome icons" width="800" height="509"&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="nc"&gt;Theme&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="k"&gt;new&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;primaryColor&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'orange'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;spacing&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'lg'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;font&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;base&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Font&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nc"&gt;AtkinsonHyperlegibleNext&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you build backends for clients, each one can get a backend that looks like their own product with a few lines of PHP.&lt;/p&gt;

&lt;h2&gt;
  
  
  The UI Kit
&lt;/h2&gt;

&lt;p&gt;You don't have to guess how a color or a font will look. EasyAdmin &lt;a href="https://dev.to/javiereguiluz/new-in-easyadmin-ui-kit-22ea"&gt;includes a UI Kit&lt;/a&gt;, a set of pages inside your own dashboard, available at &lt;code&gt;/admin/_ea_ui_kit&lt;/code&gt; in your development environment. In the new version, you can try the predefined colors and fonts there and copy the PHP code of your selection.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fs09ztf7tze1y5va8szqa.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fs09ztf7tze1y5va8szqa.gif" alt="The UI Kit showing a color picker and the PHP code of the selected theme" width="800" height="549"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It also shows all the HTML elements and Twig components with their code, using your theme and your CSS. It only exists in debug mode, so it never reaches production.&lt;/p&gt;

&lt;h2&gt;
  
  
  When You Need More
&lt;/h2&gt;

&lt;p&gt;The theme covers most cases, but you can go further. Each level gives you more control:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The theme&lt;/strong&gt;: a few options in PHP change the entire backend&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CSS variables&lt;/strong&gt;: change a specific value, such as the color of the sidebar&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Your own CSS&lt;/strong&gt;: change the style of anything&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Twig templates&lt;/strong&gt;: change the HTML&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Read the &lt;a href="https://symfony.com/bundles/EasyAdminBundle/current/design.html" rel="noopener noreferrer"&gt;design chapter of the EasyAdmin docs&lt;/a&gt; to learn more about each level.&lt;/p&gt;

&lt;p&gt;Your own &lt;a href="https://symfony.com/bundles/EasyAdminBundle/current/dashboards.html#content-page-template" rel="noopener noreferrer"&gt;custom backend pages&lt;/a&gt; can look just as good. Extend this template and your contents get the new typography without any CSS:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight twig"&gt;&lt;code&gt;&lt;span class="cp"&gt;{%&lt;/span&gt; &lt;span class="k"&gt;extends&lt;/span&gt; &lt;span class="s1"&gt;'@EasyAdmin/page/content.html.twig'&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then use the same components as the rest of the backend, which follow your theme:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight twig"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;twig:ea:Button&lt;/span&gt; &lt;span class="na"&gt;color=&lt;/span&gt;&lt;span class="s"&gt;"primary"&lt;/span&gt; &lt;span class="na"&gt;icon=&lt;/span&gt;&lt;span class="s"&gt;"fa fa-check"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Save changes&lt;span class="nt"&gt;&amp;lt;/twig:ea:Button&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;twig:ea:Badge&lt;/span&gt; &lt;span class="na"&gt;color=&lt;/span&gt;&lt;span class="s"&gt;"success"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Active&lt;span class="nt"&gt;&amp;lt;/twig:ea:Badge&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  EasyAdmin Pro
&lt;/h2&gt;

&lt;p&gt;Everything in this post is part of the free and open source EasyAdmin, and it will stay that way. If your company also needs more advanced features, take a look at &lt;a href="https://easycorp.io/pro" rel="noopener noreferrer"&gt;EasyAdmin Pro&lt;/a&gt;, a paid extension that you install next to EasyAdmin:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;🕵️ &lt;strong&gt;Audit Log&lt;/strong&gt;: see who changed your data, when, and what the previous values were&lt;/li&gt;
&lt;li&gt;🔒 &lt;strong&gt;Content Lock&lt;/strong&gt;: show who's editing a record and keep others from overwriting their work&lt;/li&gt;
&lt;li&gt;📬 &lt;strong&gt;Messenger Inspector&lt;/strong&gt;: track background jobs and investigate failures from your backend&lt;/li&gt;
&lt;li&gt;📝 &lt;strong&gt;Markdown Editor Field&lt;/strong&gt;: write Markdown with a formatting toolbar and live preview&lt;/li&gt;
&lt;li&gt;More new features are in development&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Coming Soon
&lt;/h2&gt;

&lt;p&gt;The new design is coming in the next EasyAdmin release. To get notified, &lt;a href="https://github.com/EasyCorp/EasyAdminBundle" rel="noopener noreferrer"&gt;watch the EasyAdmin repository on GitHub&lt;/a&gt; or follow me here on dev.to.&lt;/p&gt;

&lt;p&gt;When it's out, update EasyAdmin, open &lt;code&gt;/admin/_ea_ui_kit&lt;/code&gt; and &lt;strong&gt;find the look of your backend in five minutes&lt;/strong&gt;. We'd love to see what you build with it! 🎨&lt;/p&gt;




&lt;p&gt;✨ If you like this redesign and want to see more work like it, consider &lt;a href="https://github.com/sponsors/javiereguiluz" rel="noopener noreferrer"&gt;sponsoring the EasyAdmin project&lt;/a&gt; 🙌💡&lt;/p&gt;

</description>
      <category>easyadmin</category>
      <category>symfony</category>
      <category>php</category>
      <category>design</category>
    </item>
    <item>
      <title>EasyAdmin Is Getting a Brand New Design</title>
      <dc:creator>Javier Eguiluz</dc:creator>
      <pubDate>Wed, 04 Nov 2026 08:06:56 +0000</pubDate>
      <link>https://dev.to/javiereguiluz/easyadmin-is-getting-a-brand-new-design-122c</link>
      <guid>https://dev.to/javiereguiluz/easyadmin-is-getting-a-brand-new-design-122c</guid>
      <description>&lt;p&gt;EasyAdmin recently passed &lt;a href="https://packagist.org/packages/easycorp/easyadmin-bundle/stats" rel="noopener noreferrer"&gt;20 million downloads&lt;/a&gt;, and to celebrate it we've been working on &lt;strong&gt;a big redesign&lt;/strong&gt;. Don't worry: your users won't get lost, because all pages keep the same structure. It just looks better now.&lt;/p&gt;

&lt;p&gt;Here's a first look. This is how a backend looks by default &lt;strong&gt;now&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Focnrn6xl691orxn15sn6.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Focnrn6xl691orxn15sn6.jpg" alt="The Plant Shop backend with the current design of EasyAdmin" width="800" height="527"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And this is how the exact same backend will look in the &lt;strong&gt;next EasyAdmin version&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F75arhmwkv1b9upbhbsic.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F75arhmwkv1b9upbhbsic.jpg" alt="The Plant Shop backend with the new design of EasyAdmin" width="800" height="527"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A closer comparison between both:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fg7hxv9jt71njc0v2qx5t.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fg7hxv9jt71njc0v2qx5t.jpg" alt="The title and first rows of a table in the current design and in the new one" width="800" height="666"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;All the screenshots in this post show the same application with the same data, using the default design of each version. &lt;strong&gt;We didn't customize anything&lt;/strong&gt; yet. The &lt;a href="https://dev.to/javiereguiluz/the-new-easyadmin-design-make-it-yours-4lc4"&gt;next post&lt;/a&gt; in this series shows a full customization example.&lt;/p&gt;

&lt;h2&gt;
  
  
  New Default Look
&lt;/h2&gt;

&lt;p&gt;Before, backends looked blue by default: blue gray palette and blue/indigo accent color. Now, backends use a neutral gray palette and accent color, which makes it less opinionated. The new design also uses less color, so your data and your main actions stand out more:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0zryrnbl8gauqhtjdzfo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0zryrnbl8gauqhtjdzfo.png" alt="Two mockups showing the difference of the index page in the current design and in the new one" width="800" height="314"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This is only the default, though. You can change all the colors, fonts and spacing with a few config options.&lt;/p&gt;

&lt;p&gt;The &lt;strong&gt;app shell&lt;/strong&gt; has changed too. Your content now lives in its own panel, with a thin border and a small margin around it, and the sidebar blends with the background. It's a small change, but it makes your backend look like a modern application instead of a set of web pages:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0r55txtoth93ea46wsdy.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0r55txtoth93ea46wsdy.jpg" alt="A closer look at the border and the margin of the new content panel" width="800" height="1041"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We've also redesigned the handles that expand and collapse the sidebar and the content. The old narrow vertical line was hard to click. The new handles sit in the middle of the page and have a large invisible click area. Resizing is animated too.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0mtq09flvoveuvpdd7i2.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0mtq09flvoveuvpdd7i2.gif" alt="The handles on the edges of the content resize the sidebar and the content" width="760" height="368"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Tables
&lt;/h2&gt;

&lt;p&gt;People spend most of their time in a backend looking at tables, so we've polished the spacing, headers, badges, actions and search highlights.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmenveuthecpuqilbpehy.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmenveuthecpuqilbpehy.jpg" alt="Table rows with badges in the current design and in the new one" width="800" height="617"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Detail Pages
&lt;/h2&gt;

&lt;p&gt;Labels are now aligned to the start of the line, and all fields use the same order. Booleans no longer swap their label and value. Here's a close up detail:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4co95lvwd2vhrej4iq6h.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4co95lvwd2vhrej4iq6h.jpg" alt="A card of a detail page in the current design and in the new one" width="800" height="969"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Forms
&lt;/h2&gt;

&lt;p&gt;Form pages also have a new look, as shown in this mockup comparison:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzj37lybqhuz6j63tzfst.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzj37lybqhuz6j63tzfst.png" alt="Two mockups showing the difference of a form page in the current design and in the new one" width="800" height="314"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Fieldsets show the biggest design difference, but we have tweaked and polished many form parts. For example, read-only fields now look like plain text, so nobody tries to edit them, and validation errors no longer turn the field labels red. This is the same form in both versions:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fagpkm01tcvewf26uuzbv.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fagpkm01tcvewf26uuzbv.jpg" alt="An edit form in the current design and in the new one" width="800" height="1043"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Help Messages
&lt;/h2&gt;

&lt;p&gt;The help of a page used to be hidden behind a big, ugly icon, and you had to interact with it to read the message. Now the first line is always visible, and you can click a small button to read the rest.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgiwn0sm735eftcf2a5kp.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgiwn0sm735eftcf2a5kp.jpg" alt="The help of a page in a popover in the current design, and below the page title in the new one" width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Custom Pages
&lt;/h2&gt;

&lt;p&gt;Most backends need some custom pages: a report, a help page, instructions for your team. Until now, headings, lists, quotes and tables had almost no styles on those pages, so you had to write your own CSS.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;EasyAdmin now includes a stylesheet that makes your contents look good by default.&lt;/strong&gt; Extend the &lt;code&gt;@EasyAdmin/page/content.html.twig&lt;/code&gt; template, write regular HTML and you're done. See the difference:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4sqj8ylgel3im5umvt30.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4sqj8ylgel3im5umvt30.jpg" alt="The same custom page with almost no styles in the current design, and with good typography by default in the new one" width="800" height="519"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Components
&lt;/h2&gt;

&lt;p&gt;Everything else has a new look too: buttons (now with &lt;code&gt;solid&lt;/code&gt;, &lt;code&gt;outline&lt;/code&gt;, &lt;code&gt;light&lt;/code&gt;, &lt;code&gt;ghost&lt;/code&gt; and &lt;code&gt;link&lt;/code&gt; variants), dropdown menus, filters, alerts, tabs, modals and pagination.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1ycczcjp34jxw0c7uqs3.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1ycczcjp34jxw0c7uqs3.jpg" alt="The dropdown menu of table actions in the current design and in the new one" width="800" height="1113"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9sohaljevon8vhoflolm.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9sohaljevon8vhoflolm.jpg" alt="Flash messages in the current design and in the new one" width="800" height="352"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Animations
&lt;/h2&gt;

&lt;p&gt;We've reviewed all animations and interactions. For example, batch actions now slide into place instead of appearing suddenly:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqslye2yomqyf2dpeftiz.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqslye2yomqyf2dpeftiz.gif" alt="Selecting a table row makes the batch actions slide into place" width="799" height="217"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you've enabled reduced motion in your system, you won't see these animations.&lt;/p&gt;

&lt;h2&gt;
  
  
  Dark Mode and Small Screens
&lt;/h2&gt;

&lt;p&gt;Dark mode gets the same treatment:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fe6o7l9034obiolf5hu1n.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fe6o7l9034obiolf5hu1n.jpg" alt="The index page in dark mode in the current design and in the new one" width="800" height="1043"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And we've redesigned the page header on small screens:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0ug174bnyg76e4ehimb9.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0ug174bnyg76e4ehimb9.jpg" alt="The index page on a phone in the current design and in the new one" width="800" height="679"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What About Your Existing Backends?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;You won't need to change any PHP code to get the new look.&lt;/strong&gt; Update EasyAdmin when the new version is out, and that's it.&lt;/p&gt;

&lt;p&gt;If your backend has custom CSS, templates or pages, some of them may need small adjustments. You can also remove a lot of the custom CSS you added to make things look good, such as the styles of your text contents. We've written &lt;strong&gt;two upgrade guides&lt;/strong&gt; to help you:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;UPGRADE.md&lt;/code&gt; is for humans, with a concise overview of the changes that affect you.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;UPGRADE-AI.md&lt;/code&gt; is for AI coding agents, with a detailed list of the low-level changes. Paste the given prompt into Claude Code, Codex, Cursor or similar tools, and the agent will look for what needs updating in your backend.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you prefer to keep the current design, changing the look and feel of your backend is very simple. The following PHP config brings you very close to it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="kn"&gt;namespace&lt;/span&gt; &lt;span class="nn"&gt;App\Controller\Admin&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kn"&gt;use&lt;/span&gt; &lt;span class="nc"&gt;EasyCorp\Bundle\EasyAdminBundle\Attribute\AdminDashboard&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kn"&gt;use&lt;/span&gt; &lt;span class="nc"&gt;EasyCorp\Bundle\EasyAdminBundle\Config\Dashboard&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kn"&gt;use&lt;/span&gt; &lt;span class="nc"&gt;EasyCorp\Bundle\EasyAdminBundle\Config\Option\Font&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kn"&gt;use&lt;/span&gt; &lt;span class="nc"&gt;EasyCorp\Bundle\EasyAdminBundle\Config\Option\GrayScale&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kn"&gt;use&lt;/span&gt; &lt;span class="nc"&gt;EasyCorp\Bundle\EasyAdminBundle\Config\Theme&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kn"&gt;use&lt;/span&gt; &lt;span class="nc"&gt;EasyCorp\Bundle\EasyAdminBundle\Controller\AbstractDashboardController&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="na"&gt;#[AdminDashboard(routePath: '/admin', routeName: 'admin')]&lt;/span&gt;
&lt;span class="kd"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;DashboardController&lt;/span&gt; &lt;span class="kd"&gt;extends&lt;/span&gt; &lt;span class="nc"&gt;AbstractDashboardController&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;configureDashboard&lt;/span&gt;&lt;span class="p"&gt;():&lt;/span&gt; &lt;span class="kt"&gt;Dashboard&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nc"&gt;Dashboard&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="k"&gt;new&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
            &lt;span class="c1"&gt;// ...&lt;/span&gt;
            &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;setTheme&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;Theme&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="k"&gt;new&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
                &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;primaryColor&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'hsl(230, 61%, 58%)'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;dark&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'hsl(224, 84%, 49%)'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
                &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;grays&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;GrayScale&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="no"&gt;SLATE&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;dark&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;GrayScale&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="no"&gt;NEUTRAL&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
                &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;radius&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'xs'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
                &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;font&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;base&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Font&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nc"&gt;System&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;monospace&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Font&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nc"&gt;System&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="c1"&gt;// ...&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Coming Soon
&lt;/h2&gt;

&lt;p&gt;The new design is coming in the next EasyAdmin release. To get notified, &lt;a href="https://github.com/EasyCorp/EasyAdminBundle" rel="noopener noreferrer"&gt;watch the EasyAdmin repository on GitHub&lt;/a&gt; or follow me here on dev.to.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Everything you've seen in this post is just what EasyAdmin gives you by default.&lt;/strong&gt; In the &lt;a href="https://dev.to/javiereguiluz/the-new-easyadmin-design-make-it-yours-4lc4"&gt;next post&lt;/a&gt;, we'll change all of it: colors, fonts, corners, spacing... The same backend will look like a different product, with only a few lines of PHP.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Support EasyAdmin development:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;⭐ &lt;a href="https://easycorp.io/pro" rel="noopener noreferrer"&gt;Upgrade to EasyAdmin Pro&lt;/a&gt; for advanced features like Audit Log and Content Lock&lt;br&gt;
❤️ &lt;a href="https://github.com/sponsors/javiereguiluz" rel="noopener noreferrer"&gt;Become a sponsor&lt;/a&gt; if EasyAdmin helps your company ship faster&lt;/p&gt;

</description>
      <category>easyadmin</category>
      <category>symfony</category>
      <category>php</category>
      <category>webdev</category>
    </item>
    <item>
      <title>New in EasyAdmin 5.8</title>
      <dc:creator>Javier Eguiluz</dc:creator>
      <pubDate>Fri, 23 Oct 2026 06:01:44 +0000</pubDate>
      <link>https://dev.to/javiereguiluz/new-in-easyadmin-58-3cgh</link>
      <guid>https://dev.to/javiereguiluz/new-in-easyadmin-58-3cgh</guid>
      <description>&lt;p&gt;&lt;a href="https://github.com/EasyCorp/EasyAdminBundle/releases/tag/v5.8.0" rel="noopener noreferrer"&gt;EasyAdmin 5.8&lt;/a&gt; is out with &lt;strong&gt;redesigned badges&lt;/strong&gt; and &lt;strong&gt;automatic filter types for nested properties&lt;/strong&gt;. But first, a fun fact: this is the &lt;strong&gt;400th release of EasyAdmin&lt;/strong&gt; since we started the project in 2015. &lt;strong&gt;Thanks to everyone&lt;/strong&gt; who used, tested, reported and contributed during all these years!&lt;/p&gt;

&lt;h2&gt;
  
  
  Redesigned Badges
&lt;/h2&gt;

&lt;p&gt;Badges are everywhere in EasyAdmin backends: boolean values, statuses, tags, languages, etc. In EasyAdmin 5.8 they have a completely new design. They still look familiar, but &lt;strong&gt;they look much better&lt;/strong&gt; in your backends:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/EasyCorp/EasyAdminBundle/pull/7856" rel="noopener noreferrer"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fm3t16p43hymfyi2bmmxd.jpg" alt="The redesigned badge style in EasyAdmin 5.8" width="799" height="444"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;small&gt;Click to see a higher resolution image and a before/after comparison&lt;/small&gt;&lt;/p&gt;

&lt;p&gt;The &lt;code&gt;&amp;lt;twig:ea:Badge&amp;gt;&lt;/code&gt; component now separates the &lt;strong&gt;style&lt;/strong&gt; of the badge from its &lt;strong&gt;color&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The &lt;code&gt;variant&lt;/code&gt; prop sets the style: &lt;code&gt;light&lt;/code&gt; (the default), &lt;code&gt;solid&lt;/code&gt;, &lt;code&gt;outline&lt;/code&gt; or &lt;code&gt;dot&lt;/code&gt;. The default &lt;code&gt;light&lt;/code&gt; style is now lighter than before and includes a thin border.&lt;/li&gt;
&lt;li&gt;The new &lt;code&gt;color&lt;/code&gt; prop sets the color (&lt;code&gt;success&lt;/code&gt;, &lt;code&gt;danger&lt;/code&gt;, &lt;code&gt;warning&lt;/code&gt;, etc.). You can also use the new &lt;code&gt;BadgeColor&lt;/code&gt; enum for this.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight twig"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;twig:ea:Badge&lt;/span&gt; &lt;span class="na"&gt;color=&lt;/span&gt;&lt;span class="s"&gt;"success"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Paid&lt;span class="nt"&gt;&amp;lt;/twig:ea:Badge&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;twig:ea:Badge&lt;/span&gt; &lt;span class="na"&gt;variant=&lt;/span&gt;&lt;span class="s"&gt;"solid"&lt;/span&gt; &lt;span class="na"&gt;color=&lt;/span&gt;&lt;span class="s"&gt;"danger"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Overdue&lt;span class="nt"&gt;&amp;lt;/twig:ea:Badge&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;twig:ea:Badge&lt;/span&gt; &lt;span class="na"&gt;variant=&lt;/span&gt;&lt;span class="s"&gt;"dot"&lt;/span&gt; &lt;span class="na"&gt;color=&lt;/span&gt;&lt;span class="s"&gt;"warning"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Pending&lt;span class="nt"&gt;&amp;lt;/twig:ea:Badge&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you prefer a different style, you don't have to change your templates. Call the new &lt;code&gt;setBadgeVariant()&lt;/code&gt; method in your dashboard to change &lt;strong&gt;all the badges of the backend&lt;/strong&gt;, or in a CRUD controller to change only the badges of that controller:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="kn"&gt;use&lt;/span&gt; &lt;span class="nc"&gt;EasyCorp\Bundle\EasyAdminBundle\Config\Crud&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;DashboardController&lt;/span&gt; &lt;span class="kd"&gt;extends&lt;/span&gt; &lt;span class="nc"&gt;AbstractDashboardController&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="c1"&gt;// ...&lt;/span&gt;

    &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;configureCrud&lt;/span&gt;&lt;span class="p"&gt;():&lt;/span&gt; &lt;span class="kt"&gt;Crud&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nc"&gt;Crud&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="k"&gt;new&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
            &lt;span class="c1"&gt;// possible values: 'light' (default), 'solid', 'outline', 'dot'&lt;/span&gt;
            &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;setBadgeVariant&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'solid'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A badge that sets its own &lt;code&gt;variant&lt;/code&gt; prop keeps it, so you can still use a different style in a specific place.&lt;/p&gt;

&lt;p&gt;There are some other improvements too:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The new &lt;code&gt;dismissible&lt;/code&gt; prop adds a dismiss button to the badge;&lt;/li&gt;
&lt;li&gt;Icons, images (such as user avatars) and the &lt;code&gt;Flag&lt;/code&gt; component now fit nicely inside badges;&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;lg&lt;/code&gt; size of badges now works as expected.&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Before, you defined the color of badges with the &lt;code&gt;variant&lt;/code&gt; prop (e.g. &lt;code&gt;&amp;lt;twig:ea:Badge variant="success"&amp;gt;&lt;/code&gt;). This still works, but it's deprecated. Use &lt;code&gt;color="success"&lt;/code&gt; instead. If you customized the badge CSS variables, check the &lt;a href="https://github.com/EasyCorp/EasyAdminBundle/blob/5.x/UPGRADE.md" rel="noopener noreferrer"&gt;UPGRADE guide&lt;/a&gt; because some of them changed.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Filter Type Guessing for Nested Properties
&lt;/h2&gt;

&lt;p&gt;EasyAdmin already supported filters on the properties of associated entities and Doctrine embeddables using the dot syntax (&lt;code&gt;author.fullName&lt;/code&gt;). However, you had to create the filter yourself, because EasyAdmin only guessed the filter type of the properties of the entity itself.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Before&lt;/strong&gt;, you had to write this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;configureFilters&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;Filters&lt;/span&gt; &lt;span class="nv"&gt;$filters&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt; &lt;span class="kt"&gt;Filters&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nv"&gt;$filters&lt;/span&gt;
        &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;add&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;TextFilter&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="k"&gt;new&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'author.fullName'&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
        &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;add&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;TextFilter&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="k"&gt;new&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'author.address.country'&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Now&lt;/strong&gt;, EasyAdmin reads the Doctrine mapping of the nested property and guesses the filter type, exactly like it does for regular properties:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;configureFilters&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;Filters&lt;/span&gt; &lt;span class="nv"&gt;$filters&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt; &lt;span class="kt"&gt;Filters&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nv"&gt;$filters&lt;/span&gt;
        &lt;span class="c1"&gt;// 'author' is an association of the Book entity&lt;/span&gt;
        &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;add&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'author.fullName'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="c1"&gt;// 'address' is a Doctrine embeddable inside the Author entity&lt;/span&gt;
        &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;add&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'author.address.country'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You only need to create the filter explicitly when you want to use a different filter or customize its options.&lt;/p&gt;

&lt;p&gt;In addition, the date, numeric, text and comparison filters now read the mapping of the nested property too. For example, if &lt;code&gt;birthDate&lt;/code&gt; is a &lt;code&gt;date&lt;/code&gt; column, &lt;code&gt;DateTimeFilter::new('author.birthDate')&lt;/code&gt; now displays a date widget instead of a datetime one.&lt;/p&gt;

&lt;h2&gt;
  
  
  Behind the Scenes: a New Test Suite
&lt;/h2&gt;

&lt;p&gt;This change doesn't affect your applications at all, but it's a big change for the project: &lt;strong&gt;we completely revamped the EasyAdmin test suite&lt;/strong&gt;.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Plain PHPUnit 11&lt;/strong&gt;: we stopped using &lt;code&gt;simple-phpunit&lt;/code&gt; and the PHPUnit bridge. We were stuck on PHPUnit 9.6 and now we use PHPUnit 11 directly.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Foundry for fixtures&lt;/strong&gt;: before, tests used big generic Doctrine Fixtures shared by all tests. Now, every test starts with empty tables and creates only the data it needs using &lt;a href="https://github.com/zenstruck/foundry" rel="noopener noreferrer"&gt;Foundry&lt;/a&gt; factories. Combined with &lt;a href="https://github.com/dmaicher/doctrine-test-bundle" rel="noopener noreferrer"&gt;DAMA DoctrineTestBundle&lt;/a&gt;, which rolls back the database after each test.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Multiple databases&lt;/strong&gt;: the functional tests used to run only on SQLite. Now they also run on &lt;strong&gt;PostgreSQL, MySQL and MariaDB&lt;/strong&gt; in our CI. This already paid off: it found two bugs in &lt;code&gt;ArrayFilter&lt;/code&gt; that are fixed in this release.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you write tests for your Symfony applications, &lt;strong&gt;I recommend you to try Foundry&lt;/strong&gt;. Your tests will be much easier to read and maintain, because each test clearly shows the data it needs.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Support EasyAdmin development:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;⭐ &lt;a href="https://easycorp.io/pro" rel="noopener noreferrer"&gt;Upgrade to EasyAdmin Pro&lt;/a&gt; for advanced features like Audit Log and Content Lock&lt;br&gt;
❤️ &lt;a href="https://github.com/sponsors/javiereguiluz" rel="noopener noreferrer"&gt;Become a sponsor&lt;/a&gt; if EasyAdmin helps your company ship faster&lt;/p&gt;

</description>
      <category>easyadmin</category>
      <category>symfony</category>
      <category>php</category>
      <category>testing</category>
    </item>
    <item>
      <title>New in EasyAdmin: UI Kit</title>
      <dc:creator>Javier Eguiluz</dc:creator>
      <pubDate>Wed, 14 Oct 2026 08:41:28 +0000</pubDate>
      <link>https://dev.to/javiereguiluz/new-in-easyadmin-ui-kit-22ea</link>
      <guid>https://dev.to/javiereguiluz/new-in-easyadmin-ui-kit-22ea</guid>
      <description>&lt;p&gt;&lt;a href="https://github.com/EasyCorp/EasyAdminBundle/releases/tag/v5.7.0" rel="noopener noreferrer"&gt;EasyAdmin 5.7&lt;/a&gt; is out with a new development tool for everyone who creates &lt;strong&gt;custom pages and custom actions&lt;/strong&gt; in their backends: the &lt;strong&gt;UI Kit&lt;/strong&gt;. It lists all the Twig components included in EasyAdmin and, for each of them, it shows live examples, their source code and all their options.&lt;/p&gt;

&lt;p&gt;If you know tools like &lt;a href="https://storybook.js.org/" rel="noopener noreferrer"&gt;Storybook&lt;/a&gt;, the idea is similar. But you don't have to install, configure or run anything: the UI Kit is already part of EasyAdmin and it's rendered inside your own backend.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Problem: Which Components Exist?
&lt;/h2&gt;

&lt;p&gt;EasyAdmin builds its interface with &lt;a href="https://symfony.com/bundles/ux-twig-component/current/index.html" rel="noopener noreferrer"&gt;Twig components&lt;/a&gt; (&lt;code&gt;&amp;lt;twig:ea:Button&amp;gt;&lt;/code&gt;, &lt;code&gt;&amp;lt;twig:ea:Alert&amp;gt;&lt;/code&gt;, &lt;code&gt;&amp;lt;twig:ea:Modal&amp;gt;&lt;/code&gt;, etc.) and you can use them in your own templates too. The documentation &lt;a href="https://symfony.com/bundles/EasyAdminBundle/current/components.html" rel="noopener noreferrer"&gt;explains how to use them&lt;/a&gt; but we also wanted a &lt;strong&gt;visual guide&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Solution: a UI Kit Inside Your Backend
&lt;/h2&gt;

&lt;p&gt;When your application runs in debug mode, every dashboard now includes a new page at the &lt;code&gt;/_ea_ui_kit&lt;/code&gt; path (e.g. &lt;code&gt;https://example.com/admin/_ea_ui_kit&lt;/code&gt;). The easiest way to get there is the &lt;strong&gt;Symfony profiler&lt;/strong&gt;: open any page of your backend, click on the EasyAdmin panel and you'll see a direct link to the UI Kit in the &lt;strong&gt;Resources&lt;/strong&gt; section.&lt;/p&gt;

&lt;p&gt;The first page lists all the available components:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Faxo2h378xvzco7of2eo0.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Faxo2h378xvzco7of2eo0.jpg" alt="EasyAdmin UI Kit - List of components" width="800" height="538"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Click on any component to see its page, which includes lots of examples, the full API reference and all its sub-components.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftpuh1i7z48g7ikzm5lgn.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftpuh1i7z48g7ikzm5lgn.jpg" alt="EasyAdmin UI Kit - Detail page for the switch component" width="800" height="1372"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  You See What Your Users See
&lt;/h2&gt;

&lt;p&gt;This is my favorite part of the UI Kit: &lt;strong&gt;the examples are rendered in real time inside your own dashboard&lt;/strong&gt;, so they use your assets, your theme and all the design changes you made to your backend (custom colors, border radius, CSS overrides, etc.).&lt;/p&gt;

&lt;p&gt;You don't see how components look in a generic demo application, &lt;strong&gt;you see exactly how they will look in your backend&lt;/strong&gt; when you use them. If you changed the primary color or removed the rounded corners, the UI Kit reflects that.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; The UI Kit is a development tool, so it's only enabled in debug mode. In production, this feature and its URL don't even exist, so they don't impact performance in any way.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  A Refreshed Profiler Panel
&lt;/h2&gt;

&lt;p&gt;While working on this, we also refreshed the EasyAdmin panel of the Symfony profiler. It was designed for the old query string URLs, so with the new pretty admin URLs it showed very little information. Now it displays the route, the CRUD controller, entity, action and page (or the controller and method of custom admin routes), the list state (sort, filters, search query and page number) and the dashboard details, such as the title, locale, icon set and theme.&lt;/p&gt;

&lt;h2&gt;
  
  
  Always Use EasyAdmin Components
&lt;/h2&gt;

&lt;p&gt;There's another reason why we built the UI Kit. When you create a custom page or a custom action in your backend, &lt;strong&gt;always build it with EasyAdmin components&lt;/strong&gt;. Don't use Bootstrap classes directly and don't create your own HTML and CSS unless EasyAdmin doesn't provide a component for what you need yet.&lt;/p&gt;

&lt;p&gt;The reason is simple: when you use EasyAdmin components, &lt;strong&gt;your custom pages get better every time EasyAdmin improves its components&lt;/strong&gt;, and you don't have to do anything. Better design, better accessibility, dark mode, new options... you get all of that just by upgrading EasyAdmin. Your custom pages also look the same as the rest of your backend.&lt;/p&gt;

&lt;p&gt;The list of components is short today, but &lt;strong&gt;we're going to add many more components very soon&lt;/strong&gt;.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Support EasyAdmin development:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;⭐ &lt;a href="https://easycorp.io/pro" rel="noopener noreferrer"&gt;Upgrade to EasyAdmin Pro&lt;/a&gt; for advanced features like Audit Log and Content Lock&lt;br&gt;
❤️ &lt;a href="https://github.com/sponsors/javiereguiluz" rel="noopener noreferrer"&gt;Become a sponsor&lt;/a&gt; if EasyAdmin helps your company ship faster&lt;/p&gt;

</description>
      <category>easyadmin</category>
      <category>symfony</category>
      <category>twig</category>
      <category>php</category>
    </item>
    <item>
      <title>Introducing EasyAdmin Pro</title>
      <dc:creator>Javier Eguiluz</dc:creator>
      <pubDate>Mon, 21 Sep 2026 06:39:41 +0000</pubDate>
      <link>https://dev.to/javiereguiluz/introducing-easyadmin-pro-331o</link>
      <guid>https://dev.to/javiereguiluz/introducing-easyadmin-pro-331o</guid>
      <description>&lt;p&gt;We're introducing &lt;a href="https://easycorp.io/pro" rel="noopener noreferrer"&gt;EasyAdmin Pro&lt;/a&gt;, a &lt;strong&gt;paid extension to EasyAdmin&lt;/strong&gt; that adds some features needed by companies: audit logs, record locking, a dashboard for Symfony Messenger and more.&lt;/p&gt;

&lt;p&gt;But first, this is our promise to everyone who uses the free EasyAdmin version:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;We're NOT going to remove any existing feature&lt;/strong&gt; from the free version&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;We're NOT going to make any existing free feature worse&lt;/strong&gt; to force you to use EasyAdmin Pro&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;We're going to keep adding a ton of great features to the free version&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Nothing changes for free users: upgrade EasyAdmin as usual and enjoy the new features of each release.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Is EasyAdmin Pro
&lt;/h2&gt;

&lt;p&gt;EasyAdmin Pro is &lt;strong&gt;a second bundle that you install next to EasyAdmin&lt;/strong&gt;. It's a separate Composer package (&lt;code&gt;easycorp/easyadmin-pro-bundle&lt;/code&gt;) that requires the free bundle (&lt;code&gt;easycorp/easyadmin-bundle&lt;/code&gt;) and extends it. It's not a fork, it's not a different version of EasyAdmin and it doesn't replace anything. You keep your dashboards, your CRUD controllers and your fields exactly as they are, and the Pro bundle adds new features on top of them.&lt;/p&gt;

&lt;p&gt;The free bundle is open source (MIT license) and stays that way. The Pro bundle is commercial and its code is not public.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Does Pro change anything in the free bundle? No.&lt;/strong&gt; There's only one EasyAdmin bundle and its code is the same for everybody, with or without Pro. EasyAdmin Pro is built only with the public extension points of EasyAdmin, the same ones that you can use in your own applications (fields, field configurators, CRUD events, etc.). The free bundle has no hidden hooks for Pro, no license checks and no feature switched off, because there's nothing to switch off.&lt;/p&gt;

&lt;p&gt;EasyAdmin Pro works with EasyAdmin 4.x and 5.x, PHP 8.1 or higher and Symfony 5.4, 6.4, 7.x and 8.x. The assets are prebuilt, so you don't need any frontend tooling. The main features are disabled by default and you enable only the ones you need; so it adds no overhead to your projects.&lt;/p&gt;

&lt;h2&gt;
  
  
  Who Is It For
&lt;/h2&gt;

&lt;p&gt;EasyAdmin Pro is for &lt;strong&gt;companies that run their backends in production&lt;/strong&gt; with real teams behind them. Several people edit the same data at the same time, someone asks "who changed this price and when?", an auditor wants proof that nobody changed the records, and your background jobs fail at 3 AM without telling anyone.&lt;/p&gt;

&lt;p&gt;If your backend is a side project, a prototype or a small internal tool, &lt;strong&gt;open source EasyAdmin is all you need&lt;/strong&gt;, and that's perfectly fine. It will keep being that way.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's Inside
&lt;/h2&gt;

&lt;p&gt;The &lt;a href="https://easycorp.io/pro" rel="noopener noreferrer"&gt;EasyAdmin Pro page&lt;/a&gt; describes every feature in detail but this is what I like the most:&lt;/p&gt;

&lt;h3&gt;
  
  
  Content Lock
&lt;/h3&gt;

&lt;p&gt;When two people open the same record and both click on "Save", the second one silently overwrites the work of the first one. Content Lock fixes this: when someone is editing a record, other users can't see the edit form. Instead, they see a message explaining &lt;strong&gt;who is editing it and when they started&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;You enable it in the configuration and that's all: &lt;strong&gt;you don't write a single line of PHP code&lt;/strong&gt;. Locks stay alive while the form is open, they expire on their own when the user leaves, and privileged users can override them.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpoo3d4yzdruq21tp5hlk.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpoo3d4yzdruq21tp5hlk.webp" alt="Content Lock prevents uesrs from overwritting the work made by other users" width="800" height="460"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Audit Log
&lt;/h3&gt;

&lt;p&gt;Most audit logs are a database table with rows that say "Jane updated Product #42". Anyone with write access to that table can edit or delete rows, and nobody will ever know. That's good enough to debug a problem, but the best audit trails don't work that way.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-log-file-validation-intro.html" rel="noopener noreferrer"&gt;AWS CloudTrail&lt;/a&gt; hashes its log files and signs a digest of them every hour, and each digest includes the signature of the previous one. The &lt;a href="https://learn.microsoft.com/en-us/sql/relational-databases/security/ledger/ledger-overview" rel="noopener noreferrer"&gt;ledger feature&lt;/a&gt; of Azure SQL Database and SQL Server links blocks of hashes into a chain and stores its digests outside the database.&lt;/p&gt;

&lt;p&gt;EasyAdmin Pro brings that idea to your backend with a &lt;strong&gt;tamper-evident integrity chain&lt;/strong&gt;. Every entry is signed and linked to the previous one, signed checkpoints summarize the chain (and you can export them to write-once storage outside your database), and a verification command detects if any entry was altered, reordered, deleted or truncated.&lt;/p&gt;

&lt;p&gt;Each entry also stores &lt;strong&gt;a field-level diff of every change&lt;/strong&gt;: the old value, the new value, who made the change and from which IP address. It tracks the entities that you choose, and you can also record your own events (a data export, a user impersonation) with one method call.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7gti8lfxyr474e0dod1a.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7gti8lfxyr474e0dod1a.webp" alt="An audit log that is truly safe and cannot be tampered without leaving evidences" width="800" height="579"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Messenger Inspector
&lt;/h3&gt;

&lt;p&gt;When using Symfony Messenger, your messages go into a queue and you hope for the best. The Messenger Inspector from EasyAdmin Pro shows you, &lt;strong&gt;inside your backend&lt;/strong&gt;, which messages are queued, processing, succeeded, failed or being retried. You can open any message to inspect its envelope and &lt;strong&gt;retry or remove failed messages&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;It works with any transport (Doctrine, AMQP, Redis, Amazon SQS, etc.) and it's designed to stay out of the way: if the inspector fails to write its own data, the error is logged and your messages are still processed. An error in the inspector never breaks your application.&lt;/p&gt;

&lt;h3&gt;
  
  
  Markdown Editor Field
&lt;/h3&gt;

&lt;p&gt;A new field to edit Markdown contents with a &lt;strong&gt;formatting toolbar and a live preview&lt;/strong&gt;. The detail page renders the contents as HTML and the index page shows them in a modal. You use it like any other EasyAdmin field:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="kn"&gt;use&lt;/span&gt; &lt;span class="nc"&gt;EasyCorp\Bundle\EasyAdminProBundle\Field\MarkdownEditorField&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;configureFields&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;string&lt;/span&gt; &lt;span class="nv"&gt;$pageName&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt; &lt;span class="kt"&gt;iterable&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;yield&lt;/span&gt; &lt;span class="nc"&gt;MarkdownEditorField&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="k"&gt;new&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'description'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  More Features Are Coming
&lt;/h2&gt;

&lt;p&gt;EasyAdmin Pro is not a finished product but &lt;strong&gt;a growing set of features&lt;/strong&gt;. We'll keep adding new ones, and every feature released while your subscription is active is included at no extra cost.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to Get It
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;How is it sold?&lt;/strong&gt; As a subscription, monthly or annual, that you buy on the &lt;a href="https://easycorp.io/pro" rel="noopener noreferrer"&gt;EasyAdmin Pro page&lt;/a&gt;. You pay by card and you get an invoice with your company details for every payment. You can cancel anytime without penalties.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What does the license cover?&lt;/strong&gt; A single license per company/organization allows &lt;strong&gt;unlimited projects, unlimited developers and unlimited AI coding agents&lt;/strong&gt;. You don't count seats or projects.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;How do I install it?&lt;/strong&gt; With Composer, like any other Symfony bundle. When you subscribe, you get credentials for a private Composer repository that work in all your projects and CI pipelines. Then you run &lt;code&gt;composer require easycorp/easyadmin-pro-bundle&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Is support included?&lt;/strong&gt; Yes, by email and directly from the EasyAdmin maintainers.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The &lt;a href="https://easycorp.io/pro" rel="noopener noreferrer"&gt;EasyAdmin Pro page&lt;/a&gt; has the rest of the details.&lt;/p&gt;

&lt;h2&gt;
  
  
  EasyAdmin Pro Is a Good Thing for EasyAdmin Free
&lt;/h2&gt;

&lt;p&gt;I know what some of you are thinking, because it happened in so many projects: the paid version arrives, the free version slowly stops improving, then some features move behind the paywall and the free product gets a bit worse every year until you give up and pay. This is what they call &lt;strong&gt;enshittification&lt;/strong&gt; and &lt;strong&gt;that's not going to happen here.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I've been working on EasyAdmin since 2015. I'm still focused on making the free version of EasyAdmin &lt;strong&gt;the best admin generator in the industry&lt;/strong&gt;. The thing that limits how fast EasyAdmin improves was never the lack of ideas but the lack of hours. &lt;strong&gt;EasyAdmin Pro pays for those hours.&lt;/strong&gt; Every company that subscribes to Pro is paying for time that goes into the whole project, and a big part of that time goes to the open source bundle that everybody uses.&lt;/p&gt;

&lt;p&gt;And remember: no feature will be removed from free EasyAdmin, no feature will be made worse, and new free features will keep coming. &lt;strong&gt;Pro is not bad for Free. Pro will make Free better.&lt;/strong&gt;&lt;/p&gt;




&lt;p&gt;✨ If you enjoy EasyAdmin and your company doesn't need the Pro features, you can still support the project by &lt;a href="https://github.com/sponsors/javiereguiluz" rel="noopener noreferrer"&gt;sponsoring it&lt;/a&gt; 🙌💡&lt;/p&gt;

</description>
      <category>easyadmin</category>
      <category>symfony</category>
      <category>php</category>
    </item>
    <item>
      <title>New in EasyAdmin 5.6: AI Agent Skills</title>
      <dc:creator>Javier Eguiluz</dc:creator>
      <pubDate>Fri, 18 Sep 2026 07:16:42 +0000</pubDate>
      <link>https://dev.to/javiereguiluz/new-in-easyadmin-ai-agent-skills-4gbo</link>
      <guid>https://dev.to/javiereguiluz/new-in-easyadmin-ai-agent-skills-4gbo</guid>
      <description>&lt;p&gt;&lt;a href="https://github.com/EasyCorp/EasyAdminBundle/releases/tag/v5.6.0" rel="noopener noreferrer"&gt;EasyAdmin 5.6&lt;/a&gt; is out with a new feature for a very specific audience: people who use &lt;strong&gt;AI coding agents&lt;/strong&gt; to work on their Symfony applications. Before going into the details, two things you should know:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;If you don't use AI, nothing changes for you.&lt;/strong&gt; EasyAdmin doesn't install anything, doesn't change your project and doesn't ask you anything. Upgrade as usual.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;If you use AI coding agents, this can improve the quality of the generated code significantly.&lt;/strong&gt; Run one command and your agent finally writes EasyAdmin 5 code that works.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The Problem: Agents Learned EasyAdmin 4
&lt;/h2&gt;

&lt;p&gt;Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, JetBrains Junie, Windsurf and the rest are pretty good at writting EasyAdmin code. The problem is that a lot of the EasyAdmin content they learned from describes EasyAdmin 4 (or older). That's why they confidently generate code that throws an exception on EasyAdmin 5. This is a typical example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="c1"&gt;// what agents used to generate: linkToCrud() no longer exists in EasyAdmin 5&lt;/span&gt;
&lt;span class="c1"&gt;// and hideOnForms() never existed&lt;/span&gt;
&lt;span class="k"&gt;yield&lt;/span&gt; &lt;span class="nc"&gt;MenuItem&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;linkToCrud&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'Products'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'fa fa-box'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;Product&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="n"&gt;class&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="k"&gt;yield&lt;/span&gt; &lt;span class="nc"&gt;TextField&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="k"&gt;new&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'slug'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;hideOnForms&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is what they should generate:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="kn"&gt;use&lt;/span&gt; &lt;span class="nc"&gt;App\Controller\Admin\ProductCrudController&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kn"&gt;use&lt;/span&gt; &lt;span class="nc"&gt;EasyCorp\Bundle\EasyAdminBundle\Config\MenuItem&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kn"&gt;use&lt;/span&gt; &lt;span class="nc"&gt;EasyCorp\Bundle\EasyAdminBundle\Field\TextField&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;yield&lt;/span&gt; &lt;span class="nc"&gt;MenuItem&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;linkTo&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;ProductCrudController&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="n"&gt;class&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'Products'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'fa fa-box'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="k"&gt;yield&lt;/span&gt; &lt;span class="nc"&gt;TextField&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="k"&gt;new&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'slug'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;hideOnForm&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can fix each of these mistakes by hand, but it's tedious and it happens again and again: wrong argument order in &lt;code&gt;linkToRoute()&lt;/code&gt;, &lt;code&gt;setRole()&lt;/code&gt; instead of &lt;code&gt;setPermission()&lt;/code&gt;, &lt;code&gt;#[Route]&lt;/code&gt; instead of &lt;code&gt;#[AdminRoute]&lt;/code&gt;, &lt;code&gt;displayAsButton()&lt;/code&gt; instead of &lt;code&gt;renderAsButton()&lt;/code&gt;, and so on. I've collected dozens of these.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Solution: an Agent Skill Inside the Package
&lt;/h2&gt;

&lt;p&gt;EasyAdmin 5.6 ships an &lt;strong&gt;agent skill&lt;/strong&gt; inside the Composer package. A skill is a directory with a &lt;code&gt;SKILL.md&lt;/code&gt; file and some reference files that an agent reads when it detects that a task is related to the skill. EasyAdmin uses the &lt;a href="https://agentskills.io" rel="noopener noreferrer"&gt;Agent Skills&lt;/a&gt; open standard, which all the agents understand.&lt;/p&gt;

&lt;p&gt;The skill lives in &lt;code&gt;vendor/easycorp/easyadmin-bundle/skills/easyadmin/&lt;/code&gt; and contains four files:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;SKILL.md&lt;/code&gt;&lt;/strong&gt; explains the mental model of EasyAdmin 5, the workflow to follow (use the makers first, check that a method exists before writing it, clear the cache and check the routes, etc.), and the rules for dashboards, CRUD controllers, fields, actions, filters, security, templates and functional tests. It also lists what changed since EasyAdmin 4 and what to do when you see certain errors.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;references/api.md&lt;/code&gt;&lt;/strong&gt; is a complete reference of every public method of the config, field, filter, attribute, controller and test classes. It's &lt;strong&gt;generated automatically from the source code&lt;/strong&gt; and a unit test fails when it's outdated. If a method is not listed there, it doesn't exist.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;references/patterns.md&lt;/code&gt;&lt;/strong&gt; contains copy-ready recipes for the most common tasks.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;references/traps.md&lt;/code&gt;&lt;/strong&gt; lists method names that look right but are wrong, next to the right ones.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Because the skill is part of the package, &lt;strong&gt;it always describes the exact EasyAdmin version installed in your application&lt;/strong&gt;. No more code generated for a version you don't use. The skill is plain text that you can read and change, it doesn't need network access and it doesn't send any telemetry.&lt;/p&gt;

&lt;h2&gt;
  
  
  Installing the Skill
&lt;/h2&gt;

&lt;p&gt;Agents only load skills from a few well-known directories of your project, so the skill must be copied there. EasyAdmin provides a command for that:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;php bin/console easyadmin:ai:install
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The command asks two questions. The first one is which agents you want to install the skill for. The agents already used in your project are preselected (the command looks for &lt;code&gt;.claude/&lt;/code&gt;, &lt;code&gt;.cursor/&lt;/code&gt;, &lt;code&gt;.junie/&lt;/code&gt;, &lt;code&gt;CLAUDE.md&lt;/code&gt;, etc.) and you can select more than one:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Agents&lt;/th&gt;
&lt;th&gt;Option value&lt;/th&gt;
&lt;th&gt;Skill directory&lt;/th&gt;
&lt;th&gt;Instructions file&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Claude Code&lt;/td&gt;
&lt;td&gt;&lt;code&gt;claude&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;.claude/skills/&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;CLAUDE.md&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Codex, Cursor, Copilot, Gemini, others&lt;/td&gt;
&lt;td&gt;&lt;code&gt;agents&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;.agents/skills/&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;AGENTS.md&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;JetBrains Junie&lt;/td&gt;
&lt;td&gt;&lt;code&gt;junie&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;.junie/skills/&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;AGENTS.md&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Windsurf&lt;/td&gt;
&lt;td&gt;&lt;code&gt;windsurf&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;.windsurf/skills/&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;AGENTS.md&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The second question asks if you want to add a short EasyAdmin section to your AI instructions files (&lt;code&gt;CLAUDE.md&lt;/code&gt; and &lt;code&gt;AGENTS.md&lt;/code&gt;). This section tells agents to read the skill before touching your backend. The answer defaults to yes and I recommend accepting it (more on this below).&lt;/p&gt;

&lt;p&gt;In scripts and CI you can skip the questions with options:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# install the skill for one or more agents&lt;/span&gt;
&lt;span class="nv"&gt;$ &lt;/span&gt;php bin/console easyadmin:ai:install &lt;span class="nt"&gt;--agent&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;claude &lt;span class="nt"&gt;--agent&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;agents

&lt;span class="c"&gt;# install the skill for all the supported agents&lt;/span&gt;
&lt;span class="nv"&gt;$ &lt;/span&gt;php bin/console easyadmin:ai:install &lt;span class="nt"&gt;--all&lt;/span&gt;

&lt;span class="c"&gt;# install the skill for the detected agents without asking anything&lt;/span&gt;
&lt;span class="nv"&gt;$ &lt;/span&gt;php bin/console easyadmin:ai:install &lt;span class="nt"&gt;--no-interaction&lt;/span&gt;

&lt;span class="c"&gt;# leave CLAUDE.md and AGENTS.md untouched&lt;/span&gt;
&lt;span class="nv"&gt;$ &lt;/span&gt;php bin/console easyadmin:ai:install &lt;span class="nt"&gt;--all&lt;/span&gt; &lt;span class="nt"&gt;--skip-guidelines&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The copies are real files, not symbolic links, so they work on every operating system, including Windows. &lt;strong&gt;Commit them to your repository&lt;/strong&gt;: your teammates get the same skill without running any command and their agents behave like yours.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; The command never overwrites an &lt;code&gt;easyadmin&lt;/code&gt; skill that it didn't install. If it finds one, it stops and writes nothing at all. Delete that directory and run the command again, or keep it and don't select that agent.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Keeping the Skill Up to Date
&lt;/h2&gt;

&lt;p&gt;The copies describe the EasyAdmin version installed when you created them. After every EasyAdmin update, run this command to refresh them:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;php bin/console easyadmin:ai:update
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We designed this command to run unattended: it never asks anything, it never creates new files, it only refreshes the copies that are already installed and the instructions blocks that already exist. It's silent when the skill isn't installed anywhere and it's silent in production too. That's why you can add it to your &lt;code&gt;composer.json&lt;/code&gt; scripts and forget about it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"scripts"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"post-update-cmd"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
            &lt;/span&gt;&lt;span class="s2"&gt;"@auto-scripts"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
            &lt;/span&gt;&lt;span class="s2"&gt;"@php bin/console easyadmin:ai:update"&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you prefer to run the update yourself, use the &lt;code&gt;--check&lt;/code&gt; option in your CI workflow. It writes nothing and returns &lt;code&gt;1&lt;/code&gt; when any installed copy or instructions block doesn't match the EasyAdmin version of the project, so the build fails until someone runs the update:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;php bin/console easyadmin:ai:update &lt;span class="nt"&gt;--check&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The check compares the contents of the files and not the version numbers, so a copy that you changed by hand also counts as outdated.&lt;/p&gt;

&lt;h2&gt;
  
  
  Your Own Conventions
&lt;/h2&gt;

&lt;p&gt;When you accept the second question of the install command, EasyAdmin adds a small section to your &lt;code&gt;CLAUDE.md&lt;/code&gt; and &lt;code&gt;AGENTS.md&lt;/code&gt; files, delimited by two markers:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;easyadmin-guidelines&amp;gt;&lt;/span&gt;
This project uses EasyAdmin 5.6.0. Before creating or modifying admin
dashboards, CRUD controllers, fields, actions, filters or their tests,
read and follow the &lt;span class="sb"&gt;`easyadmin`&lt;/span&gt; skill at
&lt;span class="sb"&gt;`.claude/skills/easyadmin/SKILL.md`&lt;/span&gt;.
...
&lt;span class="nt"&gt;&amp;lt;/easyadmin-guidelines&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;EasyAdmin owns the text between those markers and nothing else.&lt;/strong&gt; The rest of the file, including your own instructions, is left exactly as it is. Both commands replace the contents of the block on every run, so don't edit the text inside the markers.&lt;/p&gt;

&lt;p&gt;The skill knows how EasyAdmin works, but it knows nothing about the conventions of your project. Write them in a section titled &lt;code&gt;## EasyAdmin conventions&lt;/code&gt; of the same file, outside the markers. The skill tells agents to read that section and apply it on top of the EasyAdmin rules:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;easyadmin-guidelines&amp;gt;&lt;/span&gt;
...
&lt;span class="nt"&gt;&amp;lt;/easyadmin-guidelines&amp;gt;&lt;/span&gt;

&lt;span class="gu"&gt;## EasyAdmin conventions&lt;/span&gt;
&lt;span class="p"&gt;
-&lt;/span&gt; All CRUD controllers live in &lt;span class="sb"&gt;`src/Controller/Admin/`&lt;/span&gt; and their tests
  in &lt;span class="sb"&gt;`tests/Admin/Controller/`&lt;/span&gt;.
&lt;span class="p"&gt;-&lt;/span&gt; Prices are stored in cents and displayed with &lt;span class="sb"&gt;`MoneyField`&lt;/span&gt;.
&lt;span class="p"&gt;-&lt;/span&gt; Never display the &lt;span class="sb"&gt;`password`&lt;/span&gt; property of the &lt;span class="sb"&gt;`User`&lt;/span&gt; entity.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you want to go further and adapt the skill itself, delete the &lt;code&gt;installed-by&lt;/code&gt; line from the &lt;code&gt;metadata&lt;/code&gt; section of the copied &lt;code&gt;SKILL.md&lt;/code&gt;. From that moment, the file is yours: the update command ignores it and the install command refuses to overwrite it. The drawback is that you no longer get the improvements of new EasyAdmin versions, so consider the conventions section first.&lt;/p&gt;

&lt;p&gt;If your agent still generates wrong EasyAdmin code after installing the skill, please &lt;a href="https://github.com/EasyCorp/EasyAdminBundle/issues" rel="noopener noreferrer"&gt;open an issue&lt;/a&gt; with the generated code.&lt;/p&gt;

&lt;h2&gt;
  
  
  Summary
&lt;/h2&gt;

&lt;p&gt;EasyAdmin 5.6 ships an &lt;strong&gt;agent skill&lt;/strong&gt; that teaches AI coding agents the real EasyAdmin 5 API, versioned with the package so it always matches the version you have installed. Run &lt;code&gt;easyadmin:ai:install&lt;/code&gt; once, add &lt;code&gt;easyadmin:ai:update&lt;/code&gt; to your Composer scripts, commit the files, and your agents (and your teammates' agents) stop generating EasyAdmin 4 code. If you don't use AI, nothing changes for you. Read the &lt;a href="https://symfony.com/bundles/EasyAdminBundle/current/ai-coding-agents.html" rel="noopener noreferrer"&gt;full documentation&lt;/a&gt; for all the details.&lt;/p&gt;




&lt;p&gt;✨ If you enjoyed this feature and want to see more like it, consider &lt;a href="https://github.com/sponsors/javiereguiluz" rel="noopener noreferrer"&gt;sponsoring the EasyAdmin project&lt;/a&gt; 🙌💡&lt;/p&gt;

</description>
      <category>easyadmin</category>
      <category>symfony</category>
      <category>ai</category>
      <category>php</category>
    </item>
    <item>
      <title>New in EasyAdmin 5.5: Form Field Addons</title>
      <dc:creator>Javier Eguiluz</dc:creator>
      <pubDate>Thu, 06 Aug 2026 06:30:51 +0000</pubDate>
      <link>https://dev.to/javiereguiluz/new-in-easyadmin-55-form-field-addons-1g6o</link>
      <guid>https://dev.to/javiereguiluz/new-in-easyadmin-55-form-field-addons-1g6o</guid>
      <description>&lt;p&gt;&lt;a href="https://github.com/EasyCorp/EasyAdminBundle/releases/tag/v5.5.0" rel="noopener noreferrer"&gt;EasyAdmin 5.5&lt;/a&gt; is out with form field addons, sortable nested association fields, and tabs that stay selected when you move from the detail page to the edit page.&lt;/p&gt;

&lt;h2&gt;
  
  
  Form Field Addons
&lt;/h2&gt;

&lt;p&gt;Many form inputs only make sense with some context attached to them: the &lt;code&gt;https://&lt;/code&gt; prefix of a URL, the unit of a weight, the currency of a price, a search icon. Until now, adding those hints in EasyAdmin meant fiddling with custom form themes or help messages. In EasyAdmin 5.5, every field gains two new methods: &lt;strong&gt;&lt;code&gt;prepend()&lt;/code&gt;&lt;/strong&gt; and &lt;strong&gt;&lt;code&gt;append()&lt;/code&gt;&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="kn"&gt;use&lt;/span&gt; &lt;span class="nc"&gt;EasyCorp\Bundle\EasyAdminBundle\Field\IntegerField&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kn"&gt;use&lt;/span&gt; &lt;span class="nc"&gt;EasyCorp\Bundle\EasyAdminBundle\Field\TextField&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kn"&gt;use&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;Symfony\Component\Translation\t&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// a control field with no addons&lt;/span&gt;
&lt;span class="k"&gt;yield&lt;/span&gt; &lt;span class="nc"&gt;TextField&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="k"&gt;new&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'street'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="c1"&gt;// addon defined as a simple text string&lt;/span&gt;
&lt;span class="k"&gt;yield&lt;/span&gt; &lt;span class="nc"&gt;TextField&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="k"&gt;new&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'website'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;prepend&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'https://'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="c1"&gt;// addon defined as a text string with HTML contents (rendered raw)&lt;/span&gt;
&lt;span class="k"&gt;yield&lt;/span&gt; &lt;span class="nc"&gt;TextField&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="k"&gt;new&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'email'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'&amp;lt;b&amp;gt;@example.com&amp;lt;/b&amp;gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="c1"&gt;// addon defined as a Translatable object&lt;/span&gt;
&lt;span class="k"&gt;yield&lt;/span&gt; &lt;span class="nc"&gt;IntegerField&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="k"&gt;new&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'priority'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;prepend&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;t&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'Priority Addon Lorem Ipsum'&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;

&lt;span class="c1"&gt;// addon defined as an icon only&lt;/span&gt;
&lt;span class="k"&gt;yield&lt;/span&gt; &lt;span class="nc"&gt;TextField&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="k"&gt;new&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'phone'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;icon&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'fa fa-magnifying-glass'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="c1"&gt;// addon combining an icon and a text content&lt;/span&gt;
&lt;span class="k"&gt;yield&lt;/span&gt; &lt;span class="nc"&gt;TextField&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="k"&gt;new&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'city'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;prepend&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'Search'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;icon&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'fa fa-magnifying-glass'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="c1"&gt;// field using both prepend and append at the same time&lt;/span&gt;
&lt;span class="k"&gt;yield&lt;/span&gt; &lt;span class="nc"&gt;TextField&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="k"&gt;new&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'url'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;prepend&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'https://'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'.com'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="c1"&gt;// the currency symbol renders as an addon too: "Fee" and "$" become&lt;/span&gt;
&lt;span class="c1"&gt;// sibling addons before the input, with the symbol next to the input&lt;/span&gt;
&lt;span class="k"&gt;yield&lt;/span&gt; &lt;span class="nc"&gt;MoneyField&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="k"&gt;new&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'priceInCents'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;setCurrency&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'USD'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;prepend&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'Fee'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="c1"&gt;// the percent symbol renders as an append addon&lt;/span&gt;
&lt;span class="k"&gt;yield&lt;/span&gt; &lt;span class="nc"&gt;PercentField&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="k"&gt;new&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'score'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And this is how the previous example looks now:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6uwvq96popkhiy7v7nzj.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6uwvq96popkhiy7v7nzj.jpg" alt="Form field addons in EasyAdmin 5.5" width="800" height="654"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Fields that already displayed similar hints now integrate with this feature: &lt;strong&gt;the currency symbol of &lt;code&gt;MoneyField&lt;/code&gt; and the &lt;code&gt;%&lt;/code&gt; symbol of &lt;code&gt;PercentField&lt;/code&gt; render as addons too&lt;/strong&gt;. If you add your own addon to those fields, both are displayed as siblings, with the symbol staying next to the input:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="kn"&gt;use&lt;/span&gt; &lt;span class="nc"&gt;EasyCorp\Bundle\EasyAdminBundle\Field\MoneyField&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// "Fee" and "$" render as two sibling addons before the input&lt;/span&gt;
&lt;span class="k"&gt;yield&lt;/span&gt; &lt;span class="nc"&gt;MoneyField&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="k"&gt;new&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'priceInCents'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;setCurrency&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'USD'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;prepend&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'Fee'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The design of the addons is based on modern design systems like &lt;a href="https://ui.shadcn.com/" rel="noopener noreferrer"&gt;shadcn&lt;/a&gt; and &lt;a href="https://primer.style/" rel="noopener noreferrer"&gt;GitHub Primer&lt;/a&gt; instead of the default Bootstrap input groups, so they blend nicely with the rest of the EasyAdmin interface (and with the &lt;a href="https://dev.to/javiereguiluz/new-in-easyadmin-54-theming-is-here-4a91"&gt;theming API introduced in 5.4&lt;/a&gt;).&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Addons are only displayed on form pages (&lt;code&gt;new&lt;/code&gt; and &lt;code&gt;edit&lt;/code&gt;) and only for fields whose form control is a single-line input. Fields like &lt;code&gt;TextareaField&lt;/code&gt; or &lt;code&gt;ArrayField&lt;/code&gt; silently ignore them.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Sort by Nested Association Fields
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://symfony.com/bundles/EasyAdminBundle/current/fields/AssociationField.html" rel="noopener noreferrer"&gt;AssociationField&lt;/a&gt; has supported nested property paths for a while: &lt;code&gt;AssociationField::new('customer.country')&lt;/code&gt; displays the country of the related customer and even auto-links it to the country's CRUD controller. But sorting by those fields didn't work. &lt;strong&gt;BEFORE&lt;/strong&gt;, the field wasn't sortable in the listing, and trying to sort by default threw an exception:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;configureCrud&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;Crud&lt;/span&gt; &lt;span class="nv"&gt;$crud&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt; &lt;span class="kt"&gt;Crud&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="c1"&gt;// this threw an exception before EasyAdmin 5.5&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nv"&gt;$crud&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;setDefaultSort&lt;/span&gt;&lt;span class="p"&gt;([&lt;/span&gt;&lt;span class="s1"&gt;'customer.country'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="s1"&gt;'ASC'&lt;/span&gt;&lt;span class="p"&gt;]);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;AFTER&lt;/strong&gt;, in EasyAdmin 5.5, nested association fields are &lt;strong&gt;sortable by default&lt;/strong&gt;, mirroring the behavior of single-level association fields:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="kn"&gt;use&lt;/span&gt; &lt;span class="nc"&gt;EasyCorp\Bundle\EasyAdminBundle\Field\AssociationField&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// sortable by default; results are ordered by the id of the related country&lt;/span&gt;
&lt;span class="k"&gt;yield&lt;/span&gt; &lt;span class="nc"&gt;AssociationField&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="k"&gt;new&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'customer.country'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="c1"&gt;// use setSortProperty() to order by any property of the related entity&lt;/span&gt;
&lt;span class="k"&gt;yield&lt;/span&gt; &lt;span class="nc"&gt;AssociationField&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="k"&gt;new&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'customer.country'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;setSortProperty&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'name'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;setDefaultSort()&lt;/code&gt; example shown above now works as expected too.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; A nested association field is sortable when every segment of the path is a &lt;em&gt;to-one&lt;/em&gt; association. Paths ending in a &lt;em&gt;to-many&lt;/em&gt; association are not sortable, just like single-level &lt;em&gt;to-many&lt;/em&gt; association fields.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  The Selected Tab Follows You from Detail to Edit
&lt;/h2&gt;

&lt;p&gt;Here's a small UX improvement that you'll notice immediately if your entities use tabs. When browsing an entity's detail page, chances are that when you click "Edit" you want to change something in the tab you're currently looking at. Yet, the edit page always opened on the first tab.&lt;/p&gt;

&lt;p&gt;In EasyAdmin 5.5, the detail page also &lt;strong&gt;stores the selected tab in the URL hash&lt;/strong&gt; (e.g. &lt;code&gt;#tab-contact-information&lt;/code&gt;). This brings several improvements at once, with zero configuration on your side:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The selected tab is &lt;strong&gt;kept when going from the &lt;code&gt;detail&lt;/code&gt; page to the &lt;code&gt;edit&lt;/code&gt; page&lt;/strong&gt; of the same entity (and vice versa);&lt;/li&gt;
&lt;li&gt;Reloading the page keeps the same tab selected, and you can &lt;strong&gt;bookmark or share a link&lt;/strong&gt; to a specific tab;&lt;/li&gt;
&lt;li&gt;The browser back/forward buttons navigate through the tabs you selected.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This only applies to the tabs generated by EasyAdmin, so if you added your own Bootstrap tabs on custom backend pages, they are not affected.&lt;/p&gt;

&lt;h2&gt;
  
  
  Summary
&lt;/h2&gt;

&lt;p&gt;EasyAdmin 5.5 makes your forms clearer with &lt;strong&gt;prepend/append addons&lt;/strong&gt;, your listings more capable with &lt;strong&gt;sorting by nested association fields&lt;/strong&gt;, and your editing workflow smoother with &lt;strong&gt;tab persistence between detail and edit pages&lt;/strong&gt;. There's nothing to migrate and no code to update: upgrade and start using the new features where they help.&lt;/p&gt;




&lt;p&gt;✨ If you enjoyed this feature and want to see more like it, consider &lt;a href="https://github.com/sponsors/javiereguiluz" rel="noopener noreferrer"&gt;sponsoring the EasyAdmin project&lt;/a&gt; 🙌💡&lt;/p&gt;

</description>
      <category>easyadmin</category>
      <category>symfony</category>
    </item>
    <item>
      <title>New in EasyAdmin 5.4: Theming Is Here</title>
      <dc:creator>Javier Eguiluz</dc:creator>
      <pubDate>Thu, 30 Jul 2026 06:51:10 +0000</pubDate>
      <link>https://dev.to/javiereguiluz/new-in-easyadmin-54-theming-is-here-4a91</link>
      <guid>https://dev.to/javiereguiluz/new-in-easyadmin-54-theming-is-here-4a91</guid>
      <description>&lt;p&gt;&lt;a href="https://github.com/EasyCorp/EasyAdminBundle/releases/tag/v5.4.0" rel="noopener noreferrer"&gt;EasyAdmin 5.4&lt;/a&gt; is out, and it delivers the feature that we've been building over the past few months: &lt;strong&gt;a theming API&lt;/strong&gt;. You can now recolor and reshape your whole backend with four method calls in your dashboard, &lt;strong&gt;without writing any CSS&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;This release also brings a redesigned look for tabs, the ability to override each individual part of the detail page, and grouped options in autocomplete association fields. As usual, &lt;strong&gt;nothing breaks&lt;/strong&gt;: your existing backends keep working exactly as before.&lt;/p&gt;

&lt;h2&gt;
  
  
  Theming Without Writing CSS
&lt;/h2&gt;

&lt;p&gt;By far the most common request I get about EasyAdmin is some variation of &lt;em&gt;"how do I make the backend look like our brand?"&lt;/em&gt;. Until now the honest answer was: &lt;em&gt;"write CSS overrides"&lt;/em&gt;. That works, but you have to learn which variables exist, remember to handle the dark color scheme too, and remap entire color palettes by hand.&lt;/p&gt;

&lt;p&gt;Here's what a modest rebranding looked like &lt;strong&gt;BEFORE&lt;/strong&gt;, using the design tokens introduced in 5.3:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="c"&gt;/* assets/styles/admin.css */&lt;/span&gt;
&lt;span class="nd"&gt;:root&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="py"&gt;--ea-primary&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;#15803d&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="c"&gt;/* the text/icon color on top of primary-colored elements; you had to pick
       it yourself and get it wrong if your primary color was a light one */&lt;/span&gt;
    &lt;span class="py"&gt;--ea-primary-foreground&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;#fff&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="py"&gt;--ea-radius&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;0.5rem&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="c"&gt;/* and now do it again for the dark color scheme... */&lt;/span&gt;
&lt;span class="nc"&gt;.ea-dark-scheme&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="py"&gt;--ea-primary&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;oklch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="m"&gt;0.6&lt;/span&gt; &lt;span class="m"&gt;0.2&lt;/span&gt; &lt;span class="m"&gt;150&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="py"&gt;--ea-primary-foreground&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;#fff&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="c"&gt;/* ...and if you also wanted a warmer neutral scale, remap eleven steps by hand */&lt;/span&gt;
&lt;span class="nd"&gt;:root&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="py"&gt;--gray-50&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;var&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;--warm-gray-50&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="py"&gt;--gray-100&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;var&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;--warm-gray-100&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="c"&gt;/* ... nine more lines ... */&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;AFTER&lt;/strong&gt;, in EasyAdmin 5.4, that's a &lt;code&gt;setTheme()&lt;/code&gt; call in your dashboard:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="kn"&gt;use&lt;/span&gt; &lt;span class="nc"&gt;EasyCorp\Bundle\EasyAdminBundle\Config\Dashboard&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kn"&gt;use&lt;/span&gt; &lt;span class="nc"&gt;EasyCorp\Bundle\EasyAdminBundle\Config\Theme&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;configureDashboard&lt;/span&gt;&lt;span class="p"&gt;():&lt;/span&gt; &lt;span class="kt"&gt;Dashboard&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nc"&gt;Dashboard&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="k"&gt;new&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
        &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;setTitle&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'ACME Admin'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;setTheme&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;Theme&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="k"&gt;new&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
            &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;primaryColor&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'#15803d'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;dark&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'oklch(0.6 0.2 150)'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;radius&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'0.5rem'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;grays&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'stone'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The design decision here was to not add hundreds of configurable options. The &lt;code&gt;Theme&lt;/code&gt; class exposes exactly &lt;strong&gt;four options&lt;/strong&gt;, chosen because each one changes many things at once and coherently:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="nc"&gt;Theme&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="k"&gt;new&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="c1"&gt;// the accent color of buttons, links, switches, active menu items, etc.&lt;/span&gt;
    &lt;span class="c1"&gt;// Accepts the hexadecimal, rgb(), hsl() and oklch() formats (no alpha channel).&lt;/span&gt;
    &lt;span class="c1"&gt;// The optional 'dark' argument sets a different color for the dark color scheme&lt;/span&gt;
    &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;primaryColor&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'#15803d'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;dark&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'oklch(0.6 0.2 150)'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="c1"&gt;// the base border radius that every other radius in the backend derives from.&lt;/span&gt;
    &lt;span class="c1"&gt;// A CSS length in 'px' or 'rem', or a preset: none, xs, sm, md, lg, xl&lt;/span&gt;
    &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;radius&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'0.5rem'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="c1"&gt;// the base spacing unit that every padding, margin, gap and control height&lt;/span&gt;
    &lt;span class="c1"&gt;// derives from; it defines the density of the whole interface.&lt;/span&gt;
    &lt;span class="c1"&gt;// A CSS length, or a preset: xs, sm, md, lg, xl&lt;/span&gt;
    &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;spacing&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'lg'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="c1"&gt;// the neutral scale used by all surfaces, borders and text colors:&lt;/span&gt;
    &lt;span class="c1"&gt;// neutral, stone (warmer), zinc, gray or slate (cooler)&lt;/span&gt;
    &lt;span class="c1"&gt;// (values are available as constants too: EasyCorp\Bundle\EasyAdminBundle\Config\Option\GrayScale::ZINC)&lt;/span&gt;
    &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;grays&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'zinc'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;dark&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'stone'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Every option is optional, so call only the ones you care about. A few details worth knowing:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The foreground color is computed for you.&lt;/strong&gt; Picking the text color that sits on top of primary-colored elements is the part everyone gets wrong: white looks great on a dark indigo and terrible on a bright yellow. EasyAdmin derives it automatically from the luminance of your primary color, so a yellow primary gets black text without you thinking about it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;md&lt;/code&gt; is always the default look.&lt;/strong&gt; The &lt;code&gt;radius&lt;/code&gt; and &lt;code&gt;spacing&lt;/code&gt; presets are centered on the current design, so &lt;code&gt;md&lt;/code&gt; is a no-op and you can move one step at a time in either direction.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;spacing()&lt;/code&gt; is deliberately a narrow band.&lt;/strong&gt; The presets only span roughly ±25% around the default, and there's no &lt;code&gt;none&lt;/code&gt;. The spacing unit scales &lt;em&gt;every&lt;/em&gt; padding, margin, gap and control size linearly, so small changes already resize the entire UI noticeably.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Redesigned Tabs and Other Design Improvements
&lt;/h2&gt;

&lt;p&gt;While building the theming feature, we also fixed and tweaked many design-related elements. For example, fieldsets in forms and detail pages now ensure that all columns in the same row have equal height, which improves the overall design a lot.&lt;/p&gt;

&lt;p&gt;Tabs are commonly used to divide complex form and detail pages into smaller sections. We've redesigned them based on how they look in modern design systems. The active tab marker now slides in browsers that support it, and it respects the user's preferences about animations:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6uiyjh7po0vqan9w99sj.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6uiyjh7po0vqan9w99sj.gif" alt="The new design of tabs in EasyAdmin backends" width="800" height="71"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You get all of this for free on the new, edit and detail pages. But the tabs are also a new reusable Twig component, in case you want the same look in your own custom pages:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight twig"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;twig:ea:Tabs&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;twig:ea:Tabs:Item&lt;/span&gt; &lt;span class="na"&gt;paneId=&lt;/span&gt;&lt;span class="s"&gt;"general"&lt;/span&gt; &lt;span class="na"&gt;label=&lt;/span&gt;&lt;span class="s"&gt;"General"&lt;/span&gt; &lt;span class="na"&gt;active&lt;/span&gt; &lt;span class="na"&gt;icon=&lt;/span&gt;&lt;span class="s"&gt;"fa fa-gear"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;twig:ea:Tabs:Item&lt;/span&gt; &lt;span class="na"&gt;paneId=&lt;/span&gt;&lt;span class="s"&gt;"seo"&lt;/span&gt; &lt;span class="na"&gt;label=&lt;/span&gt;&lt;span class="s"&gt;"SEO"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/twig:ea:Tabs&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Override Any Part of the Detail Page
&lt;/h2&gt;

&lt;p&gt;The contents of the detail page used to be rendered by a set of Twig macros defined inside &lt;code&gt;crud/detail.html.twig&lt;/code&gt;. Macros aren't overridable, so if you wanted to change one small thing (say, how fieldsets render) your only option was to copy the entire template into your app, and then inherit the maintenance burden of every upstream change to it.&lt;/p&gt;

&lt;p&gt;This is now fixed: those macros have been extracted into &lt;strong&gt;thirteen standalone templates&lt;/strong&gt; that you can replace one at a time:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;crud/detail/field_group&lt;/code&gt;: the label and value of each regular field;&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;crud/detail/layout_field&lt;/code&gt;: decides which of the templates below renders each form layout field;&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;crud/detail/tab_list&lt;/code&gt;: the clickable list of tab names;&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;crud/detail/tab_group_open&lt;/code&gt; and &lt;code&gt;crud/detail/tab_group_close&lt;/code&gt;: the element wrapping all tab panes;&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;crud/detail/tab_open&lt;/code&gt; and &lt;code&gt;crud/detail/tab_close&lt;/code&gt;: each tab pane;&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;crud/detail/column_group_open&lt;/code&gt; and &lt;code&gt;crud/detail/column_group_close&lt;/code&gt;: the element wrapping all columns;&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;crud/detail/column_open&lt;/code&gt; and &lt;code&gt;crud/detail/column_close&lt;/code&gt;: each column;&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;crud/detail/fieldset_open&lt;/code&gt; and &lt;code&gt;crud/detail/fieldset_close&lt;/code&gt;: each fieldset.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Use them like any other EasyAdmin template name:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;configureCrud&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;Crud&lt;/span&gt; &lt;span class="nv"&gt;$crud&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt; &lt;span class="kt"&gt;Crud&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nv"&gt;$crud&lt;/span&gt;
        &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;overrideTemplate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'crud/detail/fieldset_open'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'admin/detail/fieldset_open.html.twig'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or rely on Symfony's mechanism to override bundle templates, by creating &lt;code&gt;templates/bundles/EasyAdminBundle/crud/detail/fieldset_open.html.twig&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Existing applications are unaffected, whether they copied the whole &lt;code&gt;detail.html.twig&lt;/code&gt; template or extended it with &lt;code&gt;@!EasyAdmin/crud/detail.html.twig&lt;/code&gt;. The only case that needs a change is the unlikely one where you imported those macros directly with &lt;code&gt;{% from '@EasyAdmin/crud/detail.html.twig' import ... %}&lt;/code&gt;; see &lt;code&gt;UPGRADE.md&lt;/code&gt; for the details.&lt;/p&gt;

&lt;h2&gt;
  
  
  Grouped Options in Autocomplete Association Fields
&lt;/h2&gt;

&lt;p&gt;Autocomplete association fields now support the &lt;code&gt;group_by&lt;/code&gt; option, which completes the work started when &lt;code&gt;choice_label&lt;/code&gt; support was added. If your related entities naturally fall into categories, you can group them in the dropdown:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="kn"&gt;use&lt;/span&gt; &lt;span class="nc"&gt;EasyCorp\Bundle\EasyAdminBundle\Field\AssociationField&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;yield&lt;/span&gt; &lt;span class="nc"&gt;AssociationField&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="k"&gt;new&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'issues'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;autocomplete&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;setFormTypeOption&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'group_by'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;static&lt;/span&gt; &lt;span class="k"&gt;fn&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;Issue&lt;/span&gt; &lt;span class="nv"&gt;$issue&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt; &lt;span class="kt"&gt;?string&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nv"&gt;$issue&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;getProject&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="o"&gt;?-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;getName&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;
&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It also accepts a property path string, exactly like Symfony's &lt;code&gt;EntityType&lt;/code&gt; option:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="k"&gt;yield&lt;/span&gt; &lt;span class="nc"&gt;AssociationField&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="k"&gt;new&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'issues'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;autocomplete&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;setFormTypeOption&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'group_by'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'project.name'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The semantics match &lt;code&gt;EntityType&lt;/code&gt;'s &lt;code&gt;group_by&lt;/code&gt; in every way: it takes a callable, a property path string or a &lt;code&gt;PropertyPath&lt;/code&gt; object, and it &lt;strong&gt;fails gracefully&lt;/strong&gt;. Returning &lt;code&gt;null&lt;/code&gt; or pointing at an unreadable property path simply leaves that entry ungrouped instead of throwing. Grouping works for both the already-selected values (rendered server-side as &lt;code&gt;&amp;lt;optgroup&amp;gt;&lt;/code&gt; elements) and the results loaded on demand via Ajax.&lt;/p&gt;

&lt;h2&gt;
  
  
  Summary
&lt;/h2&gt;

&lt;p&gt;EasyAdmin 5.4 brings a &lt;strong&gt;theming API&lt;/strong&gt; that re-themes the entire backend from PHP with four options and no CSS; &lt;strong&gt;redesigned tabs&lt;/strong&gt; following modern design systems, available as a reusable Twig component; &lt;strong&gt;overridable detail page templates&lt;/strong&gt;, so you never have to copy the whole template again; and &lt;strong&gt;grouped options&lt;/strong&gt; in autocomplete association fields. All of it &lt;strong&gt;100% backwards compatible&lt;/strong&gt;.&lt;/p&gt;




&lt;p&gt;✨ If EasyAdmin helps your company ship faster, consider &lt;a href="https://github.com/sponsors/javiereguiluz" rel="noopener noreferrer"&gt;funding its development&lt;/a&gt; 🙌💡&lt;/p&gt;

</description>
      <category>easyadmin</category>
      <category>symfony</category>
    </item>
    <item>
      <title>New in EasyAdmin 5.3: A Modernized Sidebar, Symfony Reprise, and More Theming Groundwork</title>
      <dc:creator>Javier Eguiluz</dc:creator>
      <pubDate>Wed, 22 Jul 2026 07:44:09 +0000</pubDate>
      <link>https://dev.to/javiereguiluz/new-in-easyadmin-53-a-modernized-sidebar-symfony-reprise-and-more-theming-groundwork-3p8i</link>
      <guid>https://dev.to/javiereguiluz/new-in-easyadmin-53-a-modernized-sidebar-symfony-reprise-and-more-theming-groundwork-3p8i</guid>
      <description>&lt;p&gt;&lt;a href="https://github.com/EasyCorp/EasyAdminBundle/releases/tag/v5.3.0" rel="noopener noreferrer"&gt;EasyAdmin 5.3&lt;/a&gt; is out, and it continues the work started in recent releases: modernizing the interface piece by piece while preparing the upcoming &lt;strong&gt;theming system&lt;/strong&gt;. The star of this release is a &lt;strong&gt;completely rebuilt sidebar and main menu&lt;/strong&gt;, along with two internal changes (CSS layers and design tokens) that make your life easier today and theming possible tomorrow. It also adds support for &lt;strong&gt;Symfony Reprise&lt;/strong&gt;, a brand-new Symfony project you'll hear a lot about soon.&lt;/p&gt;

&lt;p&gt;As usual, &lt;strong&gt;nothing breaks&lt;/strong&gt;. Your existing backends and menu configuration keep working exactly as before, they just look and feel better.&lt;/p&gt;

&lt;h2&gt;
  
  
  A Modernized Sidebar and Main Menu
&lt;/h2&gt;

&lt;p&gt;The sidebar is one of the oldest parts of EasyAdmin. Its internals dated back to the first Bootstrap-era versions of the bundle: imperative JavaScript to expand/collapse submenus, fake links acting as buttons, and CSS that was hard to evolve. In EasyAdmin 5.3, all of that has been replaced.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;BEFORE&lt;/strong&gt;: expanded sidebar; compact sidebar; and hover state in compact sidebar&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fw6fwbj8x0hg32rgb484z.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fw6fwbj8x0hg32rgb484z.jpg" alt="The current design of the EasyAdmin sidebar in different states" width="800" height="524"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;AFTER&lt;/strong&gt;: expanded sidebar; compact sidebar; and hover state in compact sidebar&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9qxd2b9eal2wg8z1woly.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9qxd2b9eal2wg8z1woly.jpg" alt="The new design of the EasyAdmin sidebar in different states" width="800" height="521"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here's what you get automatically, without changing a single line of your code:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A much better compact mode&lt;/strong&gt;: when the sidebar is collapsed to the icon rail, hovering an item now shows a pure-CSS tooltip (dark in light mode, light in dark mode). Items with submenus show a flyout panel titled with the parent label, and items with hidden badges display a small dot on the icon so you don't miss anything.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Smoother submenus&lt;/strong&gt;: the expand/collapse accordion is now pure CSS (animating &lt;code&gt;grid-template-rows&lt;/code&gt;) instead of JavaScript fiddling with element heights. Expanded submenus display a thin vertical guide line, and sub-items keep supporting icons.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Nicer details everywhere&lt;/strong&gt;: icons and badges are better aligned, the sidebar resizer shows a directional cursor, clickable elements have more spacing for a better UX, etc.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Improved accessibility&lt;/strong&gt;: items with submenus are now real &lt;code&gt;&amp;lt;button&amp;gt;&lt;/code&gt; elements with &lt;code&gt;aria-expanded&lt;/code&gt;, tooltips and flyouts also open with keyboard focus, all animations respect &lt;code&gt;prefers-reduced-motion&lt;/code&gt;, and the active menu item announces &lt;code&gt;aria-current="page"&lt;/code&gt; and is scrolled into view on page load if needed.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;All this is powered by a new &lt;strong&gt;&lt;code&gt;&amp;lt;twig:ea:Sidebar&amp;gt;&lt;/code&gt; component family&lt;/strong&gt; (&lt;code&gt;Sidebar&lt;/code&gt;, &lt;code&gt;Sidebar:Header&lt;/code&gt;, &lt;code&gt;Sidebar:Content&lt;/code&gt;, &lt;code&gt;Sidebar:Group&lt;/code&gt;, &lt;code&gt;Sidebar:Item&lt;/code&gt;, &lt;code&gt;Sidebar:Submenu&lt;/code&gt;, and &lt;code&gt;Sidebar:Footer&lt;/code&gt;), inspired by &lt;a href="https://ui.shadcn.com/docs/components/base/sidebar" rel="noopener noreferrer"&gt;shadcn/ui's Sidebar&lt;/a&gt; but deliberately simpler. Honestly, most of you will never use these components directly; they exist so the menu you already have works better. But this keeps advancing one of EasyAdmin's long-term goals: rendering the entire UI with reusable Twig components.&lt;/p&gt;

&lt;p&gt;The rebuild also enables two small new features. First, submenus can now be rendered &lt;strong&gt;always expanded and non-collapsible&lt;/strong&gt; with the new &lt;code&gt;keepOpen()&lt;/code&gt; method. This is handy when you use submenus to group related items but want all of them permanently visible:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="kn"&gt;use&lt;/span&gt; &lt;span class="nc"&gt;EasyCorp\Bundle\EasyAdminBundle\Config\MenuItem&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;configureMenuItems&lt;/span&gt;&lt;span class="p"&gt;():&lt;/span&gt; &lt;span class="kt"&gt;iterable&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;yield&lt;/span&gt; &lt;span class="nc"&gt;MenuItem&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;linkToDashboard&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'Dashboard'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'fa fa-home'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

    &lt;span class="k"&gt;yield&lt;/span&gt; &lt;span class="nc"&gt;MenuItem&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;subMenu&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'Blog'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'fa fa-newspaper'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;setSubItems&lt;/span&gt;&lt;span class="p"&gt;([&lt;/span&gt;
            &lt;span class="nc"&gt;MenuItem&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;linkToCrud&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'Posts'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'fa fa-file-lines'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;Post&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="n"&gt;class&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
            &lt;span class="nc"&gt;MenuItem&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;linkToCrud&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'Categories'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'fa fa-tags'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;Category&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="n"&gt;class&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
        &lt;span class="p"&gt;])&lt;/span&gt;
        &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;keepOpen&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Second, there's a new &lt;strong&gt;&lt;code&gt;sidebar_footer&lt;/code&gt;&lt;/strong&gt; block. Unlike the existing &lt;code&gt;main_menu_after&lt;/code&gt; block (which renders in the normal document flow, right after the menu items), the sidebar footer is &lt;strong&gt;always anchored to the bottom of the screen&lt;/strong&gt; and menu items scroll underneath it. Use it for important messages or notices that must remain visible:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight twig"&gt;&lt;code&gt;&lt;span class="c"&gt;{# templates/admin/layout.html.twig #}&lt;/span&gt;
&lt;span class="cp"&gt;{%&lt;/span&gt; &lt;span class="k"&gt;extends&lt;/span&gt; &lt;span class="s1"&gt;'@!EasyAdmin/layout.html.twig'&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt;

&lt;span class="cp"&gt;{%&lt;/span&gt; &lt;span class="k"&gt;block&lt;/span&gt; &lt;span class="nv"&gt;sidebar_footer&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;twig:ea:Alert&lt;/span&gt; &lt;span class="na"&gt;variant=&lt;/span&gt;&lt;span class="s"&gt;"warning"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        Scheduled maintenance on Sunday at 02:00 UTC.
    &lt;span class="nt"&gt;&amp;lt;/twig:ea:Alert&amp;gt;&lt;/span&gt;
&lt;span class="cp"&gt;{%&lt;/span&gt; &lt;span class="k"&gt;endblock&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Theming Is Getting Closer
&lt;/h2&gt;

&lt;p&gt;As mentioned in the &lt;a href="https://dev.to/javiereguiluz/new-in-easyadmin-52-twig-components-polished-ui-and-theming-groundwork-23on"&gt;EasyAdmin 5.2 announcement&lt;/a&gt;, we're building a &lt;strong&gt;theming system&lt;/strong&gt; that will let you customize the entire backend with a small set of global design variables, much like shadcn/ui does. Theming will probably be included in the next stable version. EasyAdmin 5.3 ships the two last pieces of groundwork, and one of them is useful to you right now.&lt;/p&gt;

&lt;p&gt;First, all EasyAdmin styles are now wrapped in &lt;strong&gt;&lt;a href="https://developer.mozilla.org/en-US/docs/Web/CSS/@layer" rel="noopener noreferrer"&gt;CSS cascade layers&lt;/a&gt;&lt;/strong&gt;. Your backends look exactly the same, but overriding EasyAdmin styles becomes trivial: unlayered styles (yours) always beat layered styles (EasyAdmin's), regardless of selector specificity. &lt;strong&gt;No more &lt;code&gt;!important&lt;/code&gt; or artificially specific selectors&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="c"&gt;/* BEFORE: your overrides had to fight EasyAdmin's specificity */&lt;/span&gt;
&lt;span class="nt"&gt;body&lt;/span&gt; &lt;span class="nf"&gt;#main&lt;/span&gt; &lt;span class="nc"&gt;.content-panel&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;border-radius&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;0&lt;/span&gt; &lt;span class="cp"&gt;!important&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="c"&gt;/* AFTER: a plain selector always wins */&lt;/span&gt;
&lt;span class="nc"&gt;.content-panel&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;border-radius&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Second, the entire backend now &lt;strong&gt;derives from a compact set of base design tokens&lt;/strong&gt;. Spacing values snap to a common grid, dozens of hardcoded colors now follow the primary color token, grays are unified into a single neutral scale, and even the autocomplete widget (which used its own hardcoded Bootstrap colors) finally follows the theme. This is what will make theming work: change a handful of tokens and the whole backend re-themes coherently.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; This uniformization causes some intentional but very minor visual shifts after upgrading (a pixel or two here and there). Nothing in your code needs to change.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Support for Symfony Reprise
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/symfony/reprise" rel="noopener noreferrer"&gt;Symfony Reprise&lt;/a&gt; is one of the newest Symfony projects, created by &lt;a href="https://connect.symfony.com/profile/kocal" rel="noopener noreferrer"&gt;Hugo Alliaume&lt;/a&gt;, a member of the Symfony Core Team. In short, Reprise is the spiritual successor of Webpack Encore: it brings the same first-class Symfony asset integration, but for &lt;strong&gt;modern bundlers like Vite and Rsbuild&lt;/strong&gt;. It's still experimental, but it's moving fast.&lt;/p&gt;

&lt;p&gt;EasyAdmin 5.3 supports Reprise assets with the same API you already know from the Encore and AssetMapper integrations:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="kn"&gt;use&lt;/span&gt; &lt;span class="nc"&gt;EasyCorp\Bundle\EasyAdminBundle\Config\Assets&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;configureAssets&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;Assets&lt;/span&gt; &lt;span class="nv"&gt;$assets&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt; &lt;span class="kt"&gt;Assets&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nv"&gt;$assets&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;addRepriseEntry&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'admin'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can also use &lt;code&gt;addRepriseEntries()&lt;/code&gt; when configuring field assets, and &lt;code&gt;Asset::new('...')-&amp;gt;reprisePackageName('...')&lt;/code&gt; to associate an entry with a specific Symfony Asset package. EasyAdmin renders the entries with the appropriate &lt;code&gt;reprise_entry_script_tags()&lt;/code&gt; and &lt;code&gt;reprise_entry_link_tags()&lt;/code&gt; Twig functions automatically.&lt;/p&gt;

&lt;h2&gt;
  
  
  Also in This Release
&lt;/h2&gt;

&lt;p&gt;EasyAdmin 5.3 includes other smaller improvements: the &lt;strong&gt;tab badges&lt;/strong&gt; introduced in 5.2 for forms are now also displayed on the detail page, and &lt;code&gt;MoneyField&lt;/code&gt; now formats &lt;code&gt;Money&lt;/code&gt; objects correctly for currencies that don't use 2 decimals. See the &lt;a href="https://github.com/EasyCorp/EasyAdminBundle/releases/tag/v5.3.0" rel="noopener noreferrer"&gt;full changelog&lt;/a&gt; for all the details.&lt;/p&gt;

&lt;h2&gt;
  
  
  Summary
&lt;/h2&gt;

&lt;p&gt;EasyAdmin 5.3 delivers a &lt;strong&gt;modernized sidebar and menu&lt;/strong&gt; with better animations, a smarter compact mode, and improved accessibility; &lt;strong&gt;CSS layers&lt;/strong&gt; that make your style overrides trivial; &lt;strong&gt;design tokens&lt;/strong&gt; that pave the way for the upcoming theming system; and support for &lt;strong&gt;Symfony Reprise&lt;/strong&gt;. All of it &lt;strong&gt;100% backwards compatible&lt;/strong&gt;.&lt;/p&gt;




&lt;p&gt;✨ If you enjoyed this feature and want to see more like it, consider &lt;a href="https://github.com/sponsors/javiereguiluz" rel="noopener noreferrer"&gt;sponsoring the EasyAdmin project&lt;/a&gt; 🙌💡&lt;/p&gt;

</description>
      <category>easyadmin</category>
      <category>symfony</category>
    </item>
    <item>
      <title>New in EasyAdmin 5.2: Twig Components, Polished UI, and Theming Groundwork</title>
      <dc:creator>Javier Eguiluz</dc:creator>
      <pubDate>Mon, 13 Jul 2026 12:52:34 +0000</pubDate>
      <link>https://dev.to/javiereguiluz/new-in-easyadmin-52-twig-components-polished-ui-and-theming-groundwork-23on</link>
      <guid>https://dev.to/javiereguiluz/new-in-easyadmin-52-twig-components-polished-ui-and-theming-groundwork-23on</guid>
      <description>&lt;p&gt;&lt;a href="https://github.com/EasyCorp/EasyAdminBundle/releases/tag/v5.2.0" rel="noopener noreferrer"&gt;EasyAdmin 5.2&lt;/a&gt; is out, and this release focuses on the visual experience. It introduces (1) more of the UI as &lt;strong&gt;reusable Twig components&lt;/strong&gt;, (2) a &lt;strong&gt;polished, more modern&lt;/strong&gt; interface, and (3) the groundwork for &lt;strong&gt;backend theming&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Best of all, none of this introduces breaking changes. Every existing backend continues to work exactly as before, while looking a little better.&lt;/p&gt;

&lt;h2&gt;
  
  
  The road to a fully component-based UI
&lt;/h2&gt;

&lt;p&gt;One of EasyAdmin's long-term goals is to render &lt;strong&gt;the entire UI using Twig components&lt;/strong&gt;. Why does that matter? Because as soon as part of the interface becomes a component, you can reuse it in your own templates, whether for custom pages, dashboard widgets, or custom actions, while maintaining exactly the same look and feel as the rest of your backend.&lt;/p&gt;

&lt;p&gt;EasyAdmin already provides components such as &lt;code&gt;Button&lt;/code&gt;, &lt;code&gt;Badge&lt;/code&gt;, &lt;code&gt;Icon&lt;/code&gt;, &lt;code&gt;Alert&lt;/code&gt;, &lt;code&gt;ActionMenu&lt;/code&gt;, and &lt;code&gt;Flag&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight twig"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;twig:ea:Alert&lt;/span&gt; &lt;span class="na"&gt;variant=&lt;/span&gt;&lt;span class="s"&gt;"warning"&lt;/span&gt; &lt;span class="na"&gt;title=&lt;/span&gt;&lt;span class="s"&gt;"Disk space low"&lt;/span&gt; &lt;span class="na"&gt;withDismissButton&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    The server is running out of disk space.
&lt;span class="nt"&gt;&amp;lt;/twig:ea:Alert&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;twig:ea:Badge&lt;/span&gt; &lt;span class="na"&gt;variant=&lt;/span&gt;&lt;span class="s"&gt;"success"&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"product-status"&lt;/span&gt; &lt;span class="na"&gt;data-status=&lt;/span&gt;&lt;span class="s"&gt;"published"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    Published
&lt;span class="nt"&gt;&amp;lt;/twig:ea:Badge&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;EasyAdmin 5.2 adds three more: &lt;strong&gt;&lt;code&gt;Switch&lt;/code&gt;&lt;/strong&gt;, &lt;strong&gt;&lt;code&gt;Pagination&lt;/code&gt;&lt;/strong&gt;, and &lt;strong&gt;&lt;code&gt;Modal&lt;/code&gt;&lt;/strong&gt;. It also expands several existing components with new features. To make them easier to discover, there's a new &lt;a href="https://symfony.com/bundles/EasyAdminBundle/current/components.html" rel="noopener noreferrer"&gt;&lt;em&gt;Twig Components&lt;/em&gt; documentation page&lt;/a&gt; with practical examples for every component.&lt;/p&gt;

&lt;h2&gt;
  
  
  Modals that finally look the part
&lt;/h2&gt;

&lt;p&gt;Let's start with my favorite new feature. EasyAdmin has always used modal dialogs for delete confirmations, batch actions, filters, and more. Until now, they used Bootstrap's default styling, which looked functional but somewhat dated.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;BEFORE&lt;/strong&gt;: default styling, including a dark backdrop, shown at the top of the screen and with a slide in/out animation&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0zl2xw5cv4cbairfnf6u.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0zl2xw5cv4cbairfnf6u.jpg" alt="Classic Bootstrap modal window in EasyAdmin backends" width="800" height="550"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In EasyAdmin 5.2, modals have been completely refreshed with a cleaner, more modern design inspired by projects such as &lt;a href="https://ui.shadcn.com/" rel="noopener noreferrer"&gt;shadcn/ui&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;AFTER&lt;/strong&gt;: custom styling, with a slightly blurred backdrop, shown at the center of the screen and with a fade in/out animation&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fecar23veezfxqjwpxyth.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fecar23veezfxqjwpxyth.jpg" alt="New shadcn-inspired modal window in EasyAdmin backends" width="800" height="550"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The best part is that modals are now available as a reusable component. Opening and closing them is handled by two lightweight helper components, so you no longer need to remember Bootstrap's &lt;code&gt;data-bs-*&lt;/code&gt; attributes:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight twig"&gt;&lt;code&gt;&lt;span class="c"&gt;{# a button that opens the modal #}&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;twig:ea:Modal:Trigger&lt;/span&gt; &lt;span class="na"&gt;target=&lt;/span&gt;&lt;span class="s"&gt;"#delete-modal"&lt;/span&gt; &lt;span class="na"&gt;variant=&lt;/span&gt;&lt;span class="s"&gt;"danger"&lt;/span&gt; &lt;span class="na"&gt;icon=&lt;/span&gt;&lt;span class="s"&gt;"internal:delete"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    Delete
&lt;span class="nt"&gt;&amp;lt;/twig:ea:Modal:Trigger&amp;gt;&lt;/span&gt;

&lt;span class="c"&gt;{# the modal itself #}&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;twig:ea:Modal&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;"delete-modal"&lt;/span&gt; &lt;span class="na"&gt;title=&lt;/span&gt;&lt;span class="s"&gt;"Delete this item?"&lt;/span&gt; &lt;span class="na"&gt;description=&lt;/span&gt;&lt;span class="s"&gt;"This action cannot be undone."&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;twig:block&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"footer"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;twig:ea:Modal:Close&amp;gt;&lt;/span&gt;Cancel&lt;span class="nt"&gt;&amp;lt;/twig:ea:Modal:Close&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;twig:ea:Button&lt;/span&gt; &lt;span class="na"&gt;variant=&lt;/span&gt;&lt;span class="s"&gt;"danger"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Delete&lt;span class="nt"&gt;&amp;lt;/twig:ea:Button&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/twig:block&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/twig:ea:Modal&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;Modal:Trigger&lt;/code&gt; and &lt;code&gt;Modal:Close&lt;/code&gt; both wrap &lt;code&gt;&amp;lt;twig:ea:Button&amp;gt;&lt;/code&gt;, so they support all of the same props (&lt;code&gt;variant&lt;/code&gt;, &lt;code&gt;icon&lt;/code&gt;, &lt;code&gt;size&lt;/code&gt;, etc.). Need something more sophisticated? Modals also support multiple sizes (&lt;code&gt;sm&lt;/code&gt;, &lt;code&gt;lg&lt;/code&gt;, &lt;code&gt;xl&lt;/code&gt;), an optional icon above the content, and fully customizable body and footer blocks:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight twig"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;twig:ea:Modal&lt;/span&gt; &lt;span class="na"&gt;id=&lt;/span&gt;&lt;span class="s"&gt;"warn-modal"&lt;/span&gt; &lt;span class="na"&gt;size=&lt;/span&gt;&lt;span class="s"&gt;"lg"&lt;/span&gt; &lt;span class="na"&gt;topIcon=&lt;/span&gt;&lt;span class="s"&gt;"internal:circle-exclamation"&lt;/span&gt; &lt;span class="na"&gt;title=&lt;/span&gt;&lt;span class="s"&gt;"Are you sure?"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;twig:block&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"body"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;p&amp;gt;&lt;/span&gt;Any markup you need goes here.&lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/twig:block&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;twig:block&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"footer"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;twig:ea:Modal:Close&amp;gt;&lt;/span&gt;No&lt;span class="nt"&gt;&amp;lt;/twig:ea:Modal:Close&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;twig:ea:Button&lt;/span&gt; &lt;span class="na"&gt;variant=&lt;/span&gt;&lt;span class="s"&gt;"primary"&lt;/span&gt; &lt;span class="na"&gt;data-bs-dismiss=&lt;/span&gt;&lt;span class="s"&gt;"modal"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Yes&lt;span class="nt"&gt;&amp;lt;/twig:ea:Button&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/twig:block&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/twig:ea:Modal&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Under the hood, these modals still rely on Bootstrap's JavaScript implementation. Only the visual design and developer experience have changed.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Better Looking Switches
&lt;/h2&gt;

&lt;p&gt;Rather than waiting for a major release to redesign the entire interface, we're gradually modernizing EasyAdmin through smaller improvements in each minor release. Switches (the on/off toggles) are a good example. In EasyAdmin 5.2, they've been redesigned with a more polished appearance and are now available as a reusable component:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight twig"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;twig:ea:Switch&lt;/span&gt; &lt;span class="na"&gt;checked&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;twig:ea:Switch&lt;/span&gt; &lt;span class="na"&gt;checked&lt;/span&gt; &lt;span class="na"&gt;variant=&lt;/span&gt;&lt;span class="s"&gt;"success"&lt;/span&gt; &lt;span class="na"&gt;size=&lt;/span&gt;&lt;span class="s"&gt;"sm"&lt;/span&gt; &lt;span class="na"&gt;ariaLabel=&lt;/span&gt;&lt;span class="s"&gt;"Enable notifications"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Previously, switches always used the same size and color. They now support multiple color variants (&lt;code&gt;success&lt;/code&gt;, &lt;code&gt;warning&lt;/code&gt;, &lt;code&gt;danger&lt;/code&gt;) and sizes (&lt;code&gt;sm&lt;/code&gt;, &lt;code&gt;md&lt;/code&gt;).&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flv72r2lbzw2unnqsaupu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flv72r2lbzw2unnqsaupu.png" alt="Updated switch design in EasyAdmin backends" width="800" height="267"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Badges in form tabs
&lt;/h2&gt;

&lt;p&gt;Outside the component work, here's a small but useful addition: you can now display a &lt;strong&gt;badge next to a form tab label&lt;/strong&gt;. This is perfect for showing the number of related items or highlighting sections that need attention:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="kn"&gt;use&lt;/span&gt; &lt;span class="nc"&gt;EasyCorp\Bundle\EasyAdminBundle\Field\FormField&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;yield&lt;/span&gt; &lt;span class="nc"&gt;FormField&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;addTab&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'Shipping'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;setBadge&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$order&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;getShipments&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nb"&gt;count&lt;/span&gt;&lt;span class="p"&gt;());&lt;/span&gt;

&lt;span class="k"&gt;yield&lt;/span&gt; &lt;span class="nc"&gt;FormField&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;addTab&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'Reviews'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;setBadge&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'New'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'warning'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Badge content can be a string, number, boolean, any &lt;code&gt;Stringable&lt;/code&gt; object, or even a &lt;strong&gt;callable&lt;/strong&gt;, which is evaluated lazily. If the resolved value is &lt;code&gt;null&lt;/code&gt; or &lt;code&gt;false&lt;/code&gt;, the badge is hidden automatically. This makes expressions such as &lt;code&gt;-&amp;gt;setBadge($errorCount ?: null)&lt;/code&gt; work exactly as expected.&lt;/p&gt;

&lt;h2&gt;
  
  
  Theming, coming soon
&lt;/h2&gt;

&lt;p&gt;The biggest change in EasyAdmin 5.2 (and recent versions) is also the least visible. We're laying the foundation for a future &lt;strong&gt;theming system&lt;/strong&gt; that will let you customize the entire backend using a small set of global design variables, much like shadcn/ui.&lt;/p&gt;

&lt;p&gt;Building that theming feature requires a lot of internal work. EasyAdmin's CSS is being reorganized so that colors, spacing, border radii, and other visual properties are driven by a compact set of design tokens. Much of that refactoring has already landed in 5.2, although there's still more work ahead.&lt;/p&gt;

&lt;h2&gt;
  
  
  Summary
&lt;/h2&gt;

&lt;p&gt;EasyAdmin 5.2 introduces &lt;strong&gt;more reusable Twig components&lt;/strong&gt;, &lt;strong&gt;incremental visual improvements&lt;/strong&gt;, and the &lt;strong&gt;foundation for theming&lt;/strong&gt;, all while remaining &lt;strong&gt;100% backwards compatible&lt;/strong&gt;.&lt;/p&gt;




&lt;p&gt;✨ If you enjoyed this feature and want to see more like it, consider &lt;a href="https://github.com/sponsors/javiereguiluz" rel="noopener noreferrer"&gt;sponsoring the EasyAdmin project&lt;/a&gt; 🙌💡&lt;/p&gt;

</description>
      <category>easyadmin</category>
      <category>symfony</category>
      <category>twig</category>
    </item>
    <item>
      <title>New in EasyAdmin: Automatic Entity Injection in Custom Actions</title>
      <dc:creator>Javier Eguiluz</dc:creator>
      <pubDate>Mon, 22 Jun 2026 06:32:42 +0000</pubDate>
      <link>https://dev.to/javiereguiluz/new-in-easyadmin-automatic-entity-injection-in-custom-actions-4gin</link>
      <guid>https://dev.to/javiereguiluz/new-in-easyadmin-automatic-entity-injection-in-custom-actions-4gin</guid>
      <description>&lt;p&gt;&lt;a href="https://github.com/EasyCorp/EasyAdminBundle/releases/tag/v5.1.0" rel="noopener noreferrer"&gt;EasyAdmin 5.1&lt;/a&gt; is out with a small new feature that delivers a big quality-of-life improvement: your custom actions can now receive the current entity (e.g. &lt;code&gt;Order $order&lt;/code&gt;) as a typed argument, &lt;strong&gt;automatically injected by Symfony with zero configuration&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The &lt;code&gt;{entityId}&lt;/code&gt; Placeholder
&lt;/h2&gt;

&lt;p&gt;Every EasyAdmin route that operates on a single entity (&lt;code&gt;edit&lt;/code&gt;, &lt;code&gt;detail&lt;/code&gt;, &lt;code&gt;delete&lt;/code&gt;, or your own custom actions) identifies that entity through a route placeholder. Until now, that placeholder was always called &lt;code&gt;{entityId}&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="na"&gt;#[AdminRoute('/{entityId}/invoice')]&lt;/span&gt;
&lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;renderInvoice&lt;/span&gt;&lt;span class="p"&gt;():&lt;/span&gt; &lt;span class="kt"&gt;Response&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="c1"&gt;// ...&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It works, but &lt;code&gt;entityId&lt;/code&gt; is an EasyAdmin-specific name, and Symfony has no way of knowing that it represents your entity's identifier.&lt;/p&gt;

&lt;h2&gt;
  
  
  Custom Actions: Before and After
&lt;/h2&gt;

&lt;p&gt;Imagine you have an &lt;code&gt;OrderCrudController&lt;/code&gt; with a custom action that renders an invoice:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="kn"&gt;use&lt;/span&gt; &lt;span class="nc"&gt;App\Entity\Order&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kn"&gt;use&lt;/span&gt; &lt;span class="nc"&gt;EasyCorp\Bundle\EasyAdminBundle\Attribute\AdminRoute&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kn"&gt;use&lt;/span&gt; &lt;span class="nc"&gt;EasyCorp\Bundle\EasyAdminBundle\Config\Action&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kn"&gt;use&lt;/span&gt; &lt;span class="nc"&gt;EasyCorp\Bundle\EasyAdminBundle\Config\Actions&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kn"&gt;use&lt;/span&gt; &lt;span class="nc"&gt;EasyCorp\Bundle\EasyAdminBundle\Controller\AbstractCrudController&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;OrderCrudController&lt;/span&gt; &lt;span class="kd"&gt;extends&lt;/span&gt; &lt;span class="nc"&gt;AbstractCrudController&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;configureActions&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;Actions&lt;/span&gt; &lt;span class="nv"&gt;$actions&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt; &lt;span class="kt"&gt;Actions&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nv"&gt;$viewInvoice&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Action&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="k"&gt;new&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'viewInvoice'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'Invoice'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'fa fa-file-invoice'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;linkToCrudAction&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'renderInvoice'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nv"&gt;$actions&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;add&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;Crud&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="no"&gt;PAGE_DETAIL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$viewInvoice&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="c1"&gt;// ...&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The interesting part is the action method. In most cases, you'll want access to the actual &lt;code&gt;Order&lt;/code&gt; object. &lt;strong&gt;Before&lt;/strong&gt;, when using &lt;code&gt;{entityId}&lt;/code&gt;, you had two options, and neither was particularly elegant.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Option 1:&lt;/strong&gt; Explicitly define a &lt;em&gt;mapped route parameter&lt;/em&gt; so Symfony knows how to resolve the entity:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="na"&gt;#[AdminRoute('/{entityId:order.id}/invoice')]&lt;/span&gt;
&lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;renderInvoice&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;Order&lt;/span&gt; &lt;span class="nv"&gt;$order&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt; &lt;span class="kt"&gt;Response&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="c1"&gt;// ...&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Option 2:&lt;/strong&gt; Receive the raw identifier and retrieve the entity yourself from the admin context:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="na"&gt;#[AdminRoute('/{entityId}/invoice')]&lt;/span&gt;
&lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;renderInvoice&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;AdminContext&lt;/span&gt; &lt;span class="nv"&gt;$context&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt; &lt;span class="kt"&gt;Response&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nv"&gt;$order&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;$context&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;getEntity&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;getInstance&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
    &lt;span class="c1"&gt;// ...&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  The New &lt;code&gt;{id}&lt;/code&gt; Placeholder
&lt;/h3&gt;

&lt;p&gt;EasyAdmin 5.1 lets you use &lt;strong&gt;&lt;code&gt;{id}&lt;/code&gt;&lt;/strong&gt; as an alias for &lt;code&gt;{entityId}&lt;/code&gt;. This may look like a small change, but it unlocks automatic entity injection and makes route definitions feel more natural. Your custom action can now look like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="na"&gt;#[AdminRoute('/{id}/invoice')]&lt;/span&gt;
&lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;renderInvoice&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;Order&lt;/span&gt; &lt;span class="nv"&gt;$order&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt; &lt;span class="kt"&gt;Response&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="c1"&gt;// that's it, $order is the fully loaded entity&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's the entire trick. Because the placeholder is named &lt;code&gt;{id}&lt;/code&gt; (matching the identifier property used by most entities), Symfony's &lt;code&gt;EntityValueResolver&lt;/code&gt; can automatically inject the corresponding &lt;code&gt;Order&lt;/code&gt;. No mapping syntax and no manual lookup. Your custom action becomes a regular Symfony controller method.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Automatic entity injection relies on DoctrineBundle's &lt;code&gt;controller_resolver.auto_mapping&lt;/code&gt; option. If your application doesn't enable it, add a &lt;code&gt;#[MapEntity]&lt;/code&gt; attribute to the argument (&lt;code&gt;#[MapEntity] Order $order&lt;/code&gt;).&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Building Admin URLs: &lt;code&gt;setId()&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;The same idea applies when building admin URLs programmatically. EasyAdmin's &lt;code&gt;AdminUrlGenerator&lt;/code&gt; (available in Twig as &lt;code&gt;ea_url()&lt;/code&gt;) has always provided a &lt;code&gt;setEntityId()&lt;/code&gt; method:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight twig"&gt;&lt;code&gt;&lt;span class="cp"&gt;{%&lt;/span&gt; &lt;span class="k"&gt;set&lt;/span&gt; &lt;span class="nv"&gt;url&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;ea_url&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="err"&gt;.&lt;/span&gt;&lt;span class="nv"&gt;setController&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'...'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="err"&gt;.&lt;/span&gt;&lt;span class="nv"&gt;setAction&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'detail'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="err"&gt;.&lt;/span&gt;&lt;span class="nv"&gt;setEntityId&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;product.id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;EasyAdmin 5.1 introduces a shorter and more natural alias: &lt;strong&gt;&lt;code&gt;setId()&lt;/code&gt;&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight twig"&gt;&lt;code&gt;&lt;span class="cp"&gt;{%&lt;/span&gt; &lt;span class="k"&gt;set&lt;/span&gt; &lt;span class="nv"&gt;url&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;ea_url&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="err"&gt;.&lt;/span&gt;&lt;span class="nv"&gt;setController&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'...'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="err"&gt;.&lt;/span&gt;&lt;span class="nv"&gt;setAction&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'detail'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="err"&gt;.&lt;/span&gt;&lt;span class="nv"&gt;setId&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;product.id&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="cp"&gt;%}&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;a&lt;/span&gt; &lt;span class="na"&gt;href=&lt;/span&gt;&lt;span class="s"&gt;"&lt;/span&gt;&lt;span class="cp"&gt;{{&lt;/span&gt; &lt;span class="nv"&gt;url&lt;/span&gt; &lt;span class="cp"&gt;}}&lt;/span&gt;&lt;span class="s"&gt;"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;&lt;span class="cp"&gt;{{&lt;/span&gt; &lt;span class="nv"&gt;product.name&lt;/span&gt; &lt;span class="cp"&gt;}}&lt;/span&gt;&lt;span class="nt"&gt;&amp;lt;/a&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can use both methods indistinctevily. Also, &lt;code&gt;setId()&lt;/code&gt; works regardless of whether the target route uses &lt;code&gt;{id}&lt;/code&gt; or &lt;code&gt;{entityId}&lt;/code&gt;. Internally, it stores the canonical entity identifier, and EasyAdmin translates it into the appropriate route parameter when generating the URL.&lt;/p&gt;

&lt;h3&gt;
  
  
  The New Placeholder Also Works in CRUD Route Paths
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;{id}&lt;/code&gt; is accepted anywhere EasyAdmin expects the entity placeholder, including when customizing the route paths of the built-in &lt;code&gt;edit&lt;/code&gt;, &lt;code&gt;detail&lt;/code&gt;, and &lt;code&gt;delete&lt;/code&gt; actions:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="c1"&gt;// '/{id}' is equivalent to '/{entityId}', but plays nicer with Symfony&lt;/span&gt;
&lt;span class="s1"&gt;'detail'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'routePath'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="s1"&gt;'/{id}'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Summary
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;{id}&lt;/code&gt; is a drop-in alias for &lt;code&gt;{entityId}&lt;/code&gt;, so both placeholders continue to work and nothing breaks. There's no need to update existing code. However, switching to &lt;code&gt;{id}&lt;/code&gt; gives you cleaner route definitions and automatic entity injection in custom actions, making them feel like regular Symfony controllers. Combined with the new &lt;code&gt;setId()&lt;/code&gt; method, it also makes URL generation a little cleaner and more expressive throughout your admin code.&lt;/p&gt;




&lt;p&gt;✨ If you enjoyed this feature and want to see more like it, consider &lt;a href="https://github.com/sponsors/javiereguiluz" rel="noopener noreferrer"&gt;sponsoring the EasyAdmin project&lt;/a&gt; 🙌💡&lt;/p&gt;

</description>
      <category>easyadmin</category>
      <category>symfony</category>
      <category>doctrine</category>
      <category>php</category>
    </item>
  </channel>
</rss>
