Keika
Import Action Examples
The job part. From what I understand, the job associated with the importer does the actual processing (creating/updating) of the record. As I want to update based on a comparision and not simply from a column in the CSV, I think I need to create a new job for that.
I can't find what to put in the constructor and handle methods of the the newly created job
4 replies
Eager loaded relationships filter
I Hope this will help, I was actually looking for that for a trend today. I found this post which basically says to use
whereBetween
with 2 dates
https://www.larahints.com/#how-to-get-records-within-a-quarter
Hopefully that's what you need too14 replies
badge color from color field
When you have a hexadecimal value you can use: Color::hex();
https://filamentphp.com/docs/3.x/support/colors#generating-a-custom-color-from-a-hex-code
To help you to the end result:
>color(fn ($record) => Color::hex($record->priority->color))
12 replies