Comments (2)
To start with, this is unsafe query grouping, you should wrap it in a nested WHERE:
->where(fn ($query) => $query
->where('pet_status', 'inbound')
->orWhere('pet_status', 'cremation')
->orWhere('pet_status', 'hold'))
However, your example just requires a whereIn()
:
->whereIn('pet_status', ['inbound', 'cremation', 'hold'])
from filament.
Thank you very much for clarifying this issue,
I'll make sure to study more about Eloquent to get it right, the Filament project is deeply appreciated! I apologize for wasting time with ignorance and I'm grateful for the understanding of how difficult is to predict when I'm being inapt or when iāŗs an actual bug.
Best!
from filament.
Related Issues (20)
- composer require beier/filament-pages:^2.1 HOT 2
- ExportAction in RelationManager
- Route [filament.lunar.resources.products.review] not defined. HOT 1
- Textarea in modal produces several JS errors
- Performance issue with table HOT 2
- FileUpload uncontrollably modifying the file path
- Bug with repeater state when using model eager loading by default
- Simple Repeater with FileUpload HOT 1
- Table Action Group Cannot Click 4th Action HOT 2
- FileUpload overlapping other elements HOT 2
- Remove table empty state Blade component
- `ExportAction` / `ImportAction` doesn't respect $modelLabel defined in Resource class HOT 1
- Using `->path('/')` with Apache alias causes `Method Not Allowed` error with routes cached
- Modal Behavior Issue with Multiple Relations HOT 2
- Problem with modals and QueryBuilder
- Checkbox state sharing issue in dynamically generated CheckboxList HOT 3
- Many-to-many pivot columns not countenanced when column name clashes with another parent column
- FileUpload Component Overlapping Next Element When Accepting Multiple Files
- repeter extra item action does not block other actions from opening
- Group Only Table results in table querying all records
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from filament.