Support the ongoing development of →
Eloquent Forms Architecture
Last updated 2 years ago.

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

Last updated 2 years ago.

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.

Last updated 2 years ago.

Sign in to participate in this thread!


Your banner here too?


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 - All rights reserved.