Data-first resources
Keep the model, relationships, validation and business rules at the center. SeviaFlow works around your Laravel application instead of hiding it behind a visual builder.
final class CustomerResource extends Resource
{
protected static string $model = Customer::class;
public static function form(Form $form): Form
{
return $form->fields([
TextField::make('name'
)->required(),
EmailField::make('email'
)->required(),
]);
}
}
