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.
If you use Laravel Jetstream, you may want to customize where login form redirects to, after submission. For example, what if you want to redirect to different dashboards or URLs, depending on user's role?
If you have a Filament Select with a relationship and want to list only the options that haven't been used yet, you can do it by adding a `modifyQueryUsing` parameter. In this tutorial, we will also ensure that it works correctly for the Edit operation.
Imagine you have a Filament form with Select and Input fields, where that second Input should be visible only if a particular Select item is chosen. In addition, the condition is defined in a DB column from that Select relationship table. How to do it?
If you have a many-to-many relationship and want to fill the pivot table values automatically with Filament form, it's better to do it on Eloquent level, instead of Filament. Let me show you how.