You've written this. A couple of optional filters, so you do the little dance: $query = User::query(); if ($request->status) { $query->where('status', $request->status); } if ($request->search) {
Building and Learning, One Line of Code at a Time
Developer with a passion for coding. I enjoy creating impactful applications and exploring new technologies. Let's embark on this coding adventure together, building innovative solutions along the way
Markdown supported · ⌘↵ to post
No responses yet.