public function getGameAttribute()
    {
        if (! array_key_exists('game', $this->attributes)) {
            $this->attributes['game'] = [];
        }

        return $this->factory->create(Game::class, (array) $this->attributes['game'], true);
    }
public function getGameAttribute()
    {
        if (! array_key_exists('game', $this->attributes)) {
            $this->attributes['game'] = [];
        }

        return $this->factory->create(Game::class, (array) $this->attributes['game'], true);
    }
public function getGameAttribute ( ) { if ( ! array_key_exists ( 'game' , $ this -> attributes ) ) { $ this -> attributes [ 'game' ] = [ ] ; } return $ this -> factory -> create ( Game :: class , ( array ) $ this -> attributes [ 'game' ] , true ) ; }
Gets the game attribute.

@return Game The game attribute.
Gets the game attribute .