Support the ongoing development of Laravel.io →
posted 9 years ago
Architecture

Hi everyone.

Actually the question is already asked here: http://stackoverflow.com/questions/22890496/binding-repositories-to-routes

Since I use repositories and want to get an object instead of simple $id param, how could I inject repository into route service provider so that I can bind it? I've tried to do it in controller and boot method without success

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Victor victor Joined 18 Nov 2014

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.

© 2025 Laravel.io - All rights reserved.