{"id":808,"date":"2014-10-07T18:36:41","date_gmt":"2014-10-07T10:36:41","guid":{"rendered":"http:\/\/blog.turn.tw\/?page_id=808"},"modified":"2014-10-07T18:36:41","modified_gmt":"2014-10-07T10:36:41","slug":"%e5%ae%9a%e7%be%a9%e5%9f%ba%e6%9c%ac%e8%b7%af%e5%be%91%ef%bc%9abootstrappaths-php","status":"publish","type":"page","link":"https:\/\/blog.turn.tw\/?page_id=808","title":{"rendered":"\u5b9a\u7fa9\u57fa\u672c\u8def\u5f91\uff1abootstrap\/paths.php"},"content":{"rendered":"<pre>\r\n<?php\r\n\r\nreturn array(\r\n\r\n\t\/*\r\n\t|--------------------------------------------------------------------------\r\n\t| Application Path\r\n\t|--------------------------------------------------------------------------\r\n\t|\r\n\t| Here we just defined the path to the application directory. Most likely\r\n\t| you will never need to change this value as the default setup should\r\n\t| work perfectly fine for the vast majority of all our applications.\r\n\t|\r\n\t*\/\r\n\r\n\t'app' => __DIR__.'\/..\/app',\r\n\r\n\t\/*\r\n\t|--------------------------------------------------------------------------\r\n\t| Public Path\r\n\t|--------------------------------------------------------------------------\r\n\t|\r\n\t| The public path contains the assets for your web application, such as\r\n\t| your JavaScript and CSS files, and also contains the primary entry\r\n\t| point for web requests into these applications from the outside.\r\n\t|\r\n\t*\/\r\n\r\n\t'public' => __DIR__.'\/..\/public',\r\n\r\n\t\/*\r\n\t|--------------------------------------------------------------------------\r\n\t| Base Path\r\n\t|--------------------------------------------------------------------------\r\n\t|\r\n\t| The base path is the root of the Laravel installation. Most likely you\r\n\t| will not need to change this value. But, if for some wild reason it\r\n\t| is necessary you will do so here, just proceed with some caution.\r\n\t|\r\n\t*\/\r\n\r\n\t'base' => __DIR__.'\/..',\r\n\r\n\t\/*\r\n\t|--------------------------------------------------------------------------\r\n\t| Storage Path\r\n\t|--------------------------------------------------------------------------\r\n\t|\r\n\t| The storage path is used by Laravel to store cached Blade views, logs\r\n\t| and other pieces of information. You may modify the path here when\r\n\t| you want to change the location of this directory for your apps.\r\n\t|\r\n\t*\/\r\n\r\n\t'storage' => __DIR__.'\/..\/app\/storage',\r\n\r\n);\r\n\r\n<\/pre>\n<p>\u6709\u4e9b\u6846\u67b6\u7684\u4f5c\u6cd5\u662f\u5b9a\u7fa9 BASEPATH\u3001APPPATH\u3001SYSDIR\u7b49\u5168\u57df\u5e38\u6578\uff0c\u7136\u5f8c\u5230\u8655\u4f7f\u7528\u9019\u4e9b\u5e38\u6578\u3002<br \/>\nLaravel\u5c07\u5b83\u5011\u5b9a\u7fa9\u5728\u6b64\u8655\uff0c\u7136\u5f8cbind\u5230\u6838\u5fc3\u5be6\u9ad4\u3002<br \/>\n\u597d\u8655\u4f55\u5728\uff1f\u907f\u514d\u6c59\u67d3\u5168\u57df\u74b0\u5883\u7e3d\u662f\u4ef6\u597d\u4e8b\u5427\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":{"_mi_skip_tracking":false},"_links":{"self":[{"href":"https:\/\/blog.turn.tw\/index.php?rest_route=\/wp\/v2\/pages\/808"}],"collection":[{"href":"https:\/\/blog.turn.tw\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/blog.turn.tw\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/blog.turn.tw\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.turn.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=808"}],"version-history":[{"count":1,"href":"https:\/\/blog.turn.tw\/index.php?rest_route=\/wp\/v2\/pages\/808\/revisions"}],"predecessor-version":[{"id":810,"href":"https:\/\/blog.turn.tw\/index.php?rest_route=\/wp\/v2\/pages\/808\/revisions\/810"}],"wp:attachment":[{"href":"https:\/\/blog.turn.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=808"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}