Laravel Core 개발자에게 많은 정보가 있습니다. Laravel에 파일을 저장할 위치가 없습니다. 그것은 모두 프로젝트 디자인과 작업 방식에 달려 있습니다.
Taylor의 첫 번째 저서 (https://leanpub.com/laravel)에서 그는 "모델 디렉토리가 아직 삭제 되었습니까? 그렇지 않다면 꺼내십시오!"라고 말합니다. '중요한'디렉토리를 삭제하고 파일을 멀리 옮길 수있는 경우 응용 프로그램의 혜택을 누릴 수있는 한 다른 어떤 것도 사라질 수 있습니다.
시작 (내게 좋을 수도 있고 그렇지 않을 수도 있음) : app/services/<ServiceName>
디렉토리를 만들고 관련된 filters.php (서비스 별)를 입력하십시오. Laravel 자체 filters.php와 마찬가지로 그리고 globals.php을 통해 그들을로드 :
/*
|--------------------------------------------------------------------------
| Require The Filters File
|--------------------------------------------------------------------------
|
| Next we will load the filters file for the application. This gives us
| a nice separate location to store our route and application filter
| definitions instead of putting them all in the main routes file.
|
*/
require __DIR__.'/../filters.php';
을 당신이 다르게로드해야 할 수도 있습니다 어떤 시점에서, 어쩌면 부팅 서비스 제공 업체() 메소드를하고 있어요. ..