If I write this for example:
class MyController { private $test; public function __construct(InterfaceA $test) { $this->test = $test; } }
Is it possible to app bind InterfaceA based on a route?
Is this considered good practice? Or do I bind one classname for the whole app?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community