benedict.regore
benedict.regore
FFilament
Created by benedict.regore on 8/25/2023 in #❓┊help
Placeholder Component Testing
Hello is it possible to test the Placeholder ?
Forms\Components\Placeholder::make('first_name')
->label(trans('First Name'))
->content(fn (Order $record): string => $record->customer_first_name)


it('can render view order page', function () {
$order = OrderFactory::new()->createOne();

livewire(ViewOrder::class, ['record' => $order->getRouteKey()])
->assertFormExists()
->assertSuccessful()
->assertFormSet([
'first_name' => $order->customer_first_name,
])
->assertOk();
});
Forms\Components\Placeholder::make('first_name')
->label(trans('First Name'))
->content(fn (Order $record): string => $record->customer_first_name)


it('can render view order page', function () {
$order = OrderFactory::new()->createOne();

livewire(ViewOrder::class, ['record' => $order->getRouteKey()])
->assertFormExists()
->assertSuccessful()
->assertFormSet([
'first_name' => $order->customer_first_name,
])
->assertOk();
});
2 replies
FFilament
Created by benedict.regore on 4/5/2023 in #❓┊help
Custom page with params
Hello how can i create a custom page with dynamic route params?
3 replies
FFilament
Created by benedict.regore on 3/24/2023 in #❓┊help
Create Action that opens a modal in a custom Livewire Component
Is it possible to create actions that opens a modal in a custom livewire component inside a filament custom page, if it is possible. What are the steps?
14 replies
FFilament
Created by benedict.regore on 3/17/2023 in #❓┊help
Why tailwind class `group` does'nt apply in my filament
<div class="group"> <div class="filament"></div> <button class="group-hover:text-red-500">Hover me!</button> </div>
2 replies