Call to a member function filter() on array code example
Example: Call to a member function filter() on array
$observations = collect(DB::select('call Sel_All_Observation_SP()'))->where('user_id',1);
$observations = collect(DB::select('call Sel_All_Observation_SP()'))->where('user_id',1);