所以至少還是會安裝 Laravel 4.1 的版本
composer create-project laravel/laravel [ProjectName] 4.1.*
如果要裝最新的版本, 就參照官方的使用方法, 下載 laravel 安裝套件
laravel new [ProjectName]
composer create-project laravel/laravel [ProjectName] 4.1.*
laravel new [ProjectName]
$env = $app->detectEnvironment(function() { return ($_SERVER['SERVER_NAME'] == "project.dev") ? "local" : "production"; });
php artisan migrate --evn=local
post_max_size=20M
upload_max_filesize=20M
php_value post_max_size 20M
php_value upload_max_filesize 20M
nginx
$env = $app->detectEnvironment(array(
'local' => array('local-machine-name'),
'staging' => array('staging-machine-name')
));
$env = $app->detectEnvironment(function()
{
// LARAVEL_ENV 不設定, 預設值為 local
return getenv('LARAVEL_ENV') ?: 'local';
});
# 設定為本地開發環境
SetEnv LARAVEL_ENV local