I think it's ok to insert all needed repositories in the controllers construct. I do the same thing in my project.
Suggestion, change PositionInterface
to PositionRepositoryInterface
because 'Position' is most likely your Model which would suggest that PositionInterface
is your Model's Interface
Thanks for that suggestion. it helped. I should have changed that.
By the way, I figured out how to solve this problem, it's by using View Composers.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community