Azorky
Azorky
FFilament
Created by Azorky on 11/21/2024 in #❓┊help
Mount action from resource
I solved the issue. This code needed to be present on the Create and Edit pages, not on the resource itself
5 replies
FFilament
Created by Azorky on 11/21/2024 in #❓┊help
Mount action from resource
use Filament\Actions\Action as ActionsAction;

public function changeLineItemGlAccountAction(): ActionsAction
{
return ActionsAction::make('changeLineItemGlAccount')
->requiresConfirmation()
->modalHeading(__('resources/gl-accounts.change_all_lines'))
->modalDescription(__('resources/gl-accounts.change_all_lines_description'))
->modalCancelActionLabel(__('general.no'))
->modalSubmitActionLabel(__('general.yes'))
->action(function () {
$glAccountId = $this->data['gl_account_id'];

foreach ($this->data['lineItems'] as &$lineItem) {
$lineItem['gl_account_id'] = $glAccountId;
}
});
}
use Filament\Actions\Action as ActionsAction;

public function changeLineItemGlAccountAction(): ActionsAction
{
return ActionsAction::make('changeLineItemGlAccount')
->requiresConfirmation()
->modalHeading(__('resources/gl-accounts.change_all_lines'))
->modalDescription(__('resources/gl-accounts.change_all_lines_description'))
->modalCancelActionLabel(__('general.no'))
->modalSubmitActionLabel(__('general.yes'))
->action(function () {
$glAccountId = $this->data['gl_account_id'];

foreach ($this->data['lineItems'] as &$lineItem) {
$lineItem['gl_account_id'] = $glAccountId;
}
});
}
This function is present in the resource
5 replies
FFilament
Created by Azorky on 9/13/2024 in #❓┊help
Cannot login with session domain set
Clearing the cookies fixed this
4 replies
FFilament
Created by Azorky on 9/13/2024 in #❓┊help
Cannot login with session domain set
No description
4 replies
FFilament
Created by Azorky on 8/15/2024 in #❓┊help
Can't login anymore
I don't know what it could be
11 replies
FFilament
Created by Azorky on 8/15/2024 in #❓┊help
Can't login anymore
Yeah it only occured on localhost when the language was on english, very strange
11 replies
FFilament
Created by Azorky on 8/15/2024 in #❓┊help
Can't login anymore
When setting a SESSION_DOMAIN I was getting like an infinite loop of the page has expired alert
11 replies
FFilament
Created by Azorky on 8/15/2024 in #❓┊help
Can't login anymore
My collegue had the same issue so I don't think it's the encryption key
11 replies
FFilament
Created by Azorky on 8/15/2024 in #❓┊help
Can't login anymore
The encryption key was not changed and I tried with a newly generated one, but it had the same result
11 replies
FFilament
Created by Azorky on 8/15/2024 in #❓┊help
Can't login anymore
No description
11 replies
FFilament
Created by Azorky on 4/5/2024 in #❓┊help
Async notifications
The OCR takes 5 seconds or so, so ideally I want the user to upload something, see some kind of notification, and 5 sec later his whole form is filled in. Is that possible with a queue, to fill in the form from a job?
9 replies
FFilament
Created by Azorky on 4/5/2024 in #❓┊help
Async notifications
Thanks for the quick response!
9 replies
FFilament
Created by Azorky on 4/5/2024 in #❓┊help
Async notifications
I tried using $livewire->dispatch(), but same result
9 replies
FFilament
Created by jaocero on 12/9/2023 in #❓┊help
Uncaught Snapshot missing on Livewire component with id: 5k8cfyjIWCqpkMXB2LHv
Thank you!
27 replies
FFilament
Created by jaocero on 12/9/2023 in #❓┊help
Uncaught Snapshot missing on Livewire component with id: 5k8cfyjIWCqpkMXB2LHv
Hey @jaocero , How were you able to solve this exactly? I'm following the same steps as you here, but my modal is not opening at all now
27 replies
FFilament
Created by Azorky on 1/31/2024 in #❓┊help
How can I change the redirect url of the cancel button on the create page?
Thanks for the tip. I used this to make the cancel button redirect to itself, causing the screen to refresh:
protected function getFormActions(): array
{
return [
Actions\CreateAction::make()
->submit('save')
->label('Aanmaken'),
Actions\Action::make('cancel')
->label('Annuleren')
->color('gray')
->url($this->getResource()::getUrl('create', ['project' => $this->project->id])),
];
}
protected function getFormActions(): array
{
return [
Actions\CreateAction::make()
->submit('save')
->label('Aanmaken'),
Actions\Action::make('cancel')
->label('Annuleren')
->color('gray')
->url($this->getResource()::getUrl('create', ['project' => $this->project->id])),
];
}
4 replies
FFilament
Created by Azorky on 1/20/2024 in #❓┊help
Toggle afterStateUpdated call action
In a form
14 replies
FFilament
Created by Azorky on 1/24/2024 in #❓┊help
Split item width
Thanks for helping out!
21 replies
FFilament
Created by Azorky on 1/24/2024 in #❓┊help
Split item width
Whilst you can't pass a closure to columns, you can with columnSpan
21 replies
FFilament
Created by Azorky on 1/24/2024 in #❓┊help
Split item width
->columnSpan(fn (Get $get) => $get('project_id') ? 3 : 4)
->columnSpan(fn (Get $get) => $get('project_id') ? 3 : 4)
21 replies