{"id":172,"date":"2023-02-19T19:04:21","date_gmt":"2023-02-19T11:04:21","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=172"},"modified":"2023-02-19T19:04:42","modified_gmt":"2023-02-19T11:04:42","slug":"laravel-include-custom-php-file","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/02\/19\/laravel-include-custom-php-file\/","title":{"rendered":"Laravel\u5f15\u7528\u81ea\u5b9a\u4e49php\u6587\u4ef6"},"content":{"rendered":"<h2>\u76f4\u63a5\u5f15\u7528<\/h2>\n<pre><code class=\"language-php\">require __DIR__ . &#039;\/..\/common\/util.function.php&#039;;<\/code><\/pre>\n<p><!-- more --><\/p>\n<h2>autoload<\/h2>\n<p>composer.json<\/p>\n<pre><code class=\"language-json\">&quot;autoload&quot;: {\n    &quot;psr-4&quot;: {\n        &quot;App\\\\&quot;: &quot;app\/&quot;\n    },\n    &quot;classmap&quot;: [\n        &quot;database\/seeds&quot;,\n        &quot;database\/factories&quot;,\n        &quot;app\/Library&quot;\n    ]\n},<\/code><\/pre>\n<pre><code>> composer dump-autoload  \/\/\u91cd\u65b0\u52a0\u8f7d\u7c7b\u5e93<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u76f4\u63a5\u5f15\u7528 require __DIR__ . &#039;\/..\/common\/util.function.p [&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-172","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\/172","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=172"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/172\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=172"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=172"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=172"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}