Lara Zeus
problem with user_id
if you're using a resource, then check this:
https://filamentphp.com/docs/3.x/panels/resources/creating-records#customizing-data-before-saving
27 replies
How to delete database notification after an action?
maybe you can dispatch an event then delete the record from the database?
https://filamentphp.com/docs/3.x/notifications/sending-notifications#dispatching-livewire-events-from-notification-actions
3 replies
Guidance custom field
Dan has an amazing videos on how to build plugins and custom components
https://laracasts.com/series/build-advanced-components-for-filament/episodes/12?referer=DanHarrin
https://filamentphp.com/docs/3.x/support/plugins/getting-started
other source is to look into already existing plugins and check how they making it!
5 replies
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
8 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