Garadit
Lazy load table column
Yes, Thanks for the insight @Mohamed Ayaou . I think the lazy load approach is still needed, especially when calling multiple APIs and running huge computed data. I'm still thinking about how to implement it, like we apply
toggleable()
but it triggers automatically when the table is rendered.18 replies
Lazy load table column
Thanks @CodeWithDennis .
Bad queries are the main problem, right in getStatusAttribute. It calls more than 1000 queries, like, that's huge. Now that I'm using raw queries, the performance has improved significantly.
18 replies
Lazy load table column
What @Mohamed Ayaou said is right, it is necessary to optimize the computing process itself. But I need to adjust to the old code that is already running, so I can't do too much. The 'status' attribute itself takes a long time because it has to check every condition, especially in the
every
function.18 replies
How is demo.filamentphp.com deployed?
I've tried both ways, from
optimize:cache
and creating a filament view cache, and the result is about 1 second. I'm okay with that, compared to 3 seconds before. It could be less than a second if the ping to my VPS is less than 200ms.9 replies
How is demo.filamentphp.com deployed?
Thanks for the answer. I have experimented with using containers in Docker as well as with PHP installed on the system via aaPanel. In both I have the OPCache extension enabled.
Docker + Nginx = 1.5s
aaPanel + Nginx = 3s
Still not as fast as demo.filament.com, but shows significant results.
9 replies
Assign role after registration
I want to use a fieldset to handle the hasOne relation 'userDetail'. Referring to the latest release, I thought this would be supported by default since
$this->form->model($user)->saveRelationships();
is there by default now. But it doesn't work in my case. I don't know if I did it right or not. Someone has asked this kind of question before, but with another version and it is not compatible with the latest version.
https://discord.com/channels/883083792112300104/1222497096817447022
Here's the full code I wrote for the custom Regiter.php, wondering what went wrong:
https://gist.github.com/TegarAditya/d236edbbf94fd3a8b7fffb5aeedff43d
So I will probably use handleRegistration for this. But is that a good idea or a bad practice?94 replies
Assign role after registration
Sorry in advance, is this method possible for hasOne relationships? I used fieldset, but after trying it, the relationship data is not saved. Can we save the main data with
handleRegistration
and then the relationship data afterwards?94 replies
Is it possible to implement HasOne relationship in Registration page?
Sorry, I can't use fieldset on my CustomRegisterPage. It throws an error "Call to a member function userDetail() on null", I guess because it cannot load the user model.
This is the flare debug query form:
SELECT * FROM
sessions
WHERE id
= 0dOyTEsseUdHmuiqcxDYjJOekQMFSE3dzKquHkj9 limit 1
Or maybe I missed something.5 replies
Access value outside Repeater
https://stackoverflow.com/questions/73631648/access-parent-schema-value-inside-repeater-filament
it's here
3 replies
How to prevent already selected value in repeater?
I just want it to work like multiselect, which doesn't show the selection when it's already selected in another repeater. If using rules, won't it check it after the form is submitted (clicked submit)?
13 replies