# Relationship

# Relationship 1:M

A one-to-many relationship is used to define relationships where a single model owns any amount of other models. For more info click here.

User has many trainings

Training belongs to User

On Training.php

Relationship

On User.php

Relationship

# Relationship - Lazy Load Attribute

A one-to-many relationship is used to define relationships where a single model owns any amount of other models

Relationship