Laravel Project 作成のメモ

前の作業

Laravel Homestead 実施メモ - quwaharaの日記

Project作成

# Git bash for Windows から
$ vagrant ssh

vagrant@homestead:~$ pwd
/home/vagrant
vagrant@homestead:~$ composer create-project --prefer-dist laravel/laravel laravel_getting_started "6.*"
vagrant@homestead:~$ ls -l ./laravel_getting_started/public/
total 9
-rwxrwxrwx 1 vagrant vagrant    0 Apr 16 07:45 favicon.ico
-rwxrwxrwx 1 vagrant vagrant 1823 Apr 16 07:45 index.php
-rwxrwxrwx 1 vagrant vagrant   24 Apr 16 07:45 robots.txt
-rwxrwxrwx 1 vagrant vagrant 1194 Apr 16 07:45 web.config

Project site access

http://laravelgettingstarted.test:8000/ へアクセス

(参考) Homestead の Port 対応付け

# Git bash for Windows、Homestead ディレクトリで実施
$ vagrant port
The forwarded ports for the machine are listed below. Please note that
these values may differ from values configured in the Vagrantfile if the
provider supports automatic port collision detection and resolution.

    22 (guest) => 2222 (host)
 27017 (guest) => 27017 (host)
  3306 (guest) => 33060 (host)
  4040 (guest) => 4040 (host)
   443 (guest) => 44300 (host)
  5432 (guest) => 54320 (host)
    80 (guest) => 8000 (host)
  8025 (guest) => 8025 (host)
  9600 (guest) => 9600 (host)