© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
17 replies
ciorici

Filter query based on column value

I have a question, hopefully someone can help. I need to create a query in eloquent to get the orders based on the following information:

- they are located in the orders table
- the table structure is like this id, client_payment_from, delivery_date, customs_date, client_papers_date, transporter_papers_date, client_payment_in. In the client_payment_from column you will find the name of the column where you need to get the date value from and in the client_payment_in column the number of days that are allowed to pass.

I need to do a query where you can find the orders where that date is passed by the max amount of days (in the client_payment_in column)
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

change color of a column value based on another column value
FilamentFFilament / ❓┊help
3y ago
Hide table column based on value of another column
FilamentFFilament / ❓┊help
11mo ago
Filter Widget based on Active Tab Query
FilamentFFilament / ❓┊help
14mo ago
Conditionally modify query based on column visibility
FilamentFFilament / ❓┊help
3y ago