Anton Yelchin, known for starring in “Star Trek,” has been laid to rest.

His funeral was held Friday, sources confirmed on Tuesday to Us Weekly. Friends and family are said to have gathered to mourn together. Fans were not welcome, as it was a private event.

Yelchin, 27, died June 19. He was killed in what’s being called a freak accident: His 2015 Jeep Grand Cherokee rolled down his driveway and pinned him against a brick mailbox structure and a security fence. On June 21, Assistant Coroner Ed Winter told Us that the actor’s death was quick. He is believed to have “died within a minute or so.” The official cause of death was blunt traumatic asphyxiation.

A faulty e-shifter in the car is being blamed for the incident. As IBT reported, electronic automatic gear shifters are said to have a flaw that leads drivers to believe they’ve safely parked their vehicle — only to have them roll away later, endangering those in the proximity. The flaw has affected more than 800,000 Jeep Grand Cherokee’s, Dodge Chargers and Chrysler 200 sedans.

After news of Yelchin’s death broke, his “Star Trek” co-stars, along with other big names in Hollywood, took to social media to remember him. Zachary Quinto, who plays Spock, honored his “dear friend” on Instagram, penning a heartfelt message about him alongside a photo. He called Yelchin “enormously talented” and said that he was “gone before his time.” Zoe Saldana, another “Star Trek” star, wrote a brief message on Twitter expressing her grief. She called Yelchin a “beautiful spirit.” Director J.J. Abrams hand-wrote a message for the young actor, sharing a photo of it on social media. It remains unclear how many, if any, of his co-stars were invited to his funeral.

Yelchin was cast as Pavel Chekov in the “Star Trek” reboot and will appear posthumously in “Star Trek Beyond.” The film will be released July 22.