次のエラーが表示されます。
Class 'App\Http\Controllers\File' not found
laravel 5コントローラーで使用する場合:
$files = File::files( $this->csvDir );
ファイルシステムをcomposer.json
とに追加する必要がありconfig/app.php
ます。どういうわけか、私は設定ミスを使用しています。
それが私が変更したものです:
composer.json
"require": {
"laravel/framework": "5.0.*",
"illuminate/html": "5.*",
"illuminate/filesystem": "5.*" /* my try to repo */
},
config/app.php
'providers' => [
// [...]
// jerik 2015-04-17: get html Forms
// http://laravel.io/forum/09-20-2014-html-form-class-not-found-in-laravel-5
'Illuminate\Html\HtmlServiceProvider',
'Illuminate\Filesystem\FilesystemServiceProvider', // try to add file
を実行するcomposer update
と、うまく動作しますが、ファイルシステムがダウンロードされたという出力はありません。私の設定は間違っていますが、正しい方法がわかりません。
提案やヒントはありますか?