digitall_it
arch test example
How this pest arch test should be changed to work correctly?
<?php
use Filament\Resources\Resource;
arch('resources have UI attributes')
->expect('App\Filament\Resources*')
->classes()
->toExtend(Resource::class)
->toHaveProperties(
[
'modelLabel',
'navigationGroup',
'navigationIcon',
'pluralModelLabel',
'recordTitleAttribute'
]
)
->not->toHaveProperty('label’);
2 replies
StripeInput
Greetings, I would like to create a StripeInput field for the Filament Form Builder. I would like to create a Payment Intent and then use it later to perform payments on the customer. I am currently stuck at the submission process, because the field should tackle into the form submission and after Filament validation do it's magic. Any help is appreciated, and also I would love to know more about the correct way to implement custom fields because I have a lot of ideas that I would like to share as plugins, both for standalone usage on the Filament Form and on the Filament Admin Builder.
42 replies