-
Notifications
You must be signed in to change notification settings - Fork 42
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
Eloquent model to non-eloquent entity relation #104
Comments
Hmmm, not strictly worked this one out yet. If you only need it to appear when serialising to JSON then that's possible by using a Are you able to investigate using your use case? I'm unlikely to have much time to help out at the moment as I've recently started a new job. |
I tried to make my-own
Ok. I'm gonna try to use |
Yeah so that error is an indication I'm going to have to write a specific field to use for these scenarios. The resource class is fully documented, so just refer to those docs... |
Thanks! |
I have same issue, I work around it creating the custom action for eloquent resource, for example:
eloquent resource resource:
and the controller:
but also I would be grateful for built-in solution :) |
Has there been any movement on this? I have a calendar model that has events which are stored in an ICalendar format. So I need to be able to pull the non-eloquent data when querying /calendars/{calendar}/events I'd definitely be willing to PR and experiment, just need to know a little more about the desired direction here. |
Sharing the response I put on the new issue that was opened in the Eloquent repository: |
Hello!
I want to make a relation from Eloquent model to non-eloquent.
Is it possible?
Thanks.
The text was updated successfully, but these errors were encountered: