public function creator()
    {
        if (is_null($this->creatorCache)) {
            $firstMessage = $this->messages()->withTrashed()->oldest()->first();
            $this->creatorCache = $firstMessage ? $firstMessage->user : Models::user();
        }

        return $this->creatorCache;
    }
public function creator()
    {
        if (is_null($this->creatorCache)) {
            $firstMessage = $this->messages()->withTrashed()->oldest()->first();
            $this->creatorCache = $firstMessage ? $firstMessage->user : Models::user();
        }

        return $this->creatorCache;
    }
public function creator ( ) { if ( is_null ( $ this -> creatorCache ) ) { $ firstMessage = $ this -> messages ( ) -> withTrashed ( ) -> oldest ( ) -> first ( ) ; $ this -> creatorCache = $ firstMessage ? $ firstMessage -> user : Models :: user ( ) ; } return $ this -> creatorCache ; }
Returns the user object that created the thread.

@return Models::user()
Returns the user object that created the thread .