Load records on button click

I want to loan records into the table only when a button is click. I dont want the default behavior of populating the table just when a resource is opened. Please help?
Solution:
Set an eloquent query to have a where query, that id < 0. Then when button is clicked you set a session or apply a filter and use this value to determine if the where should be applied or not.
Jump to solution
2 Replies
Solution
toeknee
toeknee3mo ago
Set an eloquent query to have a where query, that id < 0. Then when button is clicked you set a session or apply a filter and use this value to determine if the where should be applied or not.
smash5283
smash52833mo ago
thank you
Want results from more Discord servers?
Add your server
More Posts