Support the ongoing development of Laravel.io →
Eloquent Forms Architecture
Last updated 1 year ago.
0

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 1 year ago.
0

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 1 year ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

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

Your logo here?

Laravel.io

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

© 2024 Laravel.io - All rights reserved.