$dp=DB::table('vazhipads')
->select('dinaparidhi')
->distinct()
->where('vazhipad','=',$request->vazhipad)
->get();
this is my query
after dd($dp) i got this result
Illuminate\Support\Collection {#1282
#items: array:1 [
0 => {#1275
+"dinaparidhi": 0
}
]
}
i want to check dinaparidhi is >0
i tried like this
if($dp->dinaparidhi > 0)
{
}
but i got some errors
please tell me how to check dinaparidhi>0
$dpis a collection of entities