Skip to content

Instantly share code, notes, and snippets.

@soutaro soutaro/posts.yml Secret
Last active Jan 16, 2019

What would you like to do?
Introducing Phinder, posts
- id:
pattern: "_->hasMany(Post::class)"
message: |
Use `User::posts()` to retrieve a user's posts and associated records
`posts()` includes associated records, so it runs faster.
- When you only need only a single kind of records
- When you look up records not associated with a user
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.