D
D
Dmitry2018-03-18 21:46:30
Laravel
Dmitry, 2018-03-18 21:46:30

Is it possible to use Mysql IN query in Laravel?

Hello!
I use a query of the form The question arose, is it possible to somehow use the "IN" construction in this query, as is done in normal mysql queries? In general, the goal is this: to display materials according to the provided list of categories (it does not work to use the option with prescribing a mysql query).
->where('category_id', '>', 10);

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
JhaoDa, 2018-03-18
@liggth

Learn -  https://laravel.com/docs/5.5/queries#where-clauses

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question