Lara Zeus
What's the correct approach to load filament styles in a frontend page?
make sure to follow this too
https://filamentphp.com/docs/3.x/forms/installation#installing-tailwind-css
4 replies
how to create a table composed of more than one model
maybe use unions
https://laravel.com/docs/master/queries#unions
in
modifyQueryUsing
method
https://filamentphp.com/docs/3.x/panels/resources/relation-managers#customizing-the-relation-manager-eloquent-query3 replies
How to display a file uploaded in a previous step in a Filament wizard form (before submission)?
can you share some code so we can understand more what are you trying to do.
in the final step of the wizard how you want to display the uploaded file?
11 replies
Edit Choices.js configuration
this an old artical but you can adjust it to make work with v3
https://v2.filamentphp.com/tricks/render-html-in-select-options
combine
getSearchResultsUsing
and getOptionLabelUsing
6 replies
Is there a way to remove the theme switcher and just have dark mode?
this will force dark mode:
https://filamentphp.com/docs/3.x/panels/themes#changing-the-default-theme-mode
but not sure about removing the switcher form the menu
10 replies
Float function creates an column where the datatype is double
They both represent floating point numbers. A FLOAT is for single-precision, while a DOUBLE is for double-precision numbers.
if you want to change the precision, pass it as a second param
note that this is laravel related, for more
https://laravel.com/docs/master/migrations#column-method-float
3 replies
How can I use Filament Spatie Translatable with SEO Filament ?
are you using it with
SEO::make()
?
I dont think it will works
here is a demo code on how to add SEO to any resource, just normal schema
https://github.com/lara-zeus/translatable-demo/blob/a053d0e967691cd4c0990d9288c5aa88b9bf8442/app/Providers/OverridesProvider.php#L58
and its working with spatie
translatable
also you can switch to use my fork:
https://github.com/lara-zeus/translatable3 replies
sortable() resets the sorting on 3rd click
I dont think this is an issue, the third click is to reset the sorting for this column if the user want to sort by other column, its in the demo too
https://demo.filamentphp.com/shop/products/products
11 replies
Issue with FilamentSpatieTranslatable plugin LocaleSwitcher not saving record after v 3 upgrade
thank you, this is my final version:
https://github.com/lara-zeus/sky/blob/3.x/src/Rules/UniqueTranslationRule.php
11 replies
Issue with FilamentSpatieTranslatable plugin LocaleSwitcher not saving record after v 3 upgrade
yes your way is the same I used here
you can get the active local from:
$livewire->activeLocale
https://github.com/lara-zeus/sky/pull/227/files
I will create a rule and include it in the translatable plugin so it can be re used11 replies
spatie translatable on custom page
can you try using my fork of the plugin:
https://github.com/lara-zeus/translatable
I would appreciate if you can share some code that I can copy to test
12 replies
spatie translatable on custom page
I'll try to look into it later, for now you can use any translatable field like
https://filamentphp.com/plugins/abdulmajeed-jamaan-translatable-tabs
without the local switcher
12 replies