Exemplo n.º 1
0
 public function getUserGroupById($usergroupId)
 {
     $result = Usergroup::whereId($usergroupId)->first();
     //first() function in sql returns the first value of the selected column
     return $result;
 }