79271366

Date: 2024-12-11 10:40:08
Score: 0.5
Natty:
Report link
$position = Auth::user()->position_id;


$documents = Document::whereHas('approvals', function ($query) use ( $position) {
    $query->where('position_id',$position)
          ->where('status', 'pending')
          ->orderBy('created_at', 'asc'); 
})->get();
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: heta thakkar