rominronin
rominronin
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
FFilament
Created by rominronin on 6/28/2023 in #❓┊help
Search translation text (not just key)
Just found this, will give it a go tomorrow: https://filamentphp.com/tricks/customize-table-search
2 replies
FFilament
Created by rominronin on 6/24/2023 in #❓┊help
Refactoring closures into a trait (or some other structure)
OK this actually works 100%, the issue I faced was ACTUALLY because the method name I used seems to be used by Filament for something else, changing the name to something else (I used productHydration()) worked as desired.
2 replies
FFilament
Created by Jordy ten Elsen on 5/24/2023 in #❓┊help
Best practices for styling Filament components
Just want to add here: what if we WANT to use tailwind classes here and there? Then we are talking option 3., and option 4. would also be nice if I want to change the font or header sizes, no?
9 replies