# 網頁laravel="7.x" 安裝環境 ## xampp * 適合練習環境,不適合用來上線(很多資訊漏洞) 1. 下載至c:/ ![](https://i.imgur.com/JEu6ZZ2.png) 2. 到phpMydmin確認資料庫伺服器的伺服器版本 > MariaDB:本機開發 > MySQL:遠端開發 ![](https://i.imgur.com/ueoLPzE.png) (可用docker,因為可以模擬你接下來要上線的環境) # composer 1. 安裝後下載(會自己找到路徑) ![](https://i.imgur.com/sGGKirl.png) ## git 1. git安裝後下載 2. git desktop安裝後下載 3. 設定ssh key 要跟你的電腦連結 [產生ssh key](https://noob.tw/ssh-key/) # laravel 1. Installation laravel (7.x) version > 安裝完需要有以下所有外掛模組(命令提示字元可以用 php -m 查詢) > ![](https://i.imgur.com/J9o2Bcq.png) 2. 至C:\xampp\htdocs 3. 執行composer create-project --prefer-dist laravel/laravel="7.x" project_03 已創建資料夾 ![](https://i.imgur.com/BU0qWYA.png) 網站跟目錄 ![](https://i.imgur.com/icak666.png) # github與project_03同步 1. 到github new repository ![](https://i.imgur.com/o79XDdn.png) 2. 先初始化git ![](https://i.imgur.com/PeaBzsy.png) 3. 告訴本地端資料夾哪個服務要和他的專案連結 執行 git remote add origin https://github.com/wen27/project_03.git ![](https://i.imgur.com/rE7uftk.png) (什麼錯誤都沒有代表成功) 3.至github desktop 每次要更新至github 需要給summary ![](https://i.imgur.com/ptxWOue.png) 按下commit to master 按下push ![](https://i.imgur.com/J5OVVZi.png) 已和github同步 ![](https://i.imgur.com/5q8eT1I.png) ###### tags: `laravel.` `網頁沙龍課程` `Github Desk`