Hro
Hro
Explore posts from servers
FFilament
Created by Hro on 1/8/2024 in #❓┊help
history.replaceState error in safari when having many components with actions
Also, but unrelated, components with actions have quite a performance drawback. I have changed quite a bit to use another modal to overcome that.
4 replies
FFilament
Created by Hro on 1/8/2024 in #❓┊help
history.replaceState error in safari when having many components with actions
So it seems it tries to do this for every component having actions.
4 replies
FFilament
Created by Hro on 1/8/2024 in #❓┊help
history.replaceState error in safari when having many components with actions
Pinned down to
/**
* @var mixed
*/
#[Url(as: 'action')]
public $defaultAction = null;

/**
* @var mixed
*/
#[Url(as: 'actionArguments')]
public $defaultActionArguments = null;
/**
* @var mixed
*/
#[Url(as: 'action')]
public $defaultAction = null;

/**
* @var mixed
*/
#[Url(as: 'actionArguments')]
public $defaultActionArguments = null;
4 replies
FFilament
Created by Hro on 8/4/2023 in #❓┊help
Optional tenancy registration
Hey @pboivin ! As far as I have seen it is not really possible as all routes are wrapped with the tenancy route argument. That means that there should always be a tenant attached to a logged in user. Might dig deeper later, but for now I have just implemented some redirects for users that do not attach to a specific tenant.
4 replies
FFilament
Created by Hro on 8/4/2023 in #❓┊help
Optional tenancy registration
Or better maybe, to be able to exclude certain pages/resources from tenancy
4 replies
FFilament
Created by ba_mbi_07 on 5/10/2023 in #❓┊help
filter is not working in this case
Try to check if $state is not an empty value before you filter.
8 replies
FFilament
Created by ba_mbi_07 on 5/10/2023 in #❓┊help
filter is not working in this case
because the default state is null I guess? so perhaps it filters all where meta_value = null?
8 replies
FFilament
Created by AlexAnder on 3/24/2023 in #❓┊help
Repeater in repeater eager load
26 replies
FFilament
Created by Hro on 4/25/2023 in #❓┊help
Getting the attached and parent record in a relation manager hook
$record I believe I cannot get when attaching (User $record works fine for create after). I am doing this for now:
Tables\Actions\AttachAction::make()->after(function ($data, UsersRelationManager $livewire) {
$user = User::find($data['recordId']);
$unit = $livewire->ownerRecord;
}),
Tables\Actions\AttachAction::make()->after(function ($data, UsersRelationManager $livewire) {
$user = User::find($data['recordId']);
$unit = $livewire->ownerRecord;
}),
11 replies
FFilament
Created by Hro on 4/18/2023 in #❓┊help
Repeaters without grey topbar
That I thought it might be. Thanks.
3 replies
FFilament
Created by Crylar on 4/6/2023 in #❓┊help
How to pass parameters from ListRecords to CreateRecord in Resources?
It does not need to be in there fully, just need some additonal helpers so we can reduce the package implementation footprint.
20 replies
FFilament
Created by Crylar on 4/6/2023 in #❓┊help
How to pass parameters from ListRecords to CreateRecord in Resources?
It may be what you need
20 replies
FFilament
Created by Crylar on 4/6/2023 in #❓┊help
How to pass parameters from ListRecords to CreateRecord in Resources?
20 replies