laravel レポジトリパターン導入時に Target ~ Interface] is not instantiable while building のエラーではまった話 Laravel

laravel レポジトリパターン導入時に
Target ~ Interface] is not instantiable while building のエラーではまった話

今回のケースでは app¥Providers配下のファイルで
use app¥だったのを
use App¥に変更したらうまくいった
composer.json で
psr-4 : {
App¥¥ : app/
}
を指定してるのになぜだろうね?


エラーサンプル
BindingResolutionException in Container.php line 748:
Target [App¥Repositories¥ArticleInterface] is not instantiable while building [App¥Http¥Controllers¥ArticlesController App¥Services¥ArticleService].
in Container.php line 748
at Container->build( App¥Repositories¥ArticleInterface array()) in Container.php line 629
at Container->make( App¥Repositories¥ArticleInterface array()) in Application.php line 697
at Application->make( App¥Repositories¥ArticleInterface ) in Container.php line 849
at Container->resolveClass(object(ReflectionParameter)) in Container.php line 804
at Container->getDependencies(array(object(ReflectionParameter)) array()) in Container.php line 775
at Container->build( App¥Services¥ArticleService array()) in Container.php line 629
at Container->make( App¥Services¥ArticleService array()) in Application.php line 697
at Application->make( App¥Services¥ArticleService ) in Container.php line 849


ネットでぐぐってて他の人のケースだと
providerで
public function register()
{
$this->app->bind( App¥¥Repositories¥¥ServiceCenterRepositoryInterface App¥¥Repositories¥¥ServiceCenterRepository );
とか、エスケープ箇所がまちがってたというケースがあったね