Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to use loadCount #6

Open
danilopolani opened this issue Sep 13, 2020 · 3 comments
Open

Ability to use loadCount #6

danilopolani opened this issue Sep 13, 2020 · 3 comments

Comments

@danilopolani
Copy link

Hello,
the package works great! It would be nice to have the chance to use loadCount too, like we already use with / load.

Currently if I try to use it to load count a pivot relationship, it just throws an error like this:

Call to undefined method App\Citizen::vehicles.registration()

Where registration is the custom name of the pivot table.

@ajcastro
Copy link
Owner

ajcastro commented Oct 1, 2020

@danilopolani can you show how you did it in your code?

@lahivee
Copy link

lahivee commented Jun 15, 2021

Did you figure this out and could possible share code? Thank you

@danilopolani
Copy link
Author

Ehy, sorry, this refers to an old project to which I no longer have access. If I'm right, I didn't find a valid solution tho :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants