Ayman Alhattami
Ayman Alhattami
FFilament
Created by Jure on 7/9/2024 in #❓┊help
FileUpload 401 (Unauthorized)
In Laravel 11, this worked with me
->withMiddleware(function (Middleware $middleware) {
$middleware->trustProxies(at: '*');
})
->withMiddleware(function (Middleware $middleware) {
$middleware->trustProxies(at: '*');
})
19 replies
FFilament
Created by Ayman Alhattami on 3/14/2024 in #❓┊help
JavaScript event for table row "<tr>"
Is there a way to add contextmenu event to the table row not to the column?
4 replies
FFilament
Created by Ayman Alhattami on 11/29/2023 in #❓┊help
Dynamic Repeater
No, I used another way
13 replies
FFilament
Created by Ayman Alhattami on 11/29/2023 in #❓┊help
Dynamic Repeater
Ok, I will try
13 replies
FFilament
Created by Ayman Alhattami on 11/29/2023 in #❓┊help
Dynamic Repeater
Is there a way to generate the builder blocks fields based on state changes?
13 replies
FFilament
Created by Ayman Alhattami on 11/29/2023 in #❓┊help
Dynamic Repeater
I read the documentation of both repeater and builder fields, and I did not find any way to generate the builder blocks fields based select field when the state changed
13 replies
FFilament
Created by Ayman Alhattami on 11/3/2023 in #❓┊help
How can I get the uploaded file before saving data
I found a solution, just use
$this->form->getRawState()
$this->form->getRawState()
8 replies
FFilament
Created by Ayman Alhattami on 11/3/2023 in #❓┊help
How can I get the uploaded file before saving data
I also tried
handleRecordCreation
handleRecordCreation
and the same thing, I can get all the data of the form fields from $data parameter, but the file upload field data not found in the $data parameter https://filamentphp.com/docs/3.x/panels/resources/creating-records#customizing-the-creation-process
8 replies
FFilament
Created by Ayman Alhattami on 11/3/2023 in #❓┊help
How can I get the uploaded file before saving data
I have conditions and based on these conditions I store the data either to the actual table or to another table with the uploaded files
8 replies
FFilament
Created by Ayman Alhattami on 11/3/2023 in #❓┊help
How can I get the uploaded file before saving data
I used
mutateFormDataBeforeCreate(array $data)
mutateFormDataBeforeCreate(array $data)
to catch the data before save and do my customization, I can get all the data of the form fields from $data parameter, but the file upload field data not found in the $data parameter in this function Customizing data before saving
8 replies
FFilament
Created by Ayman Alhattami on 10/15/2023 in #❓┊help
I need to get table query in header action or bulk action based on table filter
8 replies
FFilament
Created by Ayman Alhattami on 10/15/2023 in #❓┊help
I need to get table query in header action or bulk action based on table filter
and also I found https://github.com/filamentphp/filament/discussions/5502 but it does not worked with me
8 replies
FFilament
Created by Ayman Alhattami on 10/15/2023 in #❓┊help
I need to get table query in header action or bulk action based on table filter
I found this, but I do not know how to used it in the resource table header actions https://v2.filamentphp.com/tricks/getting-the-table-query-with-sorting-and-filtering-applied
8 replies
FFilament
Created by Ayman Alhattami on 10/15/2023 in #❓┊help
I need to get table query in header action or bulk action based on table filter
Yes, I searched. I did not find a solution
8 replies
FFilament
Created by Ayman Alhattami on 9/3/2023 in #❓┊help
How can I align the 'save changes' action button to the right side?
I found the solution, just override
$formActionsAlignment
$formActionsAlignment
in page class
namespace Filament\Pages\Page;

class ManageSettings extends Page
{
// ....
public static string $formActionsAlignment = 'end';
// ....
}
namespace Filament\Pages\Page;

class ManageSettings extends Page
{
// ....
public static string $formActionsAlignment = 'end';
// ....
}
4 replies
FFilament
Created by Gaspar on 8/7/2023 in #❓┊help
SelectFilter - can i provide my own value + label / remove the default option
This work with me
->filters([
SelectFilter::make('currency_id')
->relationship('currency', 'name')
->searchable()
->default(Currency::default()->id)
->query(function (Builder $query, array $data): Builder {
return $query
->when(
optional($data)['value'],
fn (Builder $query, $date): Builder => $query->where('currency_id', optional($data)['value']),
);
}),
])
->filters([
SelectFilter::make('currency_id')
->relationship('currency', 'name')
->searchable()
->default(Currency::default()->id)
->query(function (Builder $query, array $data): Builder {
return $query
->when(
optional($data)['value'],
fn (Builder $query, $date): Builder => $query->where('currency_id', optional($data)['value']),
);
}),
])
6 replies
FFilament
Created by Ayman Alhattami on 4/13/2023 in #❓┊help
Can I use Form layouts like FieldSet with table filter ?
Ok, I will try
17 replies
FFilament
Created by Ayman Alhattami on 4/13/2023 in #❓┊help
Can I use Form layouts like FieldSet with table filter ?
I've checked the docs and I did not found anything talking about that
17 replies
FFilament
Created by Ayman Alhattami on 4/13/2023 in #❓┊help
Can I use Form layouts like FieldSet with table filter ?
17 replies
FFilament
Created by Ayman Alhattami on 4/13/2023 in #❓┊help
Can I use Form layouts like FieldSet with table filter ?
This is the filter I used in the resource
17 replies