FranklySteve
FranklySteve
FFilament
Created by FranklySteve on 1/27/2024 in #❓┊help
maxLength has stopped cutting off text?
Thanks for trying
6 replies
FFilament
Created by FranklySteve on 1/27/2024 in #❓┊help
maxLength has stopped cutting off text?
Hi, any ideas please? 🙂
6 replies
FFilament
Created by FranklySteve on 9/18/2023 in #❓┊help
Help using a filter on table with relationship and PHP Enum please?
Ok, I think I solved it. It's all I've worked on since asking, (it's good to learn) although what I've done doesn't feel completely correct, but maybe it's right! Either way it works. 😂
SelectFilter::make('paid_status')
->options(PaidStatus::class)
->query(function (Builder $query, array $data): Builder {
if (empty($data['value'])) {
return $query
->whereRelation('invoice', 'paid_status', '!=' , null );
}
return $query
->whereRelation('invoice', 'paid_status', $data['value']);
})
SelectFilter::make('paid_status')
->options(PaidStatus::class)
->query(function (Builder $query, array $data): Builder {
if (empty($data['value'])) {
return $query
->whereRelation('invoice', 'paid_status', '!=' , null );
}
return $query
->whereRelation('invoice', 'paid_status', $data['value']);
})
2 replies
FFilament
Created by FranklySteve on 9/11/2023 in #❓┊help
Prevent data being saved to model on file/s upload?
Thanks. It forms part of several jobs, which use various other tables post-processing. In truth I inadvertently realised after posting (as you do - doh!) that it as slow because I was uploading to S3, so it was uploading once to tmp, then moving it to S3, which is of course slow! I've resolved it in a way I'm happy with now by simply storing it locally and moving it to S3 as part of a job, which is actually a more robust solution anyway. Thanks for trying to help.
6 replies