Each feature gets a demo in the admin panel of a made-up disc golf shop, and then Robbie, the animated robot in the video, shows the code behind it. All four are covered in Alex Six’s article on Filament Insights, Rich Editor upgrades, deferred forms, and other quality of life improvements.
The four features
01Rich editor: a block picker with icons, a grid and search
Since v5.9 the rich editor’s custom blocks panel can have an icon for each block, a grid layout and a search field. The demo is the page builder for the shop’s website, with twelve custom blocks in four groups. The search matches a block’s name or the name of its group.
In the code: customBlocksGrid() and searchableCustomBlocks() on the RichEditor, and a getIcon() method on each block. The groups are the string keys of the customBlocks() array. Docs · Pull request #20448
02Forms: lazy-loaded content
Since v5.8 a form can lazy load a child schema. The demo is the shop’s product form: a disc’s 36 variants are in a collapsed Variants section, and their fields load in a separate request when the section is opened. The edit page sends about 100 KB of HTML with the section lazy loaded and about 960 KB without.
In the code: The fields go in a Schema of their own, marked lazyLoaded(), inside a Section with a key(). Only the rendering is deferred. The form’s data loads with the page, so saving without opening the section keeps every variant. The article calls the method deferLoading(). Since v5.11 it is lazyLoaded(), and the old name still works. Docs · Pull request #19867 · Pull request #20831, the rename
03Tables: a loading skeleton while the rows refresh
Since v5.10 a table can cover its rows with a skeleton while new ones load: after a sort, a search, a filter or a page change. The column headings and the pagination stay where they are. The demo is the shop’s orders table, with each refresh held for 0.9 seconds so the skeleton stays up long enough to see.
In the code: loadingSkeleton() on the table. The skeleton shows once a request has been in flight for 200 milliseconds, which is Livewire’s loading delay. Docs · Pull request #20632
04Multi-factor challenge: ask for a code before a refund
Since v5.8 the multi-factor challenge from Filament’s login page can be used anywhere. The demo is a Refund action on the shop’s orders. It opens a modal that asks for the six-digit code from an authenticator app, and refunds the order only when the code is right.
In the code: The modal’s schema is MultiFactorChallenge::make()->getFormComponents(). In mountUsing() the action checks that the user has a factor, and in beforeFormValidated() it checks the rate limit. The challenge only verifies the code, so the action also authorizes the refund against the policy. Docs · Pull request #20353

