私は検索をしようとしており、1,4の状態のユーザーのみを返すことを望みます。私がこれを使用しようとすると、それらはすべてそれらをつかんで、私の最後のものを無視します。Laravelの別の場所フィルタを持っている
$officiants = Officiant::where('status',1)
->where('email', 'like', '%'.$item.'%')
->orWhere('lname', 'like', '%'.$item.'%')
->orWhere('lname', 'like', '%'.$item.'%')
->whereIn('status', [1,4])
->get();
私も試してみました
$officiants = Officiant::where('status',1)
->where('email', 'like', '%'.$item.'%')
->orWhere('lname', 'like', '%'.$item.'%')
->orWhere('lname', 'like', '%'.$item.'%')
->where('status', 1)
->where('status', 4)
->get();