ericmp #2
How to dig in `ColumnDefinition::nullable` vendor method?
I was in this migration:
And I was curious about what nullable actually does. So i clicked it. Now I am here, but I don't know how to continue diggin till finding the actual method:
Is there any way to do it?
2 replies
Filament blade icons
these are the only icons installed with filamentphp or there is more that arent appearing in the list??
https://blade-ui-kit.com/blade-icons?set=1#search
4 replies
Does Filament provide a way to let users recover their accounts?
https://filamentphp.com/docs/3.x/panels/users
im trying to find a similar feature as jetstream or breeze, where users can easily recover their accounts. is possible in filament too?
7 replies
How to cast properties of array recursively in a Laravel Model
inside my model i have this:
where fields is an array like, stored in database as a json array:
where the type is an integer. this integer is a value from an enum
so i try:
but it doesnt work
also tried:
u know how to achieve it?
also trying to understand it from the docs but not quite getting it - https://laravel.com/docs/10.x/eloquent-mutators#enum-casting
2 replies
How to increase table max width layout?
I have a large screen. I want to be able to see all the table rows without scrolling horizontally.
Using the admin panel, how to change the main css:
<main class="fi-main mx-auto h-full w-full px-4 md:px-6 lg:px-8 max-w-7xl sticky-theme-default">
i need to change the max-w-7xl
and increase it. (ive tested it in the browser and yeah, that makes the trick, so yeah that is what i need)
any "clean" way, or i just override the css somehow? i tried to find how to do it in the docs47 replies
EditForm - can't submit form action on set on form header actions
if i click on the submit form action (form action) it saves the data
if i click on the submit form action (header action) it does nothing
objective: save the data in the header actions too
15 replies
Count relationship quantity via pivot
models:
ProductPack
Product
ProductPackPivot (n n table):
pivot extra field -> product_quantity
for each ProductPack i want to know how many products it has. at the moment im doing it like this, but this only counts the relationships:
and i need to go to the pivot, and get the
product_quantity
field instead of counting the relation
im kinda lost on how to achieve it.
example:
lets say i have a product pack that has 2 products:
4 waters
2 forks
the product pack has 2 products, but really has 4+2 products, so i need to get 6 instead of 26 replies
How to translate Resource model name?
My model is called Form. But the application is in Spanish. all seems well translated except for the resources model names. Form should be Formulario. Is there any way to translate it?
now i see it all like this:
left admin panel sidebar: Forms -> should be Formularios
"Crear form" -> should be "Crear formulario"
etc
im trying to find how to do it in the docs, but so far havent found it
12 replies