The cause of death of actor Tyler Sanders has been revealed by the Los Angeles County Medical Examiner-Coroner.

The 18-year-old star from ‘9-1-1: Lonestar’ died from “fentanyl effects” the report stated. It also noted that the actor’s death was accidental.

Sanders died on June 16 and his body was reportedly found in his L.A. home. Sources told TMZ at the time that the “Fear the Walking Dead” actor had a history of drug use and cops allegedly found “a plastic straw and white powder in the room where he died.”

In the full coroner’s report obtained by the entertainment site, Sanders texted a friend the night before he died where he mentioned he was using fentanyl. The report went on to mention that the actor didn’t answer his phone when that friend attempted to call him after sending the text.

The report mentioned Sanders’ history of drug abuse, which included heroin, cocaine, LSD, mushrooms, and Xanax. He had no history of medical problems, but his loved ones said he was fighting his own private battle.

Although he’s being remembered as an “ambitious” and “hard-working” actor, his family said he was dealing with serious depression.

“Although actively seeking treatment, Tyler struggled to find relief and chose to experiment with drugs,” David Sanders, Tyler’s father said in a statement released to KTLA. “Tyler fell into drug use, not as a way to have fun socially, but rather as an attempt to overcome his profound mental health struggle. While we continue to mourn his death, we are determined to share Tyler’s story in hopes of furthering the conversation around this pervasive issue.”

His loved ones said they hope his death brings attention to mental health and the invisible battles that some people fight everyday.

“Losing Tyler due to fentanyl poisoning has been incredibly difficult,” said Ginger Sanders, Tyler’s mother. “I want others to understand that we are a family much like all other families who never thought this could happen to us. Tyler had a strong support system and still could not overcome his persistent depression. Perhaps because of his depression, Tyler sought out deep connections and to bring those around him joy. While Tyler quietly fought his inner battles, he was outwardly determined to make sure no one felt as he did.”

Sanders started acting around 10 years old and starred in shows like “The Rookie,” “Just Add Magic,” and “Just Add Magic: Mystery City.”

He was nominated for an Emmy for his role in “Just Add Magic: Mystery City.”

“Tyler loved the Lord, loved people and did his best every day. It is our sincere prayer that our story might save others,” Ginger Sanders added.