Filament Select: Use HTML with CSS in Options
When building Filament forms, did you know you can add HTML code for the Select input? Imagine you have a select input with some colors, and you would like to show them.
In-depth Laravel tutorials covering advanced topics, real-world examples, and best practices.
When building Filament forms, did you know you can add HTML code for the Select input? Imagine you have a select input with some colors, and you would like to show them.
People keep asking me about "best practices" in Laravel. However, there are clear BAD practices. So, in this article, I will list the most common ones.
In Filament, sometimes you need to show/hide elements based on a condition, like user's role. In this tutorial, we will see how to hide/disable Filament Relation Manager if the record doesn't belong to the logged-in user.
Filament comes with native Broadcasting via Echo, but by default, it recommends Pusher. What if you want to use the new Laravel Reverb? Let's see how to do it.
Filament offers authentication features like registration, password reset, with sending emails automatically. How to customize those emails or change texts inside them?
Showing records in the Filament table is simple, but what if you want to modify the original query based on some condition, like user role?
Making parent-child dependent dropdowns in Filament isn't that hard. The problem is the Edit form: how to auto-populate all the Select values from the database correctly?
A quick Filament tip for those who want to remove the label like "Create shop" or "Edit user" above the form.
If you use a Filament Repeater field, you may need to set its values manually: upfront on the page load or based on changes in other fields. In this tutorial, we will show you three scenarios to achieve it.
When working with **money** fields such as `price`, it's common to save values as **cents** in the database. So, the value of `9.98` would be `998` in the DB. In this tutorial, I will show you how to deal with this scenario in Filament.