Query Builder:
DB::table(..)->select(..)->whereNotIn('book_price', [100,200])->get();
Eloquent:
SomeModel::select(..)->whereNotIn('book_price', [100,200])->get();
More Related Contents:
- Migration: Cannot add foreign key constraint
- Laravel Eloquent groupBy() AND also return count of each group
- Eloquent Collection: Counting and Detect Empty
- Eloquent eager load Order by
- Laravel. Use scope() in models with relation
- How to access model hasMany Relation with where condition?
- Eloquent push() and save() difference
- Laravel save / update many to many relationship
- First Or Create
- Laravel: Returning the namespaced owner of a polymorphic relation
- Polymorphic Eloquent relationships with namespaces
- Clone an Eloquent object including all relationships?
- Laravel redirect back to original destination after login
- How to select from subquery using Laravel Query Builder?
- How can I resolve “Your requirements could not be resolved to an installable set of packages” error?
- Laravel Redirect Back with() Message
- Laravel Fluent Query Builder Join with subquery
- Laravel 4: how to “order by” using Eloquent ORM [duplicate]
- HasManyThrough with one-to-many relationship
- Getting just the latest value on a joined table with Eloquent
- Laravel Migration Change to Make a Column Nullable
- Laravel Controller Subfolder routing
- Update without touching timestamps (Laravel)
- Best Practices for Laravel 4 Helpers and Basic Functions?
- Laravel 4: Failed to open stream: Permission denied
- Find or Create with Eloquent
- Laravel: Change base URL?
- How to setup conditional relationship on Eloquent
- Laravel Eloquent – Where In All
- Laravel 4 : Route to localhost/controller/action