Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
メインフォルダー [app] をlaravel 5の作成者名に変更したいのですが、オートローダーやコンポーザーで何も変更せずにそれを行うにはどうすればよいですか?
composer.json ファイルに「psr-4」という名前のエントリがあり、その中で名前を変更した新しいディレクトリに変更します。
"autoload": { "classmap": [ "database" ], "psr-4": { "App\\": "your_new_directory/" } },
次に、コマンドラインで次を実行します。
$ composer dump-autoload
または
$ php composer.phar dump-autoload