Laravel hingi
Model::with(['relationMethod'=>function($query){
return $query->where('pwra_dt', date('Y-m-d'))->get();
}]) ->get();
Lazy Lobster
Model::with(['relationMethod'=>function($query){
return $query->where('pwra_dt', date('Y-m-d'))->get();
}]) ->get();
public function pwra()
{
return $this->belongsTo('App\Models\Pwra', 'pwra_uuid', 'pwra_uuid')
->where('pwra_dt', '>=', Carbon::today())
->where('pwra_dt', '<', Carbon::tomorrow());
}