You cannot create an instance of an interface using new. Try resolving the interface through IOC binding, i.e, $this->app->make('InterfaceName'); .
Ah, I somehow thought that the bindings would "overwrite" the Interface classes, but that is clearly not the case. It worked just fine when I resolved the interfaces with $this->app->make instead.
Thanks for clearing that up for me :-)
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community