Support the ongoing development of Laravel.io →
posted 10 years ago
Requests
Last updated 2 years ago.
0

Where are you adding the command to Artisan? You'll need to add it like so:

Artisan::add(App::make('AttachUsers'));

The instance needs to be resolved through the container so it can automatically inject the dependencies.

Last updated 2 years ago.
0

Yes, I did. The only way to make it work so far is to NOT use the interface and instantiate the repository directly.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Forbin forbin Joined 31 Jan 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.

© 2024 Laravel.io - All rights reserved.