{"id":168,"date":"2023-02-19T17:32:35","date_gmt":"2023-02-19T09:32:35","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=168"},"modified":"2023-02-19T17:33:49","modified_gmt":"2023-02-19T09:33:49","slug":"windows-laravel-environment-establish","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/02\/19\/windows-laravel-environment-establish\/","title":{"rendered":"Windows\u4e0bLaravel\u73af\u5883\u642d\u5efa"},"content":{"rendered":"<h3>\u5347\u7ea7Composer<\/h3>\n<pre><code>C:\\Users\\yezhou&gt;composer self-update\nYou are already using composer version 1.2.1 (stable channel).<\/code><\/pre>\n<p><!-- more --><\/p>\n<h3>\u5347\u7ea7Laravel\u5b89\u88c5\u5668<\/h3>\n<pre><code>C:\\Users\\yezhou&gt;composer global update laravel\/installer\nChanged current directory to C:\/Users\/yezhou\/AppData\/Roaming\/Composer\nLoading composer repositories with package information\nUpdating dependencies (including require-dev)\n  - Removing laravel\/installer (v1.3.1)\n  - Installing laravel\/installer (v1.3.4)\n    Downloading: 100%\n\nWriting lock file\nGenerating autoload files<\/code><\/pre>\n<h3>\u67e5\u770bLaravel\u5b89\u88c5\u5668\u7248\u672c\u53f7<\/h3>\n<pre><code>C:\\Users\\yezhou&gt;laravel --version\nLaravel Installer version 1.3.3<\/code><\/pre>\n<h3>\u521b\u5efaLaravel\u9879\u76ee<\/h3>\n<pre><code>C:\\Server\\www&gt;laravel new MyProject<\/code><\/pre>\n<h3>\u521b\u5efa\u6307\u5b9a\u7248\u672cLaravel\u9879\u76ee<\/h3>\n<pre><code>C:\\Server\\www&gt;laravel new MyProject --5.2<\/code><\/pre>\n<p>\u6216\u8005\u4f7f\u7528composer\u7684<code>create-project<\/code>\u5b89\u88c5<\/p>\n<pre><code>C:\\Server\\www&gt;composer create-project laravel\/laravel MyProject &quot;5.1.*&quot;<\/code><\/pre>\n<h3>\u67e5\u770b\u5f53\u524d\u9879\u76eeLaravel\u7248\u672c\u53f7<\/h3>\n<pre><code>C:\\Server\\www\\MyProject&gt;php artisan -V\nLaravel Framework version 5.3.22<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u5347\u7ea7Composer C:\\Users\\yezhou&gt;composer self-update You  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[72],"class_list":["post-168","post","type-post","status-publish","format-standard","hentry","category-laravel","tag-laravel"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/168","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=168"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/168\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=168"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=168"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=168"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}