I want to make query that if i have no date into request so otherwise data should be shown of current date please help me thanks.
Controller
VehicleTask::where('vehicle_id', $this->driver)
->whereDate('date', Carbon::now()->format('Y-m-d'))
->orWhere('date',$request->date)
->get()
2
Answers
You can use
Or
Minimize Version