logo light

Filament form with factory data

Image Description
By: Cristian Iosif
  • Published: 24 Oct 2024 Updated: 24 Oct 2024

Sometimes, when we need to test our application locally, we always have to fill forms manually. Let's take the Filament approach and achieve this with more accurate data.

Filament form with factory data

Prepare the Factory definition

Fill the Form Action

Let's show this button only when we are in development mode. To achieve this, let's add a condition to our action definition:

Back to Tricks