- Getting Started
- The Basics
Relationships in Pyro work just like relationships in Laravel.
**Note:** Relation type field types will generate the relation model method for you! Naming is camel case of the field slug.
Delete cascade and restrict
You can easily cascade the relation linked to an entity using
$cascades in the
$cascades = [ 'relation' ]
You can also restrict the deletion of an entity using
$restricts = [ 'relation' ]