Skjena
Skjena
FFilament
Created by sneevilz on 9/5/2024 in #❓┊help
How to add or custom the function for "New Models" button
Yes
6 replies
FFilament
Created by Skjena on 2/8/2024 in #❓┊help
Can't get the field when disabled
Thanks @Hussain4real and @DariusIII . It's working fine.
17 replies
FFilament
Created by Skjena on 2/8/2024 in #❓┊help
Can't get the field when disabled
Here is my code snippet looks like
Select::make('employee_id')
->relationship(
'employee',
fn () => "full_name",
function ($query) {
return $query->limit(10);
}
)
->searchable()
->default(function () {
return auth()->user()?->employee?->id;
})
->dehydrated()
->disabled(!auth()->user()->hasRole(['manager', 'super-admin']))
->required()
->reactive()
Select::make('employee_id')
->relationship(
'employee',
fn () => "full_name",
function ($query) {
return $query->limit(10);
}
)
->searchable()
->default(function () {
return auth()->user()?->employee?->id;
})
->dehydrated()
->disabled(!auth()->user()->hasRole(['manager', 'super-admin']))
->required()
->reactive()
17 replies
FFilament
Created by Skjena on 2/8/2024 in #❓┊help
Can't get the field when disabled
i have tried this also doesn't work.
17 replies
FFilament
Created by Skjena on 2/8/2024 in #❓┊help
Can't get the field when disabled
Yeah actually i have not change the field and it was required field in my table. At the time of record creation that employee_id key was not there so it's returning error.
17 replies
FFilament
Created by Skjena on 2/8/2024 in #❓┊help
Can't get the field when disabled
If the field was hidden also can't get that inside $data.
17 replies
FFilament
Created by Skjena on 2/8/2024 in #❓┊help
Can't get the field when disabled
Thanks for your suggestion. I have tried this also but it act same like as disabled.
17 replies
FFilament
Created by Skjena on 2/8/2024 in #❓┊help
Can't get the field when disabled
That's a Select field and Select::readOnly does not exist.
17 replies
FFilament
Created by Skjena on 9/1/2023 in #❓┊help
The table design breaks after adding url() to the table columns.
yeah
7 replies
FFilament
Created by Skjena on 11/29/2023 in #❓┊help
Encounter a network issue while uploading a file using SpatieMediaLibraryFileUpload
Thanks for the response, but I have configured the s3 disk for my production as the default storage, and yet encountered the same issue in production.
9 replies
FFilament
Created by Skjena on 11/29/2023 in #❓┊help
Encounter a network issue while uploading a file using SpatieMediaLibraryFileUpload
No, the console log is clear except for the message shown in your picture.
9 replies
FFilament
Created by Skjena on 11/29/2023 in #❓┊help
Encounter a network issue while uploading a file using SpatieMediaLibraryFileUpload
Here is encountering a network issue when attempting to create.
9 replies
FFilament
Created by Skjena on 11/29/2023 in #❓┊help
Encounter a network issue while uploading a file using SpatieMediaLibraryFileUpload
9 replies
FFilament
Created by Bagus A on 11/18/2023 in #❓┊help
Where to rename create button in OrderResource page?
You can modify this inside the CreateOrder page not on the OrderResource.
8 replies
FFilament
Created by Bagus A on 11/18/2023 in #❓┊help
Where to rename create button in OrderResource page?
You can achieve that like
Actions\CreateAction::make()
->label('Create Order')
->icon()
Actions\CreateAction::make()
->label('Create Order')
->icon()
8 replies
FFilament
Created by Lágrimas on 11/17/2023 in #❓┊help
login page
You should make a custom login page.
5 replies
FFilament
Created by Rahul on 10/25/2023 in #❓┊help
Execution Order Change Causing Filter Value Mismatch in Filament-v3 Widget
I am unable to utilize the suggested approach as advised by others also like
Filter::make('month')
->form([
Select::make('value')
->disablePlaceholderSelection()
->options($months_list)
->default($today->format('Y-m-01')),
])
->query(function (Builder $query, array $data): Builder {
//code
})
Filter::make('month')
->form([
Select::make('value')
->disablePlaceholderSelection()
->options($months_list)
->default($today->format('Y-m-01')),
])
->query(function (Builder $query, array $data): Builder {
//code
})
because my objective is a bit different.
20 replies
FFilament
Created by Rahul on 10/25/2023 in #❓┊help
Execution Order Change Causing Filter Value Mismatch in Filament-v3 Widget
Is there an alternative method to obtain the filter value within the getTableQuery() function, given that my table query builder relies on the filter value to determine both the query and the number of columns to return, making it impractical to handle using query() within the filter?
20 replies
FFilament
Created by Rahul on 10/25/2023 in #❓┊help
Execution Order Change Causing Filter Value Mismatch in Filament-v3 Widget
but in V3 $month_selected = $this->tableFilters["month"]["value"]; returns null
20 replies