lara-zeus / bolt

form builder for your users, with so many use cases
https://larazeus.com/bolt
MIT License
172 stars 31 forks source link

Enhancing the filtering capabilities on custom Datasources #276

Closed mohaphez closed 4 months ago

mohaphez commented 4 months ago

Hi there !

At present, datasources utilize getModel to generate the required items, fetching all records of that model. However, there are scenarios where filtering records based on conditions is necessary, rather than displaying all records to the user. This implies that developers should have control over the query and be able to customize it.

For instance, displaying records related to the logged-in user

Do you believe this is achievable?

atmonshi commented 4 months ago

fixed #277 thanks for the PR :)