5.2 new install

http://laravel.com/

http://kejyun.github.io/Laravel-4-Docum ... roduction/
回覆文章
yehlu
Site Admin
文章: 3245
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

5.2 new install

文章 yehlu »

1.php ext mbstring pdo openssl
2.laravel new blog or composer create-project --prefer-dist laravel/laravel blog
composer update
3.create .env
4.

代碼: 選擇全部

php artisan key:generate
php artisan config:cache
yehlu
Site Admin
文章: 3245
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

Re: 5.2 new install auth

文章 yehlu »

https://laravel.com/docs/5.2/authentication

代碼: 選擇全部

php artisan make:auth
YehludeMacBook-Pro:rfid yehlu$ php artisan make:auth
Created View: /Users/yehlu/Sites/rfid/resources/views/auth/login.blade.php
Created View: /Users/yehlu/Sites/rfid/resources/views/auth/register.blade.php
Created View: /Users/yehlu/Sites/rfid/resources/views/auth/passwords/email.blade.php
Created View: /Users/yehlu/Sites/rfid/resources/views/auth/passwords/reset.blade.php
Created View: /Users/yehlu/Sites/rfid/resources/views/auth/emails/password.blade.php
Created View: /Users/yehlu/Sites/rfid/resources/views/layouts/app.blade.php
Created View: /Users/yehlu/Sites/rfid/resources/views/home.blade.php
Created View: /Users/yehlu/Sites/rfid/resources/views/welcome.blade.php
Installed HomeController.
Updated Routes File.
Authentication scaffolding generated successfully!

.env
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=rfid
DB_USERNAME=root
DB_PASSWORD=root

代碼: 選擇全部

php artisan config:cache
php artisan migrate
yehlu
Site Admin
文章: 3245
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

Re: 5.2 new install

文章 yehlu »

代碼: 選擇全部

chmod -fR 777 /Users/yehlu/Sites/rfid/storage/
chmod -fR 777 /Users/yehlu/Sites/rfid/bootstrap/cache
yehlu
Site Admin
文章: 3245
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

Re: 5.2 new install

文章 yehlu »

http://rexxoncoding.blogspot.tw/2016/03/laravel-52.html

上面告訴我們,產生 Laravel Project 架構有二個方法對不對?

方法一,把 composer global require 後,用 laravel new [project_name]
方法二,直接用 composer 的 create project

會產生問題就是,幹!方法一跟方法二產生出來的架構檔案居然不一樣!方法二產生出來的東西才是對的

懶人包:產生 Laravel project 時,用這條指令 composer create-project --prefer-dist laravel/laravel blog
回覆文章

回到「laravel」