- I'm getting the row in the following code :
$grpusrow = DB::table('grpusrs')
->where('group_id', $id)
->where('user_id', $u_id)
->get();
- And then getting the ID in this line :
$grpusrid = $grpusrow->id;
- I receive the following error on the line in number 2 :
Trying to get property of non-object