2017-01-04 10 views
0

私はmodulareのlaravel 5.3アプリケーションを作ろうと思っています。私はnwidart/laravel-modules laravelパッケージを作曲者から使いこなそうとしています。このチュートリアルに従います。laravel modules packageと私のブログモジュールが作成され、BlogServiceProviderクラスもあります。 しかし、私はphp artisan module:use Blog私が作曲[Symfony\Component\Debug\Exception\FatalErrorException] Class 'Modules\Vente\Providers\BlogServiceProvider' not foundモジュールを作成するlaravel 5.3

答えて

1
here is exact solution for this 

By default controllers, entities or repositories are not loaded 
automatically. 
You can autoload your modules using psr-4. For example : 


"autoload": { 
    "psr-4": { 
     "App\\": "app/", 
     "Modules\\": "Modules/" 
    } 
}, 

1) copy the above code and paste it in your Composer.json 
2) then do composer dumpautoload 
3) then do php artisan module:use blog 
+0

でこのエラーを取得しないとき、私は同様のモジュールに探しているとどのような 'モジュール思っていた:use'はありません。説明するケア? :-) – dotslash

関連する問題