bionary
Can I sort table on non-column data
Not directly. It's a calculated value based on a collection via a relationship. As in...give me the olded "past due date" related to this client and calculate that date from today in days (integer)
I went back to my original idea and am using a Model Event. I seem to use those a lot and it's easy to forget about their magic when maintaining stuff later.
The columns are written correctly but oddly filament is not sorting correctly. The new column does have negative numbers and nulls in there. Is that troublesome for Filament to sort?
12 replies
Can I sort table on non-column data
Okay looking at this here:
https://laraveldaily.com/post/virtual-db-columns-laravel-migrations-mysql
I think you might be onto something Adam!
12 replies
Anybody find a decent solution for table images to a lightbox?
@_andypeacock Your solution looks a lot smarter/cleaner than what I came up with. Thank you. I was doing something similar but packing it all in the Filament Resource like this:
I never quite found a way to scale the image properly. Even with my custom class added to the image, it was still not scaling properly and would get cut off if the aspect ratio was extreme. Also the white border around the image was never equal/balanced...but my tailwind skills are junk.
Can't wait to try your solution, thanks!
10 replies
Spatie Media Library Conversion Quality NOT Applied
@awcodes Adam, I was going to file a bug at https://github.com/filamentphp/spatie-laravel-media-library-plugin but it is READ ONLY.
11 replies
Spatie Media Library Conversion Quality NOT Applied
fyi: there was talk about a related bug here:
https://github.com/spatie/laravel-medialibrary/issues/3502
11 replies