Laravelのバージョン6系をインストールする



インストール方法は下記URLに「Via Laravel Installer」と「Via Composer Create-Project」の2種類が記載されている。

https://laravel.com/docs/6.x#installing-laravel

今回は「Via Composer Create-Project」を採用。作成するプロジェクト名(ディレクトリ)を「sample_laravel_src」とした場合のコマンド実行例。

```
% composer create-project --prefer-dist laravel/laravel sample_laravel_src "6.*"
```

以下、実行ログ。

```
% composer create-project --prefer-dist laravel/laravel sample_laravel_src "6.*"
Creating a "laravel/laravel" project at "./sample_laravel_src"
Installing laravel/laravel (v6.20.1)
  - Downloading laravel/laravel (v6.20.1)
  - Installing laravel/laravel (v6.20.1): Extracting archive
Created project in /Users/xxx/sample_laravel_src
> @php -r "file_exists('.env') || copy('.env.example', '.env');"
Loading composer repositories with package information
Updating dependencies
Lock file operations: 89 installs, 0 updates, 0 removals
  - Locking doctrine/inflector (2.0.4)
  - Locking doctrine/instantiator (1.4.0)
  - Locking doctrine/lexer (1.2.1)
  - Locking dragonmantank/cron-expression (v2.3.1)
  - Locking egulias/email-validator (2.1.25)
  - Locking facade/flare-client-php (1.9.1)
  - Locking facade/ignition (1.18.0)
  - Locking facade/ignition-contracts (1.0.1)
  - Locking fakerphp/faker (v1.16.0)
  - Locking fideloper/proxy (4.4.1)
  - Locking filp/whoops (2.14.4)
  - Locking hamcrest/hamcrest-php (v2.0.1)
  - Locking laravel/framework (v6.20.37)
  - Locking laravel/tinker (v2.6.2)
  - Locking league/commonmark (1.6.6)
  - Locking league/flysystem (1.1.5)
  - Locking league/mime-type-detection (1.8.0)
  - Locking mockery/mockery (1.3.5)
  - Locking monolog/monolog (2.3.5)
  - Locking myclabs/deep-copy (1.10.2)
  - Locking nesbot/carbon (2.54.0)
  - Locking nikic/php-parser (v4.13.1)
  - Locking nunomaduro/collision (v3.2.0)
  - Locking opis/closure (3.6.2)
  - Locking paragonie/random_compat (v9.99.100)
  - Locking phar-io/manifest (2.0.3)
  - Locking phar-io/version (3.1.0)
  - Locking php-parallel-lint/php-console-color (v0.3)
  - Locking php-parallel-lint/php-console-highlighter (v0.5)
  - Locking phpdocumentor/reflection-common (2.2.0)
  - Locking phpdocumentor/reflection-docblock (5.3.0)
  - Locking phpdocumentor/type-resolver (1.5.1)
  - Locking phpoption/phpoption (1.8.0)
  - Locking phpspec/prophecy (1.14.0)
  - Locking phpunit/php-code-coverage (7.0.15)
  - Locking phpunit/php-file-iterator (2.0.4)
  - Locking phpunit/php-text-template (1.2.1)
  - Locking phpunit/php-timer (2.1.3)
  - Locking phpunit/php-token-stream (3.1.3)
  - Locking phpunit/phpunit (8.5.21)
  - Locking psr/container (1.1.1)
  - Locking psr/log (1.1.4)
  - Locking psr/simple-cache (1.0.1)
  - Locking psy/psysh (v0.10.9)
  - Locking ramsey/uuid (3.9.6)
  - Locking scrivo/highlight.php (v9.18.1.8)
  - Locking sebastian/code-unit-reverse-lookup (1.0.2)
  - Locking sebastian/comparator (3.0.3)
  - Locking sebastian/diff (3.0.3)
  - Locking sebastian/environment (4.2.4)
  - Locking sebastian/exporter (3.1.3)
  - Locking sebastian/global-state (3.0.1)
  - Locking sebastian/object-enumerator (3.0.4)
  - Locking sebastian/object-reflector (1.1.2)
  - Locking sebastian/recursion-context (3.0.1)
  - Locking sebastian/resource-operations (2.0.2)
  - Locking sebastian/type (1.1.4)
  - Locking sebastian/version (2.0.1)
  - Locking swiftmailer/swiftmailer (v6.3.0)
  - Locking symfony/console (v4.4.33)
  - Locking symfony/css-selector (v5.3.4)
  - Locking symfony/debug (v4.4.31)
  - Locking symfony/deprecation-contracts (v2.4.0)
  - Locking symfony/error-handler (v4.4.30)
  - Locking symfony/event-dispatcher (v4.4.30)
  - Locking symfony/event-dispatcher-contracts (v1.1.9)
  - Locking symfony/finder (v4.4.30)
  - Locking symfony/http-client-contracts (v2.4.0)
  - Locking symfony/http-foundation (v4.4.33)
  - Locking symfony/http-kernel (v4.4.33)
  - Locking symfony/mime (v5.3.8)
  - Locking symfony/polyfill-ctype (v1.23.0)
  - Locking symfony/polyfill-iconv (v1.23.0)
  - Locking symfony/polyfill-intl-idn (v1.23.0)
  - Locking symfony/polyfill-intl-normalizer (v1.23.0)
  - Locking symfony/polyfill-mbstring (v1.23.1)
  - Locking symfony/polyfill-php72 (v1.23.0)
  - Locking symfony/polyfill-php73 (v1.23.0)
  - Locking symfony/polyfill-php80 (v1.23.1)
  - Locking symfony/process (v4.4.30)
  - Locking symfony/routing (v4.4.30)
  - Locking symfony/service-contracts (v2.4.0)
  - Locking symfony/translation (v4.4.32)
  - Locking symfony/translation-contracts (v2.4.0)
  - Locking symfony/var-dumper (v4.4.33)
  - Locking theseer/tokenizer (1.2.1)
  - Locking tijsverkoyen/css-to-inline-styles (2.2.3)
  - Locking vlucas/phpdotenv (v3.6.9)
  - Locking webmozart/assert (1.10.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 89 installs, 0 updates, 0 removals
  - Downloading doctrine/inflector (2.0.4)
  - Downloading doctrine/lexer (1.2.1)
  - Downloading dragonmantank/cron-expression (v2.3.1)
  - Downloading symfony/polyfill-php80 (v1.23.1)
  - Downloading symfony/polyfill-php72 (v1.23.0)
  - Downloading symfony/polyfill-mbstring (v1.23.1)
  - Downloading symfony/var-dumper (v4.4.33)
  - Downloading psr/container (1.1.1)
  - Downloading symfony/service-contracts (v2.4.0)
  - Downloading symfony/polyfill-php73 (v1.23.0)
  - Downloading symfony/console (v4.4.33)
  - Downloading scrivo/highlight.php (v9.18.1.8)
  - Downloading psr/log (1.1.4)
  - Downloading monolog/monolog (2.3.5)
  - Downloading symfony/polyfill-ctype (v1.23.0)
  - Downloading phpoption/phpoption (1.8.0)
  - Downloading vlucas/phpdotenv (v3.6.9)
  - Downloading symfony/css-selector (v5.3.4)
  - Downloading tijsverkoyen/css-to-inline-styles (2.2.3)
  - Downloading symfony/routing (v4.4.30)
  - Downloading symfony/process (v4.4.30)
  - Downloading symfony/polyfill-intl-normalizer (v1.23.0)
  - Downloading symfony/polyfill-intl-idn (v1.23.0)
  - Downloading symfony/deprecation-contracts (v2.4.0)
  - Downloading symfony/mime (v5.3.8)
  - Downloading symfony/http-foundation (v4.4.33)
  - Downloading symfony/http-client-contracts (v2.4.0)
  - Downloading symfony/event-dispatcher-contracts (v1.1.9)
  - Downloading symfony/event-dispatcher (v4.4.30)
  - Downloading symfony/debug (v4.4.31)
  - Downloading symfony/error-handler (v4.4.30)
  - Downloading symfony/http-kernel (v4.4.33)
  - Downloading symfony/finder (v4.4.30)
  - Downloading symfony/polyfill-iconv (v1.23.0)
  - Downloading egulias/email-validator (2.1.25)
  - Downloading swiftmailer/swiftmailer (v6.3.0)
  - Downloading paragonie/random_compat (v9.99.100)
  - Downloading ramsey/uuid (3.9.6)
  - Downloading psr/simple-cache (1.0.1)
  - Downloading opis/closure (3.6.2)
  - Downloading symfony/translation-contracts (v2.4.0)
  - Downloading symfony/translation (v4.4.32)
  - Downloading nesbot/carbon (2.54.0)
  - Downloading league/mime-type-detection (1.8.0)
  - Downloading league/flysystem (1.1.5)
  - Downloading league/commonmark (1.6.6)
  - Downloading laravel/framework (v6.20.37)
  - Downloading filp/whoops (2.14.4)
  - Downloading facade/ignition-contracts (1.0.1)
  - Downloading facade/flare-client-php (1.9.1)
  - Downloading facade/ignition (1.18.0)
  - Downloading fakerphp/faker (v1.16.0)
  - Downloading fideloper/proxy (4.4.1)
  - Downloading nikic/php-parser (v4.13.1)
  - Downloading psy/psysh (v0.10.9)
  - Downloading laravel/tinker (v2.6.2)
  - Downloading hamcrest/hamcrest-php (v2.0.1)
  - Downloading mockery/mockery (1.3.5)
  - Downloading php-parallel-lint/php-console-color (v0.3)
  - Downloading php-parallel-lint/php-console-highlighter (v0.5)
  - Downloading nunomaduro/collision (v3.2.0)
  - Downloading webmozart/assert (1.10.0)
  - Downloading phpdocumentor/reflection-common (2.2.0)
  - Downloading phpdocumentor/type-resolver (1.5.1)
  - Downloading phpdocumentor/reflection-docblock (5.3.0)
  - Downloading phpunit/php-token-stream (3.1.3)
  - Downloading sebastian/version (2.0.1)
  - Downloading sebastian/type (1.1.4)
  - Downloading sebastian/resource-operations (2.0.2)
  - Downloading sebastian/recursion-context (3.0.1)
  - Downloading sebastian/object-reflector (1.1.2)
  - Downloading sebastian/object-enumerator (3.0.4)
  - Downloading sebastian/global-state (3.0.1)
  - Downloading sebastian/exporter (3.1.3)
  - Downloading sebastian/environment (4.2.4)
  - Downloading sebastian/diff (3.0.3)
  - Downloading sebastian/comparator (3.0.3)
  - Downloading phpunit/php-timer (2.1.3)
  - Downloading phpunit/php-text-template (1.2.1)
  - Downloading phpunit/php-file-iterator (2.0.4)
  - Downloading theseer/tokenizer (1.2.1)
  - Downloading sebastian/code-unit-reverse-lookup (1.0.2)
  - Downloading phpunit/php-code-coverage (7.0.15)
  - Downloading doctrine/instantiator (1.4.0)
  - Downloading phpspec/prophecy (1.14.0)
  - Downloading phar-io/version (3.1.0)
  - Downloading phar-io/manifest (2.0.3)
  - Downloading myclabs/deep-copy (1.10.2)
  - Downloading phpunit/phpunit (8.5.21)
  - Installing doctrine/inflector (2.0.4): Extracting archive
  - Installing doctrine/lexer (1.2.1): Extracting archive
  - Installing dragonmantank/cron-expression (v2.3.1): Extracting archive
  - Installing symfony/polyfill-php80 (v1.23.1): Extracting archive
  - Installing symfony/polyfill-php72 (v1.23.0): Extracting archive
  - Installing symfony/polyfill-mbstring (v1.23.1): Extracting archive
  - Installing symfony/var-dumper (v4.4.33): Extracting archive
  - Installing psr/container (1.1.1): Extracting archive
  - Installing symfony/service-contracts (v2.4.0): Extracting archive
  - Installing symfony/polyfill-php73 (v1.23.0): Extracting archive
  - Installing symfony/console (v4.4.33): Extracting archive
  - Installing scrivo/highlight.php (v9.18.1.8): Extracting archive
  - Installing psr/log (1.1.4): Extracting archive
  - Installing monolog/monolog (2.3.5): Extracting archive
  - Installing symfony/polyfill-ctype (v1.23.0): Extracting archive
  - Installing phpoption/phpoption (1.8.0): Extracting archive
  - Installing vlucas/phpdotenv (v3.6.9): Extracting archive
  - Installing symfony/css-selector (v5.3.4): Extracting archive
  - Installing tijsverkoyen/css-to-inline-styles (2.2.3): Extracting archive
  - Installing symfony/routing (v4.4.30): Extracting archive
  - Installing symfony/process (v4.4.30): Extracting archive
  - Installing symfony/polyfill-intl-normalizer (v1.23.0): Extracting archive
  - Installing symfony/polyfill-intl-idn (v1.23.0): Extracting archive
  - Installing symfony/deprecation-contracts (v2.4.0): Extracting archive
  - Installing symfony/mime (v5.3.8): Extracting archive
  - Installing symfony/http-foundation (v4.4.33): Extracting archive
  - Installing symfony/http-client-contracts (v2.4.0): Extracting archive
  - Installing symfony/event-dispatcher-contracts (v1.1.9): Extracting archive
  - Installing symfony/event-dispatcher (v4.4.30): Extracting archive
  - Installing symfony/debug (v4.4.31): Extracting archive
  - Installing symfony/error-handler (v4.4.30): Extracting archive
  - Installing symfony/http-kernel (v4.4.33): Extracting archive
  - Installing symfony/finder (v4.4.30): Extracting archive
  - Installing symfony/polyfill-iconv (v1.23.0): Extracting archive
  - Installing egulias/email-validator (2.1.25): Extracting archive
  - Installing swiftmailer/swiftmailer (v6.3.0): Extracting archive
  - Installing paragonie/random_compat (v9.99.100): Extracting archive
  - Installing ramsey/uuid (3.9.6): Extracting archive
  - Installing psr/simple-cache (1.0.1): Extracting archive
  - Installing opis/closure (3.6.2): Extracting archive
  - Installing symfony/translation-contracts (v2.4.0): Extracting archive
  - Installing symfony/translation (v4.4.32): Extracting archive
  - Installing nesbot/carbon (2.54.0): Extracting archive
  - Installing league/mime-type-detection (1.8.0): Extracting archive
  - Installing league/flysystem (1.1.5): Extracting archive
  - Installing league/commonmark (1.6.6): Extracting archive
  - Installing laravel/framework (v6.20.37): Extracting archive
  - Installing filp/whoops (2.14.4): Extracting archive
  - Installing facade/ignition-contracts (1.0.1): Extracting archive
  - Installing facade/flare-client-php (1.9.1): Extracting archive
  - Installing facade/ignition (1.18.0): Extracting archive
  - Installing fakerphp/faker (v1.16.0): Extracting archive
  - Installing fideloper/proxy (4.4.1): Extracting archive
  - Installing nikic/php-parser (v4.13.1): Extracting archive
  - Installing psy/psysh (v0.10.9): Extracting archive
  - Installing laravel/tinker (v2.6.2): Extracting archive
  - Installing hamcrest/hamcrest-php (v2.0.1): Extracting archive
  - Installing mockery/mockery (1.3.5): Extracting archive
  - Installing php-parallel-lint/php-console-color (v0.3): Extracting archive
  - Installing php-parallel-lint/php-console-highlighter (v0.5): Extracting archive
  - Installing nunomaduro/collision (v3.2.0): Extracting archive
  - Installing webmozart/assert (1.10.0): Extracting archive
  - Installing phpdocumentor/reflection-common (2.2.0): Extracting archive
  - Installing phpdocumentor/type-resolver (1.5.1): Extracting archive
  - Installing phpdocumentor/reflection-docblock (5.3.0): Extracting archive
  - Installing phpunit/php-token-stream (3.1.3): Extracting archive
  - Installing sebastian/version (2.0.1): Extracting archive
  - Installing sebastian/type (1.1.4): Extracting archive
  - Installing sebastian/resource-operations (2.0.2): Extracting archive
  - Installing sebastian/recursion-context (3.0.1): Extracting archive
  - Installing sebastian/object-reflector (1.1.2): Extracting archive
  - Installing sebastian/object-enumerator (3.0.4): Extracting archive
  - Installing sebastian/global-state (3.0.1): Extracting archive
  - Installing sebastian/exporter (3.1.3): Extracting archive
  - Installing sebastian/environment (4.2.4): Extracting archive
  - Installing sebastian/diff (3.0.3): Extracting archive
  - Installing sebastian/comparator (3.0.3): Extracting archive
  - Installing phpunit/php-timer (2.1.3): Extracting archive
  - Installing phpunit/php-text-template (1.2.1): Extracting archive
  - Installing phpunit/php-file-iterator (2.0.4): Extracting archive
  - Installing theseer/tokenizer (1.2.1): Extracting archive
  - Installing sebastian/code-unit-reverse-lookup (1.0.2): Extracting archive
  - Installing phpunit/php-code-coverage (7.0.15): Extracting archive
  - Installing doctrine/instantiator (1.4.0): Extracting archive
  - Installing phpspec/prophecy (1.14.0): Extracting archive
  - Installing phar-io/version (3.1.0): Extracting archive
  - Installing phar-io/manifest (2.0.3): Extracting archive
  - Installing myclabs/deep-copy (1.10.2): Extracting archive
  - Installing phpunit/phpunit (8.5.21): Extracting archive
66 package suggestions were added by new dependencies, use `composer suggest` to see details.
Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested.
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
Discovered Package: facade/ignition
Discovered Package: fideloper/proxy
Discovered Package: laravel/tinker
Discovered Package: nesbot/carbon
Discovered Package: nunomaduro/collision
Package manifest generated successfully.
62 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
> @php artisan key:generate --ansi
Application key set successfully.
```

sample_laravel_srcディレクトリにインストールされています。

```
% ls sample_laravel_src
README.md  artisan*    composer.json  config/	 package.json  public/	   routes/     storage/  vendor/
app/	   bootstrap/  composer.lock  database/  phpunit.xml   resources/  server.php  tests/	 webpack.mix.js
```