src/Components/Recorder.php
protected function getUserId() {
        $user = Auth::user();
        if (is_object($user) && !empty($user->id)) {
            return $user->id;
        } else {
            return null;
        }
    }
protected function getUserId() {
        $user = Auth::user();
        if (is_object($user) && !empty($user->id)) {
            return $user->id;
        } else {
            return null;
        }
    }
protected function getUserId ( ) { $ user = Auth :: user ( ) ; if ( is_object ( $ user ) && ! empty ( $ user -> id ) ) { return $ user -> id ; } else { return null ; } }
Gets the ID of the User that is logged in
@return integer|null The ID of the User or Null if not logged in
Gets the ID of the User that is logged in