Abrar
Abrar
FFilament
Created by Abrar on 9/29/2024 in #❓┊help
Is there a way to remove requireConfirmation model Icon?
No description
4 replies
FFilament
Created by Abrar on 4/28/2024 in #❓┊help
Dynamic Form Validations
Hi, We stored different validations in database. How can we dynamically apply Filament field validations based on selected DB record. For example
->acceptedFileTypes(fn(Forms\Get $get) => MediaConfiguration::where('collection_name', $get('purpose'))->first()?->mime_types ?? ['image/*'])
->acceptedFileTypes(fn(Forms\Get $get) => MediaConfiguration::where('collection_name', $get('purpose'))->first()?->mime_types ?? ['image/*'])
In above example, I want to set File mime type, based on another selected Media Configuration. But this is not working. Is there any workaround?
1 replies
FFilament
Created by Abrar on 3/24/2024 in #❓┊help
How to achieve this table layout?
No description
11 replies
FFilament
Created by Abrar on 12/26/2023 in #❓┊help
How to add text field in relationship manager header?
Hi, I have a rooms relationship and I want to have a general description for all rooms. general_description fields is part of belongs to model but I want to show it at top of relationship manager. Is there a way to achieve this?
6 replies
FFilament
Created by Abrar on 12/18/2023 in #❓┊help
Alpine: Cannot read properties of undefined (reading 'nestable')
We are using https://github.com/solutionforest/filament-tree for creating tree like structure of parent child categories. We are facing the following error
Alpine Expression Error: Cannot read properties of undefined (reading 'nestable')

Expression: "function () {

let nestedTree = $('#filament_tree_container_BxCAKyCkwLPukL2rHBKg').nestable
.
.
.
Alpine Expression Error: Cannot read properties of undefined (reading 'nestable')

Expression: "function () {

let nestedTree = $('#filament_tree_container_BxCAKyCkwLPukL2rHBKg').nestable
.
.
.
Anyone using this pluging and facing the same issue? A little help would be appriaciated.
1 replies
FFilament
Created by Abrar on 12/15/2023 in #❓┊help
How to get relationship value using Get $get unititlity?
Hi, I'm trying to set the value of a field, from a relationship when action clicked. My code looks like this:
Action::make('Name')
->tooltip('Insert accommodation name')
->action(function (Set $set, Get $get, $state) {
$set('seo_title', $get('type.name'));
}),
Action::make('Name')
->tooltip('Insert accommodation name')
->action(function (Set $set, Get $get, $state) {
$set('seo_title', $get('type.name'));
}),
$get('type.name') does not work.
5 replies
FFilament
Created by Abrar on 11/28/2023 in #❓┊help
Show one time messages for user guidance
Hi all, how can we show one time message on Filament builder? I want to add a message which guide users how to interact with table. Once user hide it, it will should stay hidden for that session/browser. In other words, you can say I'm looking to add tips for user guidance,
2 replies