套版下載網址:

TimeZone - Online watch store

說明如何將免費套版安裝到 Laravel 專案內,並用控制器來渲染首頁

開發流程

Step 1. 建立新專案

laravel new freefrontend

Step 2.專案設定

語系

資料庫

時區

Step 3.設定本地虛擬網址(非必須)

C:\xampp\apache\conf\extra\httpd-vhosts.conf

C:\Windows\System32\drivers\etc\hosts(Win)

Step 4.安裝前端套版

Step 5.切割父視圖與首頁子視圖

Step 6.建立控制器

Step 7.建立路由

Step 8.測試首頁是否成功