Skip to content

Commit

Permalink
Update database/relations.md
Browse files Browse the repository at this point in the history
Co-authored-by: Luke Towers <[email protected]>
  • Loading branch information
bennothommo and LukeTowers authored Jul 30, 2024
1 parent a3801a9 commit 70c3ae9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions database/relations.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ Database tables are often related to one another. For example, a blog post may h

Winter provides two methods of defining model relationships. Both provide the same level of functionality - which one you use is entirely up to your own preferences.

- Property-based array configuration in the model class, available in all versions of Winter CMS (Property style)
- Relation methods defined in the model class, synonymous with Laravel, available since Winter CMS v1.2.5 (Method style)
- Property-based array configuration in the model class (Property style)
- Relation methods defined in the model class, [synonymous with Laravel](https://laravel.com/docs/9.x/eloquent-relationships#defining-relationships) (Method style)

### Property style relationship definition

Expand Down

0 comments on commit 70c3ae9

Please sign in to comment.