{"id":1431,"date":"2015-02-11T17:28:44","date_gmt":"2015-02-11T09:28:44","guid":{"rendered":"http:\/\/www.youthtribe.com\/?p=1431"},"modified":"2015-02-11T17:38:12","modified_gmt":"2015-02-11T09:38:12","slug":"laravel-ver5-0%e7%9a%84%e5%ae%89%e8%a3%85-%e3%80%90laravel-5-0%e6%95%99%e7%a8%8b%e3%80%91","status":"publish","type":"post","link":"http:\/\/www.youthtribe.com\/archives\/1431","title":{"rendered":"laravel ver5.0\u7684\u5b89\u88c5-\u3010laravel 5.0\u6559\u7a0b\u3011"},"content":{"rendered":"
\u5148\u662flaravel\u5b98\u65b9\u7f51\u7ad9\uff1ahttp:\/\/laravel.com\/docs\/5.0
\nlaravel \u6700\u8fd1\u66f4\u65b0\u4e865.0\u7248\u672c\u3002\u4ece\u4eca\u5929\u8d77\u5f00\u59cb\u81ea\u5b66\u8fd9\u4e2a\u4f20\u8bf4\u4e2d\u7684\u4f18\u96c5php\u6846\u67b6\u3002<\/p>\n
\u4eca\u5929\u4ed4\u7ec6\u7528\u4e86\u4e0bphp\u4f9d\u8d56\u5e93\u7ba1\u7406\u5229\u5668 comPoser \u8fdb\u884c\u4e86 laravel5.0\u7684\u5b89\u88c5\uff0c\u5bf9\uff0c\u662f\u5728windows\u4e0b\u8fdb\u884c\u7684\u3002\u3002\u6211\u8868\u793a\u6709\u4e86\u70b9\u5934\u7eea\u3002 \u5176\u4e2d\u4e00\u6b65\u4e3b\u8981\u5c31\u662f\u9009\u5bf9php.exe\u7684\u6267\u884c\u6587\u4ef6\u5c31\u597d\u3002 <\/p>\n 2.\u6253\u5f00cmd\u547d\u4ee4\u884c\uff0c\u8f93\u5165\u547d\u4ee4<\/p>\n \u5177\u4f53\u4f5c\u7528\u4e0d\u8be6\uff0c\u4f46\u662f\u4f1a\u5728compser\u6587\u4ef6\u5939\u4e0b\u591a\u51favendor\u6587\u4ef6\u5939 \uff0c\u8fd9\u4e2a\u6211\u6ca1\u641e\u660e\u767d\u3002\u3002\u3002 \u4e0a\u8fb9\u662f\u5b98\u65b9\u9ed8\u8ba4\u7684\u7684\u65b9\u6cd5\uff0c\u7ed3\u679c\u628alaravel\u5b89\u88c5\u5230c\u76d8\u7684\u4e00\u4e2a\u6587\u4ef6\u5939\u4e0b\u4e86\uff0c\u7136\u540e\u770b\u4e86\u4e0b\u547d\u4ee4\u5e2e\u52a9\uff0c\u6539\u7528\u4e0b\u8fb9\u7684\u65b9\u6cd5\uff08\u5728\u6700\u540e\u6307\u5b9a\u4e00\u4e0b\u8def\u5f84\u5c31\u597d\uff09<\/p>\n \u7136\u540e\u7b49\u4e0a\u4e00\u4e9b\u65f6\u95f4\uff0c\u8f83\u6162 \u8fd9\u6837\u5e94\u8be5\u5c31\u53ef\u4ee5\u4e86\uff0c\u7136\u540e\u8bbf\u95ee\u4e00\u4e0b\u7ed1\u5b9a\u7684\u57df\u540d\uff0c\u663e\u793a\u6210\u529f\uff08\u4e0d\u8fc7\u9875\u9762\u611f\u89c9\u6709\u70b9\u602a\uff0c\u4e3b\u8981\u662fcss\uff0c\u989c\u8272\uff0c\u4e5f\u53ef\u80fd\u662f\u4ec0\u4e48gg\u5b57\u4f53\u4e4b\u7c7b\u7684\u5427\uff09<\/p>\n <\/a><\/p>\n \u518d\u4e0a\u4e00\u5f20\u7ed3\u6784\u56fe\u5427<\/p>\n
\n\u5f00\u59cb\u5427\u3002
\n\u6211\u7684\u73af\u5883\uff0cwin7 ,wamp 2.2,\u5efa\u4e86\u4e00\u4e2a\u865a\u62df\u4e3b\u673a\uff0c\u7ed1\u5b9a\u57df\u540dwww.l.com\uff0c\u5230 F:\\wamp\\www\\laravel \u8fd9\u4e2a\u6587\u4ef6\u5939\u3002
\n1.\u5b89\u88c5composer
\nComposer-Setup<\/a><\/p>\n
\n\u5b89\u88c5\u5b8c\u5c31\u4f1a\u81ea\u52a8\u628a composer \u52a0\u5165\u5230\u7cfb\u7edf\u53d8\u91cf\u4e2d\u4e86\u3002
\ncomposer\u4f1a\u5b89\u88c5\u5230\u4ee5\u4e0b\u8def\u5f84\uff1a<\/p>\nC:\\Users\\Administrator\\AppData\\Roaming\\Composer\r\n<\/pre>\n
composer global require \"laravel\/installer=~1.1\"\r\n<\/pre>\n
\n\u8fd9\u5176\u4e2d\u5c31\u5305\u542b\u4e86laravel bin\u7a0b\u5e8f\uff08\u5c31\u662f\u53ef\u4ee5\u6267\u884ccmd \u547d\u4ee4\uff0c\u5728bin\u6587\u4ef6\u5939\u4e0b\uff09
\n3.\u63a5\u4e0b\u6765\u662f\u81ea\u52a8\u521b\u5efalaravel\u9879\u76ee\u5de5\u7a0b\u6587\u4ef6\u4e86\u3002
\n\u6709\u4e24\u79cd\u65b9\u6cd5\uff0c\u4e00\u79cd\u662f\u4ec0\u4e48<\/p>\nlaravel new blog\r\n<\/pre>\n
\n\u6240\u4ee5\u6211\u7528\u7684\u662f\u7b2c\u4e8c\u79cd<\/p>\ncomposer create-project laravel\/laravel --prefer-dist\r\n<\/pre>\n
composer create-project laravel\/laravel --prefer-dist F:\\wamp\\www\\laravel\r\n<\/pre>\n
\n<\/a><\/p>\n