use Illuminate\Support\Facades\DB; use App\Models\Post; $posts = Post::where('user_id', '=', 1) ->orWhere('category', '=', 'technology') ->get();
use Illuminate\Support\Facades\DB; use App\Models\Order; $orders = Order::where('status', '=', 'processing') ->orWhere('status', '=', 'completed') ->get();In both examples above, we use the method "orWhere" to add multiple conditions to our query and retrieve records that match any of those conditions. Illuminate Database Eloquent is a part of the Laravel Framework, operating under the namespace `Illuminate\Database\Eloquent`.