If you want Laravel to solve your dependencies, you must build your object with App::make instead of instanciate manually with new.
$myInstance = App::make('App\Repositories\CartRepository');
just in case you want to test in artisan tinker
If you want Laravel to solve your dependencies, you must build your object with App::make instead of instanciate manually with new.
$myInstance = App::make('App\Repositories\CartRepository');
just in case you want to test in artisan tinker
For further actions, you may consider blocking this person and/or reporting abuse
westtan -
Nasrul Hazim Bin Mohamad -
Sergio Peris -
Nasrul Hazim Bin Mohamad -
Top comments (0)