rominronin
rominronin
FFilament
Created by Dan Harrin on 2/27/2025 in #❓┊help
Help Us Improve Filament’s Docs & Education in v4
Hey, generally I think the documentation is pretty good actually. But if we’re talking about improving pain points: - I would have found interlinking with external documentation useful, where relevant (eg. livewire docs, laravel docs). This might be useful for people coming who are less familiar with the laravel ecosystem. - the search feature is useful, but it could be improved eg. if it could also return results from the api. - There were times where I knew I’d read something before, but I couldn’t locate it with search, so maybe advanced search would be useful? - finally, there can never be enough examples! The existing examples are detailed in some areas, others have just a simple example and you’re on your own. Laravels documentation is a good template to follow here: start simple and dive gradually deeper. Overall though, great work. Very much looking forward to v4 and upgrading our project.
81 replies
FFilament
Created by rominronin on 4/4/2025 in #❓┊help
Validation messages are not htmlable, but they output htmlable label values by default
I just discovered ->validationAttribute(), which solves this by allowing you to independently define the attribute used in validation messages!!!
7 replies
FFilament
Created by rominronin on 4/4/2025 in #❓┊help
Validation messages are not htmlable, but they output htmlable label values by default
Yes - that’s what we’ll have to do, thanks. But I still think there’s room for a code improvement above - if label() is htmlable, any markup will be be rendered raw in the validation message. So either another input attribute must be used for the validation placeholder, or htmlable must be removed. Right?
7 replies
FFilament
Created by Leandro Tavares on 11/10/2023 in #❓┊help
How to put metatag?
Does anyone know how to place a dynamic metatag? I was trying to use render hooks to inject content (eg. title, description, image) into the head as metatags, but other than retrieving the content from the url, I couldn't see how to access the current page content.
5 replies
FFilament
Created by malebestia. on 10/11/2023 in #❓┊help
cookie law and GDPR
I'm also looking - either a plugin or a recipe
6 replies
FFilament
Created by Sidji on 6/13/2024 in #❓┊help
Shared panel session
Did you find a way to make this work?
6 replies
FFilament
Created by Marcellin on 11/2/2023 in #❓┊help
How to Make Multiple Select Filters Combine with 'And' Logic Instead of 'Or' Logic in FilamentPHP?
This is cool, but if you you Filter (instead of SelectFilter), you can use ->form() to have more control over the form and it's reactivity.
5 replies
FFilament
Created by Marcellin on 11/2/2023 in #❓┊help
How to Make Multiple Select Filters Combine with 'And' Logic Instead of 'Or' Logic in FilamentPHP?
SelectFilter::make('dim_width')
->baseQuery(fn(Builder $query, $state) => $state['value'] ? $query->where('dim_width', '=', $state['value']) : $query)
->options(function () {
$query = $this->getTableQuery();
return $query->orderBy('dim_width')->distinct('dim_width')->pluck('dim_width', 'dim_width')->toArray();
}),
SelectFilter::make('dim_width')
->baseQuery(fn(Builder $query, $state) => $state['value'] ? $query->where('dim_width', '=', $state['value']) : $query)
->options(function () {
$query = $this->getTableQuery();
return $query->orderBy('dim_width')->distinct('dim_width')->pluck('dim_width', 'dim_width')->toArray();
}),
5 replies
FFilament
Created by Marcellin on 11/2/2023 in #❓┊help
How to Make Multiple Select Filters Combine with 'And' Logic Instead of 'Or' Logic in FilamentPHP?
ah, just found a better way to do this: ->baseQuery
5 replies
FFilament
Created by Marcellin on 11/2/2023 in #❓┊help
How to Make Multiple Select Filters Combine with 'And' Logic Instead of 'Or' Logic in FilamentPHP?
This is an old post, but I'm in v3 and I'm trying to do something similar. I've achieved it using custom select filters, which are then updating a component property $this->filter_value, which is then being checked in $table->modifyQueryUsing. This works, but I'm wondering if there is a neater way to implement this.
5 replies
FFilament
Created by Wim on 3/26/2024 in #❓┊help
Form validation messages
Ah, a custom rule would work in my case...
18 replies
FFilament
Created by Wim on 3/26/2024 in #❓┊help
Form validation messages
But I would appreciate a leg up 🙂
18 replies
FFilament
Created by Wim on 3/26/2024 in #❓┊help
Form validation messages
I can get the validation to halt progress and display a notification, but inline errors is what I really need. I'm going to try Laravel validation next.
18 replies
FFilament
Created by Wim on 3/26/2024 in #❓┊help
Form validation messages
Actually, I have a related question - I am working with Wizard steps, and would like to display input validation on the form, after some validations checks
18 replies
FFilament
Created by rominronin on 11/8/2023 in #❓┊help
Fileupload resize doesn't seem to work, what am I missing?
javascript and npm is not my strongest point, but I struggle to see anything obvious that I'm doing wrong, particularly as far as the documentation is concerned.
8 replies
FFilament
Created by rominronin on 11/8/2023 in #❓┊help
Fileupload resize doesn't seem to work, what am I missing?
The thing is, the above doesn't have any impact on the display or the functionality of the fileupload input.
8 replies
FFilament
Created by rominronin on 11/8/2023 in #❓┊help
Fileupload resize doesn't seem to work, what am I missing?
import * as FilePond from "filepond";
import 'filepond/dist/filepond.min.css'
import FilePondPluginImageResize from 'filepond-plugin-image-resize';

Alpine.plugin(FilePond)
Alpine.plugin(FilePondPluginImageResize)
import * as FilePond from "filepond";
import 'filepond/dist/filepond.min.css'
import FilePondPluginImageResize from 'filepond-plugin-image-resize';

Alpine.plugin(FilePond)
Alpine.plugin(FilePondPluginImageResize)
8 replies
FFilament
Created by rominronin on 11/8/2023 in #❓┊help
Fileupload resize doesn't seem to work, what am I missing?
I've followed the instructions, added filepond and the image resize plugin to app.js, imported it. I'm not quite sure how to make progress here, any ideas?
8 replies
FFilament
Created by rominronin on 11/8/2023 in #❓┊help
Fileupload resize doesn't seem to work, what am I missing?
Just some additonal information: the 'contain', 'cover' and 'force' modes all do the same thing in my application. I have followed the cache/rebuild steps in the 'READ BEFORE POSTING' guide. As far as I understood it, Filepond is already included in the filament/filament, so I don't need to add any additional npm plugins or composer libraries.
8 replies
FFilament
Created by rominronin on 11/8/2023 in #❓┊help
Fileupload resize doesn't seem to work, what am I missing?
Bump
8 replies