{"id":22844,"date":"2024-11-21T15:08:12","date_gmt":"2024-11-21T07:08:12","guid":{"rendered":"https:\/\/fwq.ai\/blog\/22844\/"},"modified":"2024-11-21T15:08:12","modified_gmt":"2024-11-21T07:08:12","slug":"%e5%a6%82%e4%bd%95%e6%9f%a5%e7%9c%8blaravel%e7%89%88%e6%9c%ac","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/22844\/","title":{"rendered":"\u5982\u4f55\u67e5\u770blaravel\u7248\u672c"},"content":{"rendered":"<p>laravel\u662f\u4e00\u4e2a\u6d41\u884c\u7684php\u6846\u67b6\uff0c\u5b83\u63d0\u4f9b\u4e86\u8bb8\u591a\u6709\u7528\u7684\u529f\u80fd\u548c\u5de5\u5177\uff0c\u4f7f\u5f97\u5f00\u53d1web\u5e94\u7528\u7a0b\u5e8f\u53d8\u5f97\u66f4\u52a0\u7b80\u5355\u548c\u9ad8\u6548\u3002\u968f\u7740laravel\u7684\u5feb\u901f\u53d1\u5c55\u548c\u4e0d\u65ad\u5347\u7ea7\uff0c\u4e86\u89e3\u5982\u4f55\u67e5\u770b\u5f53\u524dlaravel\u7248\u672c\u662f\u975e\u5e38\u91cd\u8981\u7684\uff0c\u56e0\u4e3a\u5b83\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u4eba\u5458\u66f4\u597d\u5730\u4e86\u89e3\u5b83\u6240\u5305\u542b\u7684\u7279\u6027\u548c\u66f4\u65b0\u3002<\/p>\n<p>\u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u5c06\u63a2\u8ba8\u5982\u4f55\u67e5\u770b\u5f53\u524dLaravel\u7248\u672c\uff0c\u5305\u62ec\u4f7f\u7528\u7ec8\u7aef\u547d\u4ee4\u548c\u67e5\u770bLaravel\u4ee3\u7801\u7684\u65b9\u5f0f\u3002<\/p>\n<h2>\u4f7f\u7528\u7ec8\u7aef\u547d\u4ee4\u67e5\u770bLaravel\u7248\u672c<\/h2>\n<p>Laravel\u5185\u7f6e\u4e86\u4e00\u4e9b\u6709\u7528\u7684\u7ec8\u7aef\u547d\u4ee4\uff0c\u5176\u4e2d\u5c31\u5305\u62ec\u67e5\u770b\u5f53\u524dLaravel\u7248\u672c\u7684\u547d\u4ee4\u3002\u5728\u7ec8\u7aef\u4e2d\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre>php artisan --version<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u8fd9\u6761\u547d\u4ee4\u5c06\u8f93\u51fa\u5f53\u524d\u5b89\u88c5\u7684Laravel\u7248\u672c\u53f7\uff0c\u4f8b\u5982\uff1a<\/p>\n<pre>Laravel Framework 8.63.0<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u8fd9\u91cc\u6211\u4eec\u53ef\u4ee5\u770b\u5230\uff0c\u5f53\u524d\u5b89\u88c5\u7684Laravel\u7248\u672c\u662f8.63.0\u3002<\/p>\n<h2>\u67e5\u770bLaravel\u4ee3\u7801\u4e2d\u7684\u7248\u672c\u4fe1\u606f<\/h2>\n<p>\u53e6\u4e00\u79cd\u67e5\u770bLaravel\u7248\u672c\u53f7\u7684\u65b9\u5f0f\u662f\u67e5\u770b\u4ee3\u7801\u4e2d\u7684\u7248\u672c\u4fe1\u606f\u3002\u4e3a\u4e86\u505a\u5230\u8fd9\u4e00\u70b9\uff0c\u4f60\u9700\u8981\u627e\u5230\u4ee5\u4e0b\u6587\u4ef6\uff1a vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Application.php\u3002\u8be5\u6587\u4ef6\u662fLaravel\u6846\u67b6\u4ee3\u7801\u7684\u4e00\u90e8\u5206\uff0c\u5176\u4e2d\u5305\u542b\u4e86\u6846\u67b6\u7684\u7248\u672c\u4fe1\u606f\u3002<\/p>\n<p>\u6253\u5f00 Application.php \u6587\u4ef6\u5e76\u627e\u5230 VERSION \u5e38\u91cf\uff0c\u4f8b\u5982\uff1a<\/p>\n<pre>const VERSION = '8.63.0';<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u5728\u8fd9\u4e2a\u5e38\u91cf\u4e2d\uff0c\u4f60\u53ef\u4ee5\u770b\u5230\u5f53\u524dLaravel\u7248\u672c\u7684\u5b8c\u6574\u7248\u672c\u53f7\u3002<\/p>\n<h2>\u603b\u7ed3<\/h2>\n<p>\u73b0\u5728\uff0c\u4f60\u5df2\u7ecf\u77e5\u9053\u4e86\u5982\u4f55\u67e5\u770b\u5f53\u524dLaravel\u7248\u672c\u3002\u901a\u8fc7\u4f7f\u7528\u7ec8\u7aef\u547d\u4ee4 php artisan &#8211;version \u6216\u67e5\u770bLaravel\u6846\u67b6\u4ee3\u7801\u4e2d\u7684 VERSION \u5e38\u91cf\uff0c\u4f60\u53ef\u4ee5\u8f7b\u677e\u5730\u83b7\u53d6\u5f53\u524d\u7248\u672c\u7684\u8be6\u7ec6\u4fe1\u606f\u548c\u66f4\u65b0\u3002\u8fd9\u4e9b\u4fe1\u606f\u5bf9\u4e8e\u5f00\u53d1\u4eba\u5458\u975e\u5e38\u91cd\u8981\uff0c\u56e0\u4e3a\u5b83\u4eec\u80fd\u591f\u66f4\u597d\u5730\u8bc4\u4f30Laravel\u7684\u7279\u6027\u548c\u80fd\u529b\uff0c\u5e76\u4e14\u4f7f\u5f97\u5f00\u53d1\u66f4\u52a0\u9ad8\u6548\u548c\u6709\u6761\u4e0d\u7d0a\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u5982\u4f55\u67e5\u770blaravel\u7248\u672c\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>laravel\u662f\u4e00\u4e2a\u6d41\u884c\u7684php\u6846\u67b6\uff0c\u5b83\u63d0\u4f9b\u4e86\u8bb8\u591a\u6709\u7528\u7684\u529f\u80fd\u548c\u5de5\u5177\uff0c\u4f7f\u5f97\u5f00\u53d1web\u5e94\u7528\u7a0b\u5e8f\u53d8\u5f97\u66f4\u52a0\u7b80\u5355\u548c\u9ad8\u6548\u3002\u968f\u7740laravel\u7684\u5feb\u901f\u53d1\u5c55\u548c\u4e0d\u65ad\u5347\u7ea7\uff0c\u4e86\u89e3\u5982\u4f55\u67e5\u770b\u5f53\u524dlaravel\u7248\u672c\u662f\u975e\u5e38\u91cd\u8981\u7684\uff0c\u56e0\u4e3a\u5b83\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u4eba\u5458\u66f4\u597d\u5730\u4e86\u89e3\u5b83\u6240\u5305\u542b\u7684\u7279\u6027\u548c\u66f4\u65b0\u3002 \u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u5c06\u63a2\u8ba8\u5982\u4f55\u67e5\u770b\u5f53\u524dLaravel\u7248\u672c\uff0c\u5305\u62ec\u4f7f\u7528\u7ec8\u7aef\u547d\u4ee4\u548c\u67e5\u770bLaravel\u4ee3\u7801\u7684\u65b9\u5f0f\u3002 \u4f7f\u7528\u7ec8\u7aef\u547d\u4ee4\u67e5\u770bLaravel\u7248\u672c Laravel\u5185\u7f6e\u4e86\u4e00\u4e9b\u6709\u7528\u7684\u7ec8\u7aef\u547d\u4ee4\uff0c\u5176\u4e2d\u5c31\u5305\u62ec\u67e5\u770b\u5f53\u524dLaravel\u7248\u672c\u7684\u547d\u4ee4\u3002\u5728\u7ec8\u7aef\u4e2d\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a php artisan &#8211;version \u767b\u5f55\u540e\u590d\u5236 \u8fd9\u6761\u547d\u4ee4\u5c06\u8f93\u51fa\u5f53\u524d\u5b89\u88c5\u7684Laravel\u7248\u672c\u53f7\uff0c\u4f8b\u5982\uff1a Laravel Framework 8.63.0 \u767b\u5f55\u540e\u590d\u5236 \u8fd9\u91cc\u6211\u4eec\u53ef\u4ee5\u770b\u5230\uff0c\u5f53\u524d\u5b89\u88c5\u7684Laravel\u7248\u672c\u662f8.63.0\u3002 \u67e5\u770bLaravel\u4ee3\u7801\u4e2d\u7684\u7248\u672c\u4fe1\u606f \u53e6\u4e00\u79cd\u67e5\u770bLaravel\u7248\u672c\u53f7\u7684\u65b9\u5f0f\u662f\u67e5\u770b\u4ee3\u7801\u4e2d\u7684\u7248\u672c\u4fe1\u606f\u3002\u4e3a\u4e86\u505a\u5230\u8fd9\u4e00\u70b9\uff0c\u4f60\u9700\u8981\u627e\u5230\u4ee5\u4e0b\u6587\u4ef6\uff1a vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Application.php\u3002\u8be5\u6587\u4ef6\u662fLaravel\u6846\u67b6\u4ee3\u7801\u7684\u4e00\u90e8\u5206\uff0c\u5176\u4e2d\u5305\u542b\u4e86\u6846\u67b6\u7684\u7248\u672c\u4fe1\u606f\u3002 \u6253\u5f00 Application.php \u6587\u4ef6\u5e76\u627e\u5230 VERSION \u5e38\u91cf\uff0c\u4f8b\u5982\uff1a const VERSION = &#8216;8.63.0&#8217;; \u767b\u5f55\u540e\u590d\u5236 \u5728\u8fd9\u4e2a\u5e38\u91cf\u4e2d\uff0c\u4f60\u53ef\u4ee5\u770b\u5230\u5f53\u524dLaravel\u7248\u672c\u7684\u5b8c\u6574\u7248\u672c\u53f7\u3002 \u603b\u7ed3 \u73b0\u5728\uff0c\u4f60\u5df2\u7ecf\u77e5\u9053\u4e86\u5982\u4f55\u67e5\u770b\u5f53\u524dLaravel\u7248\u672c\u3002\u901a\u8fc7\u4f7f\u7528\u7ec8\u7aef\u547d\u4ee4 php artisan &#8211;version \u6216\u67e5\u770bLaravel\u6846\u67b6\u4ee3\u7801\u4e2d\u7684 VERSION \u5e38\u91cf\uff0c\u4f60\u53ef\u4ee5\u8f7b\u677e\u5730\u83b7\u53d6\u5f53\u524d\u7248\u672c\u7684\u8be6\u7ec6\u4fe1\u606f\u548c\u66f4\u65b0\u3002\u8fd9\u4e9b\u4fe1\u606f\u5bf9\u4e8e\u5f00\u53d1\u4eba\u5458\u975e\u5e38\u91cd\u8981\uff0c\u56e0\u4e3a\u5b83\u4eec\u80fd\u591f\u66f4\u597d\u5730\u8bc4\u4f30Laravel\u7684\u7279\u6027\u548c\u80fd\u529b\uff0c\u5e76\u4e14\u4f7f\u5f97\u5f00\u53d1\u66f4\u52a0\u9ad8\u6548\u548c\u6709\u6761\u4e0d\u7d0a\u3002 \u4ee5\u4e0a\u5c31\u662f\u5982\u4f55\u67e5\u770blaravel\u7248\u672c\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-22844","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/22844","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=22844"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/22844\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=22844"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=22844"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=22844"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}