There’s whereIn()
:
$items = DB::table('items')->whereIn('id', [1, 2, 3])->get();
More Related Contents:
- Laravel 5.1, Return response to user, then excute some code [closed]
- Displaying HTML with Blade shows the HTML code
- Laravel csrf token mismatch for ajax POST Request
- Post request in Laravel – Error – 419 Sorry, your session/ 419 your page has expired
- How Can I Remove “public/index.php” in the URL Generated Laravel?
- Laravel: Error [PDOException]: Could not Find Driver in PostgreSQL
- Laravel Check If Related Model Exists
- Laravel migration: unique key is too long, even if specified
- Laravel: PDOException: could not find driver
- Laravel Eloquent select all rows with max created_at
- Composer error: “PHP extension fileinfo is missing from your system”
- Laravel: How can I change the default Auth Password field name?
- Laravel: Using try…catch with DB::transaction()
- How to add some textfield in form register (laravel generator infyom)?
- Laravel 5 Class ‘form’ not found
- What is the difference between {{ }} and {!! !!} in laravel blade files?
- How to set a default attribute value for a Laravel / Eloquent model?
- How to fix the “Base table or view not found: 1146” error when running ‘php artisan migrate’ command?
- Laravel Socialite: InvalidStateException
- Laravel – Using (:any?) wildcard for ALL routes?
- How To Pass GET Parameters To Laravel From With GET Method ?
- How to Merge Two Eloquent Collections?
- How to define a Laravel route with a parameter that contains a slash character
- Laravel 4.1: How to paginate eloquent eager relationship?
- The requested URL /ProjectName/users was not found on this server. Laravel
- How to send data using redirect with Laravel
- Laravel Carbon Data Missing
- Laravel Auth:attempt() will not persist login
- Avoid public folder of laravel and open directly the root in web server
- Laravel Eloquent update just if changes have been made