前提・実現したいこと
Laravel5.6について質問です。
バージョン5.5まではartisanコマンドが使えるのですが、5.6を試したところ以前まであったvendorディレクトリが無く当然エラーが出ます。
勉強中の身あり、理解が追いついていませんが、5.6からはvendorディレクトリ(中身含む)は自作するものになったのですか?
ご教示いただければ幸いです。よろしくお願いします。
追記
インストールは「Laravel new」「composer create-project」のどちらも試しました。
「Laravel new」の場合「5.6」
「composer create-project」の場合は「5.5」がインストールされます。
今回は「Laravel new」でインストールされる「5.6」のファイル群の中に「vendor」が見当たらなかった為、ご質問させていただきました。
紛らわしくてすみません。
またGithubでも確認しましたが、こちらにもvendorディレクトリは見当たりませんでした。
↓
https://github.com/laravel/laravel
気になる質問をクリップする
クリップした質問は、後からいつでもMYページで確認できます。
またクリップした質問に回答があった際、通知やメールを受け取ることができます。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/06/13 04:08
2018/06/13 04:20 編集
2018/06/13 04:19 編集
回答3件
0
ベストアンサー
個人的には、composer create-project --prefer-dist laravel/laravel 名前
をよく使うのですが... こちらで試した感じでは、コマンドが終了すると Vender の中もセットアップされていて、すぐに php artisan serve
が、実行できる状態になっています。
テストで、laravel (v5.6.21) 作成したログを記載しておきます。(長すぎると言われたので、ログの途中を一部カットしました。)
$ composer create-project --prefer-dist laravel/laravel test01 Installing laravel/laravel (v5.6.21) - Installing laravel/laravel (v5.6.21): Downloading (100%) Created project in test01 > @php -r "file_exists('.env') || copy('.env.example', '.env');" Loading composer repositories with package information Updating dependencies (including require-dev) Package operations: 70 installs, 0 updates, 0 removals - Installing vlucas/phpdotenv (v2.4.0): Loading from cache - Installing symfony/css-selector (v4.1.0): Downloading (100%) - Installing tijsverkoyen/css-to-inline-styles (2.2.1): Loading from cache - Installing symfony/polyfill-php72 (v1.8.0): Downloading (100%) - Installing symfony/polyfill-mbstring (v1.8.0): Downloading (100%) - Installing symfony/var-dumper (v4.1.0): Downloading (100%) - Installing symfony/routing (v4.1.0): Downloading (100%) - Installing symfony/process (v4.1.0): Downloading (100%) - Installing symfony/polyfill-ctype (v1.8.0): Downloading (100%) - Installing symfony/http-foundation (v4.1.0): Downloading (100%) - Installing symfony/event-dispatcher (v4.1.0): Downloading (100%) - Installing psr/log (1.0.2): Loading from cache - Installing symfony/debug (v4.1.0): Downloading (100%) - Installing symfony/http-kernel (v4.1.0): Downloading (100%) - Installing paragonie/random_compat (v2.0.15): Downloading (100%) - Installing symfony/finder (v4.1.0): Downloading (100%) - Installing symfony/console (v4.1.0): Downloading (100%) - Installing doctrine/lexer (v1.0.1): Loading from cache - Installing egulias/email-validator (2.1.4): Downloading (100%) - Installing swiftmailer/swiftmailer (v6.0.2): Loading from cache - Installing ramsey/uuid (3.7.3): Loading from cache - Installing psr/simple-cache (1.0.1): Downloading (100%) - Installing psr/container (1.0.0): Loading from cache - Installing symfony/translation (v4.1.0): Downloading (100%) - Installing nesbot/carbon (1.25.0): Downloading (100%) - Installing monolog/monolog (1.23.0): Loading from cache - Installing league/flysystem (1.0.45): Downloading (100%) - Installing erusev/parsedown (1.7.1): Downloading (100%) - Installing dragonmantank/cron-expression (v2.2.0): Downloading (100%) - Installing doctrine/inflector (v1.3.0): Loading from cache - Installing laravel/framework (v5.6.25): Downloading (100%) - Installing fideloper/proxy (4.0.0): Downloading (100%) - Installing nikic/php-parser (v4.0.2): Downloading (100%) - Installing jakub-onderka/php-console-color (0.1): Loading from cache - Installing jakub-onderka/php-console-highlighter (v0.3.2): Loading from cache - Installing dnoegel/php-xdg-base-dir (0.1): Loading from cache - Installing psy/psysh (v0.9.6): Downloading (100%) - Installing laravel/tinker (v1.0.7): Downloading (100%) - Installing fzaninotto/faker (v1.7.1): Loading from cache - Installing hamcrest/hamcrest-php (v2.0.0): Loading from cache - Installing mockery/mockery (1.1.0): Downloading (100%) - Installing filp/whoops (2.2.0): Downloading (100%) - Installing nunomaduro/collision (v2.0.2): Downloading (100%) - Installing sebastian/version (2.0.1): Loading from cache - Installing sebastian/resource-operations (1.0.0): Loading from cache - Installing sebastian/object-reflector (1.1.1): Loading from cache - Installing sebastian/recursion-context (3.0.0): Loading from cache - Installing sebastian/object-enumerator (3.0.3): Loading from cache - Installing sebastian/global-state (2.0.0): Loading from cache - Installing sebastian/exporter (3.1.0): Loading from cache - Installing sebastian/environment (3.1.0): Loading from cache - Installing sebastian/diff (3.0.1): Downloading (100%) - Installing sebastian/comparator (3.0.0): Downloading (100%) - Installing phpunit/php-timer (2.0.0): Downloading (100%) - Installing phpunit/php-text-template (1.2.1): Loading from cache - Installing phpunit/php-file-iterator (2.0.1): Downloading (100%) - Installing theseer/tokenizer (1.1.0): Loading from cache - Installing sebastian/code-unit-reverse-lookup (1.0.1): Loading from cache - Installing phpunit/php-token-stream (3.0.0): Downloading (100%) - Installing phpunit/php-code-coverage (6.0.7): Downloading (100%) - Installing doctrine/instantiator (1.1.0): Loading from cache - Installing webmozart/assert (1.3.0): Loading from cache - Installing phpdocumentor/reflection-common (1.0.1): Loading from cache - Installing phpdocumentor/type-resolver (0.4.0): Loading from cache - Installing phpdocumentor/reflection-docblock (4.3.0): Loading from cache - Installing phpspec/prophecy (1.7.6): Downloading (100%) - Installing phar-io/version (1.0.1): Loading from cache - Installing phar-io/manifest (1.0.1): Loading from cache - Installing myclabs/deep-copy (1.8.1): Downloading (100%) - Installing phpunit/phpunit (7.2.4): Downloading (100%) (中略) Writing lock file Generating optimized autoload files > Illuminate\Foundation\ComposerScripts::postAutoloadDump > @php artisan package:discover Discovered Package: fideloper/proxy Discovered Package: laravel/tinker Discovered Package: nunomaduro/collision Package manifest generated successfully. > @php artisan key:generate Application key [base64:1mKdfDZg6EUzxBSELyyPq3vRKbK+MG/FWAVot4IAip8=] set successfully. $ ls test01/* test01/artisan test01/composer.lock test01/phpunit.xml test01/server.php test01/composer.json test01/package.json test01/readme.md test01/webpack.mix.js test01/app: Console Exceptions Http Providers User.php test01/bootstrap: app.php cache test01/config: app.php database.php mail.php view.php auth.php filesystems.php queue.php broadcasting.php hashing.php services.php cache.php logging.php session.php test01/database: factories migrations seeds test01/public: css favicon.ico index.php js robots.txt web.config test01/resources: assets lang views test01/routes: api.php channels.php console.php web.php test01/storage: app framework logs test01/tests: CreatesApplication.php Feature TestCase.php Unit test01/vendor: autoload.php egulias jakub-onderka nesbot phpspec swiftmailer bin erusev laravel nikic phpunit symfony composer fideloper league nunomaduro psr theseer dnoegel filp mockery paragonie psy tijsverkoyen doctrine fzaninotto monolog phar-io ramsey vlucas dragonmantank hamcrest myclabs phpdocumentor sebastian webmozart $ cd test01 $ php artisan serve Laravel development server started: <http://127.0.0.1:8000>
投稿2018/06/13 04:19
総合スコア25171
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
あなたの回答
tips
太字
斜体
打ち消し線
見出し
引用テキストの挿入
コードの挿入
リンクの挿入
リストの挿入
番号リストの挿入
表の挿入
水平線の挿入
プレビュー
質問の解決につながる回答をしましょう。 サンプルコードなど、より具体的な説明があると質問者の理解の助けになります。 また、読む側のことを考えた、分かりやすい文章を心がけましょう。