zenepay
Root composer.json requires filament/filament 3.2.1.4
delete composer.lock, run composer update and re-install the filament. you may need to alter some plugin in the vendor folder. They could require conflict dependencies. Consider to install those conflict after Filament.
7 replies
I try to seed using has function for relationship but does not create child record.
In fact, I just want to be easy for searching. User will search on this child property_services, with house_no. If I don't pass this in db, I have to search across table, I think it will be slower.
7 replies
I try to seed using has function for relationship but does not create child record.
I follow idea from this https://laravel.com/docs/11.x/eloquent-factories
$user = User::factory()
->has(
Post::factory()
->count(3)
->state(function (array $attributes, User $user) {
return ['user_type' => $user->type];
})
)
->create();
7 replies
Dashboard responsive columns not working as I expected
You may have to rewrite the widget view:
@php
$columns = $this->getColumns();
@endphp
<x-filament-widgets::widget class="fi-wi-stats-overview">
<div @if ($pollingInterval = $this->getPollingInterval()) wire:poll.{{ $pollingInterval }} @endif @class([
'fi-wi-stats-overview-stats-ctn grid gap-6 grid-cols-2',
'md:grid-cols-1' => $columns === 1,
'md:grid-cols-2' => $columns === 2,
'md:grid-cols-3' => $columns === 3,
'md:grid-cols-4' => $columns === 4,
'md:grid-cols-5 xl:grid-cols-5' => $columns === 5,
])>
@foreach ($this->getCachedStats() as $stat)
{{ $stat }}
@endforeach
</div>
</x-filament-widgets::widget>
3 replies
Form does not display filled data.
Thank you for this. In fact, I can set default value to the form as well, it works that way. But I wonder that why if I have uploadFile field in the form, it just works using current method. I would like to understand how to life cycle work and hook to anyways, so, Filament will not have any limitation on developing for any projects.
7 replies
Aside from Edit, Delete, and View actions, how can I create a new action button with custom page?
5 replies
Form does not revalidate after change value
remove this modified function it works.
protected function getCreateFormAction(): Action
{
return Action::make('create')
->label(__('filament-panels::resources/pages/create-record.form.actions.create.label'))
->submit('create')
->keyBindings(['mod+s']);
}
5 replies
DeleteBulkAction and ForceDeleteBulkAction policies
I totally agree. DeleteBulkAction still allow to users even we unable them in Policy to not allow delete and not allow deleteAny. It does not make sense to custom set here. This should be added to next version.
Also fo view, I cannot view the record, if I don't also enable set viewAny. That means I cannot directly open a page if I don't set view any for that user. I think view a record should not need to view any.
26 replies