Skip to content

Interact with eloquent in vendor package #44694

Answered by henzeb
bechir asked this question in Q&A
Discussion options

You must be logged in to vote

I'm not even sure what you are trying to do. Are you using Orchestra testbench in your tests?

besides, you don't need the Reflection API. You can just call $model::all(); after checking if the string is a model using is_subclass_of

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by bechir
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants