FullyLoadedTech
FullyLoadedTech
FFilament
Created by FullyLoadedTech on 11/11/2024 in #❓┊help
File upload customization
If I want to add a "File Type" enum to Filament's FileUpload form field, what's the best way to do this? If I'm not mistaken it's using Filepond so it's not very easy to customize correct? If so then what's the best 3rd party plugin I can rely on in order to be able to categorize uploaded file types? I'm not really looking for a full file manager, just something that is easy to use and doesn't require a license.
2 replies
FFilament
Created by FullyLoadedTech on 10/29/2024 in #❓┊help
Forge Load balancer issues and forceScheme https
In production environment I use a load balancer through Forge so there is the https LB and then 2 http servers. I have set the correct https:// url for both APP_URL and ASSET_URL. I unfrotunately am hitting 2 different errors with Filament depending if I set URL::forceScheme('https') or not. If I don't force https, then certain things like the Filament Logout link don't work, because for some reason it's pointing to http:// and results in an error rather than a redirect. But things like the Reset Password function work as expected (though the email sends with http reset link which redirects to https). If I force https, then the Filament Logout link works. But the Reset Password link results in 403 invalid signature error. I already tried setting trusted proxies middleware '*' (at+headers) but that didn't make a difference. Is there a way to tell Filament to use https for the Logout (and all other) links, without setting URL::forceScheme('https')? There was another user who last message said they needed to force https in the AWS ELB configuration. Don't currently have access on the project I'm on so wondering if there's another way. https://discord.com/channels/883083792112300104/1261204805892706304/1261204805892706304
3 replies
FFilament
Created by FullyLoadedTech on 9/16/2024 in #❓┊help
filament:upgrade causing asset changes in certain dev envs
I am working on a project where running php artisan filament:upgrade on a fresh git clone works without issues. However in one dev env, running that results in file changes to the published assets in /public/. Normally I would only expect for that to happen after a composer update but in this case only composer install was run. Has anyone ever experienced this problem under certain Windows local dev environments?
15 replies
FFilament
Created by FullyLoadedTech on 6/11/2024 in #❓┊help
Table search/filter by json array?
My model has a json attribute which is cast to an array. Filament Table can display this value in a list. However if I add ->searchable() it produces errors, and if I create a SelectFilter it does not effect the query after selection. Is there a trick to searching and filtering by json data attributes?
6 replies
FFilament
Created by FullyLoadedTech on 2/5/2024 in #❓┊help
v4 when
Serious question, just wondering if there's a rough idea when v4 might be released? I understand that v3 release was pushed back to align with Livewire 3, but that will no longer be the case going forward for v4.
2 replies
FFilament
Created by FullyLoadedTech on 8/3/2023 in #❓┊help
For defaultSort() which accepts a string, is there an easy way to sort by multiple columns?
->defaultSort("title") // group.group, sort_order
7 replies
FFilament
Created by FullyLoadedTech on 6/27/2023 in #❓┊help
field relationship sort order
If I have a Select with a relationship, is there an easy way to sort the relation options by a custom order (i.e. in this example, categories would have a sort attribute)? Want to avoid adding scope or constructor to the model if possible.
Forms\Components\Select::make('category_id')
->relationship('category', 'category')
->required(),
Forms\Components\Select::make('category_id')
->relationship('category', 'category')
->required(),
3 replies
FFilament
Created by FullyLoadedTech on 6/11/2023 in #❓┊help
How to set meta alt+title with SpatieMediaLibraryFileUpload field?
I want to use Spatie "custom properties" and somehow enable editing these values for each uploaded photo in a gallery. Option 1 - was thinking override the form field and extend fileUploadFormComponent to add canSetMeta and somehow open a modal/side panel with 2 text inputs for both image alt and image title. Problem is I'm not sure how to override the components/file-upload.js file. Option 2 - might be a way to use the Repeater field to list all uploaded photos with fields for image alt + title in a 3 column grid. Converting the data around seems like it would be clunky though. Option 3 - could use Ralph's media library pro which enables setting meta, but I like the way the FileUpload field works better. Any other options or ideas? Thanks for any help.
19 replies
FFilament
Created by FullyLoadedTech on 4/17/2023 in #❓┊help
Different ways to list related records
Say I have a resource and its model hasMany relations. I know that I could create a second resource for the related model, and then list the related records on the first resource's view page (via RelationManager). However I'm wondering if there's an alternative/standardized way to list records without creating a second resource for the related model?
3 replies
FFilament
Created by FullyLoadedTech on 4/13/2023 in #❓┊help
How to NOT view RelationManager records in modal?
I have two resources, one of them lists the hasMany relation to the other resource. From that table whenever I click View, it opens the related record in a modal rather than redirecting to the View page. How do I prevent the modal from being used? I have 'view' defined in getPages() for the Resource, which redirects (without modal) when you click View from the resource's index/listing page.
4 replies
FFilament
Created by FullyLoadedTech on 3/15/2023 in #❓┊help
SettingsPage + Toggle + requiredWith validation not working?
When using Filament\Pages\SettingsPage and Filament\Forms\Components\Toggle should I expect ->requiredWith('some_other_field') validation rule to work with the Toggle as a boolean? For me none of the requiredWith/requiredWithout/etc type rules work in this scenario.
31 replies
FFilament
Created by FullyLoadedTech on 3/4/2023 in #❓┊help
How to hook into FileUpload field in order to add meta data?
Question for form field FileUpload ->multiple() is there some way to extend/hook into this easily? I'm looking for a way to set meta title/description for each photos, via a new button+slideover/modal or something like that.
2 replies