{"id":1047,"date":"2025-01-18T12:23:46","date_gmt":"2025-01-18T04:23:46","guid":{"rendered":"https:\/\/www.laixuexila.com\/?p=1047"},"modified":"2025-01-18T12:23:46","modified_gmt":"2025-01-18T04:23:46","slug":"laravel-%e9%83%a8%e7%bd%b2%e4%b8%8e%e7%94%9f%e4%ba%a7%e7%8e%af%e5%a2%83%ef%bc%9a%e4%bb%8e%e5%bc%80%e5%8f%91%e5%88%b0%e4%b8%8a%e7%ba%bf","status":"publish","type":"post","link":"https:\/\/www.laixuexila.com\/index.php\/2025\/01\/18\/laravel-%e9%83%a8%e7%bd%b2%e4%b8%8e%e7%94%9f%e4%ba%a7%e7%8e%af%e5%a2%83%ef%bc%9a%e4%bb%8e%e5%bc%80%e5%8f%91%e5%88%b0%e4%b8%8a%e7%ba%bf\/","title":{"rendered":"Laravel \u90e8\u7f72\u4e0e\u751f\u4ea7\u73af\u5883\uff1a\u4ece\u5f00\u53d1\u5230\u4e0a\u7ebf"},"content":{"rendered":"\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u5c06 Laravel \u5e94\u7528\u4ece\u5f00\u53d1\u73af\u5883\u8fc1\u79fb\u5230\u751f\u4ea7\u73af\u5883\u662f\u6bcf\u4e2a\u5f00\u53d1\u8005\u90fd\u5fc5\u987b\u9762\u5bf9\u7684\u4efb\u52a1\u3002\u6b63\u786e\u7684\u90e8\u7f72\u6d41\u7a0b\u4e0d\u4ec5\u80fd\u591f\u786e\u4fdd\u5e94\u7528\u7684\u9ad8\u53ef\u7528\u6027\u548c\u7a33\u5b9a\u6027\uff0c\u8fd8\u80fd\u591f\u63d0\u9ad8\u6027\u80fd\u5e76\u786e\u4fdd\u6570\u636e\u5b89\u5168\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u90e8\u7f72 Laravel \u5e94\u7528\u5230\u751f\u4ea7\u73af\u5883\uff0c\u5e76\u786e\u4fdd\u751f\u4ea7\u73af\u5883\u4e2d\u7684\u5b89\u5168\u6027\u3001\u6027\u80fd\u548c\u7a33\u5b9a\u6027\u3002<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u4e00\u3001\u90e8\u7f72\u524d\u7684\u51c6\u5907<\/strong><\/h3>\n\n\n\n<p>\u5728\u90e8\u7f72 Laravel \u5e94\u7528\u5230\u751f\u4ea7\u73af\u5883\u4e4b\u524d\uff0c\u9700\u8981\u786e\u4fdd\u4e00\u4e9b\u5fc5\u8981\u7684\u914d\u7f6e\u548c\u5de5\u5177\u5df2\u7ecf\u5230\u4f4d\u3002\u4ee5\u4e0b\u662f\u90e8\u7f72\u4e4b\u524d\u7684\u51c6\u5907\u5de5\u4f5c\uff1a<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">1.1 <strong>\u9009\u62e9\u670d\u52a1\u5668\u4e0e\u4e3b\u673a<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u5171\u4eab\u4e3b\u673a vs VPS \/ \u4e91\u4e3b\u673a<\/strong>\uff1a\u5bf9\u4e8e\u8f83\u5c0f\u7684\u9879\u76ee\uff0c\u60a8\u53ef\u4ee5\u9009\u62e9\u5171\u4eab\u4e3b\u673a\uff0c\u4f46\u5bf9\u4e8e\u66f4\u5927\u7684 Laravel \u5e94\u7528\uff0c\u5efa\u8bae\u9009\u62e9 VPS \u6216\u4e91\u4e3b\u673a\uff08\u5982 DigitalOcean\u3001AWS\u3001Linode\u3001Aliyun\u7b49\uff09\uff0c\u5b83\u4eec\u63d0\u4f9b\u66f4\u9ad8\u7684\u81ea\u5b9a\u4e49\u6027\u3001\u6027\u80fd\u548c\u53ef\u6269\u5c55\u6027\u3002<\/li>\n\n\n\n<li><strong>\u63a8\u8350\u914d\u7f6e<\/strong>\uff1aPHP 7.4 \u6216\u66f4\u9ad8\u7248\u672c\u3001Nginx \u6216 Apache Web \u670d\u52a1\u5668\u3001MySQL \u6216 PostgreSQL \u6570\u636e\u5e93\u3002<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">1.2 <strong>\u914d\u7f6e <code>.env<\/code> \u6587\u4ef6<\/strong><\/h4>\n\n\n\n<p>\u786e\u4fdd <code>.env<\/code> \u6587\u4ef6\u5728\u5f00\u53d1\u548c\u751f\u4ea7\u73af\u5883\u4e2d\u662f\u4e0d\u540c\u7684\u3002\u5728\u751f\u4ea7\u73af\u5883\u4e2d\uff0c\u60a8\u5e94\u5f53\u914d\u7f6e\u751f\u4ea7\u6570\u636e\u5e93\u3001\u7f13\u5b58\u3001\u961f\u5217\u7b49\u670d\u52a1\u7684\u53c2\u6570\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>APP_NAME=MyApp\nAPP_ENV=production\nAPP_KEY=base64:your-app-key\nAPP_DEBUG=false\nAPP_URL=http:\/\/your-domain.com\n\nDB_CONNECTION=mysql\nDB_HOST=127.0.0.1\nDB_PORT=3306\nDB_DATABASE=your_database\nDB_USERNAME=your_db_username\nDB_PASSWORD=your_db_password\n\nCACHE_DRIVER=redis\nSESSION_DRIVER=redis\nQUEUE_CONNECTION=redis<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u91cd\u8981\u63d0\u793a<\/strong>\uff1a\u4e0d\u8981\u5c06 <code>APP_DEBUG<\/code> \u8bbe\u7f6e\u4e3a <code>true<\/code>\uff0c\u4ee5\u9632\u66b4\u9732\u654f\u611f\u7684\u9519\u8bef\u4fe1\u606f\u3002<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">1.3 <strong>\u751f\u6210\u5e94\u7528\u5bc6\u94a5<\/strong><\/h4>\n\n\n\n<p>Laravel \u4f7f\u7528\u5e94\u7528\u5bc6\u94a5\u6765\u52a0\u5bc6\u7528\u6237\u4f1a\u8bdd\u548c\u5176\u4ed6\u52a0\u5bc6\u6570\u636e\u3002\u5728\u90e8\u7f72\u5230\u751f\u4ea7\u73af\u5883\u65f6\uff0c\u52a1\u5fc5\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u751f\u6210\u4e00\u4e2a\u65b0\u7684\u5bc6\u94a5\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php artisan key:generate<\/code><\/pre>\n\n\n\n<p>\u786e\u4fdd\u751f\u6210\u7684\u5bc6\u94a5\u5df2\u7ecf\u5199\u5165 <code>.env<\/code> \u6587\u4ef6\u4e2d\u7684 <code>APP_KEY<\/code> \u5b57\u6bb5\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u4e8c\u3001\u751f\u4ea7\u73af\u5883\u4e2d\u7684\u4f9d\u8d56\u5b89\u88c5\u4e0e\u914d\u7f6e<\/strong><\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">2.1 <strong>\u5b89\u88c5 Composer \u4f9d\u8d56<\/strong><\/h4>\n\n\n\n<p>\u5728\u751f\u4ea7\u73af\u5883\u4e2d\uff0c\u60a8\u5e94\u5f53\u4f7f\u7528 <code>--optimize-autoloader<\/code> \u548c <code>--no-dev<\/code> \u6807\u5fd7\u6765\u5b89\u88c5\u751f\u4ea7\u73af\u5883\u7684\u4f9d\u8d56\uff0c\u8fd9\u53ef\u4ee5\u63d0\u9ad8\u6027\u80fd\u5e76\u907f\u514d\u5b89\u88c5\u5f00\u53d1\u65f6\u9700\u8981\u7684\u4f9d\u8d56\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>composer install --optimize-autoloader --no-dev<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><code>--no-dev<\/code><\/strong>\uff1a\u5ffd\u7565\u5f00\u53d1\u4f9d\u8d56\uff0c\u53ea\u5b89\u88c5\u751f\u4ea7\u73af\u5883\u9700\u8981\u7684\u5305\u3002<\/li>\n\n\n\n<li><strong><code>--optimize-autoloader<\/code><\/strong>\uff1a\u4f18\u5316\u81ea\u52a8\u52a0\u8f7d\u5668\uff0c\u63d0\u9ad8\u6027\u80fd\u3002<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">2.2 <strong>\u914d\u7f6e\u7f13\u5b58<\/strong><\/h4>\n\n\n\n<p>Laravel \u63d0\u4f9b\u4e86\u591a\u4e2a\u7f13\u5b58\u673a\u5236\uff0c\u5305\u62ec\u8def\u7531\u7f13\u5b58\u3001\u89c6\u56fe\u7f13\u5b58\u548c\u914d\u7f6e\u7f13\u5b58\uff0c\u8fd9\u4e9b\u90fd\u80fd\u5e2e\u52a9\u63d0\u9ad8\u5e94\u7528\u7684\u6027\u80fd\u3002\u5728\u751f\u4ea7\u73af\u5883\u4e2d\uff0c\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u6765\u7f13\u5b58\u914d\u7f6e\u3001\u8def\u7531\u548c\u89c6\u56fe\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php artisan config:cache\nphp artisan route:cache\nphp artisan view:cache<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><code>config:cache<\/code><\/strong>\uff1a\u5c06\u6240\u6709\u914d\u7f6e\u6587\u4ef6\u7f13\u5b58\u4e3a\u4e00\u4e2a\u6587\u4ef6\uff0c\u51cf\u5c11\u6bcf\u6b21\u8bf7\u6c42\u65f6\u7684 I\/O \u64cd\u4f5c\u3002<\/li>\n\n\n\n<li><strong><code>route:cache<\/code><\/strong>\uff1a\u5c06\u8def\u7531\u4fe1\u606f\u7f13\u5b58\u4e3a\u4e00\u4e2a\u6587\u4ef6\uff0c\u52a0\u901f\u8def\u7531\u5339\u914d\u3002<\/li>\n\n\n\n<li><strong><code>view:cache<\/code><\/strong>\uff1a\u5c06 Blade \u89c6\u56fe\u7f13\u5b58\uff0c\u63d0\u9ad8\u89c6\u56fe\u6e32\u67d3\u6027\u80fd\u3002<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">2.3 <strong>\u751f\u6210\u751f\u4ea7\u73af\u5883\u6570\u636e\u5e93\u8fc1\u79fb<\/strong><\/h4>\n\n\n\n<p>\u786e\u4fdd\u60a8\u7684\u751f\u4ea7\u73af\u5883\u6570\u636e\u5e93\u5df2\u7ecf\u51c6\u5907\u597d\uff0c\u5e76\u8fd0\u884c Laravel \u7684\u6570\u636e\u5e93\u8fc1\u79fb\u547d\u4ee4\u6765\u540c\u6b65\u6570\u636e\u5e93\u7ed3\u6784\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php artisan migrate --force<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><code>--force<\/code><\/strong>\uff1a\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u8fd0\u884c\u8fc1\u79fb\u65f6\uff0c\u9700\u8981\u6dfb\u52a0\u6b64\u6807\u5fd7\u6765\u9632\u6b62\u786e\u8ba4\u63d0\u793a\u3002<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">2.4 <strong>\u8bbe\u7f6e\u6587\u4ef6\u6743\u9650<\/strong><\/h4>\n\n\n\n<p>\u786e\u4fdd Laravel \u9879\u76ee\u7684\u6587\u4ef6\u548c\u76ee\u5f55\u6743\u9650\u6b63\u786e\uff0c\u5c24\u5176\u662f <code>storage<\/code> \u548c <code>bootstrap\/cache<\/code> \u76ee\u5f55\u9700\u8981\u53ef\u5199\u6743\u9650\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>chmod -R 775 storage\nchmod -R 775 bootstrap\/cache<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>775<\/strong>\uff1a\u4e00\u822c\u60c5\u51b5\u4e0b\uff0c\u7ed9\u8fd9\u4e9b\u76ee\u5f55\u8bbe\u7f6e 775 \u6743\u9650\u5373\u53ef\u3002<\/li>\n\n\n\n<li><strong><code>storage<\/code> \u76ee\u5f55<\/strong>\uff1a\u7528\u4e8e\u65e5\u5fd7\u3001\u7f13\u5b58\u548c\u4f1a\u8bdd\u5b58\u50a8\u3002<\/li>\n\n\n\n<li><strong><code>bootstrap\/cache<\/code> \u76ee\u5f55<\/strong>\uff1a\u7528\u4e8e\u5b58\u50a8\u5e94\u7528\u7f13\u5b58\u3002<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u4e09\u3001Web \u670d\u52a1\u5668\u914d\u7f6e<\/strong><\/h3>\n\n\n\n<p>Laravel \u53ef\u4ee5\u4e0e Apache \u6216 Nginx \u7b49 Web \u670d\u52a1\u5668\u4e00\u8d77\u5de5\u4f5c\u3002\u4ee5\u4e0b\u662f\u4e24\u8005\u7684\u914d\u7f6e\u65b9\u5f0f\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">3.1 <strong>Nginx \u914d\u7f6e<\/strong><\/h4>\n\n\n\n<p>Nginx \u662f\u4e00\u4e2a\u9ad8\u6548\u7684\u53cd\u5411\u4ee3\u7406\u670d\u52a1\u5668\uff0c\u9002\u5408\u4e0e Laravel \u4e00\u8d77\u4f7f\u7528\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u5e38\u89c1\u7684 Nginx \u914d\u7f6e\u793a\u4f8b\uff0c\u60a8\u9700\u8981\u5c06\u5176\u6dfb\u52a0\u5230\u60a8\u7684 Nginx \u914d\u7f6e\u6587\u4ef6\u4e2d\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>server {\n    listen 80;\n    server_name your-domain.com;\n    root \/path\/to\/your\/laravel\/public;\n\n    index index.php index.html index.htm;\n\n    location \/ {\n        try_files $uri $uri\/ \/index.php?$query_string;\n    }\n\n    location ~ \\.php$ {\n        fastcgi_pass unix:\/var\/run\/php\/php7.4-fpm.sock;  # PHP-FPM socket\n        fastcgi_index index.php;\n        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;\n        include fastcgi_params;\n    }\n\n    location ~ \/\\.ht {\n        deny all;\n    }\n\n    error_log \/var\/log\/nginx\/laravel_error.log;\n    access_log \/var\/log\/nginx\/laravel_access.log;\n}<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">3.2 <strong>Apache \u914d\u7f6e<\/strong><\/h4>\n\n\n\n<p>\u5982\u679c\u60a8\u4f7f\u7528 Apache\uff0c\u786e\u4fdd\u542f\u7528\u4e86 mod_rewrite \u6a21\u5757\uff0c\u5e76\u5728 <code>.htaccess<\/code> \u6587\u4ef6\u4e2d\u914d\u7f6e\u6b63\u786e\u7684\u91cd\u5199\u89c4\u5219\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u57fa\u672c\u7684 <code>.htaccess<\/code> \u914d\u7f6e\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;IfModule mod_rewrite.c&gt;\n    RewriteEngine On\n    RewriteRule ^(.*)$ public\/$1 &#91;L]\n&lt;\/IfModule&gt;<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">3.3 <strong>PHP \u914d\u7f6e<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>PHP-FPM<\/strong>\uff1a\u786e\u4fdd\u60a8\u7684 PHP \u73af\u5883\u914d\u7f6e\u6b63\u786e\uff0c\u5e76\u542f\u7528\u9002\u5f53\u7684\u6269\u5c55\uff08\u5982 <code>mbstring<\/code>\u3001<code>opcache<\/code>\u3001<code>pdo_mysql<\/code> \u7b49\uff09\u3002<\/li>\n\n\n\n<li><strong>OPcache<\/strong>\uff1a\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u5f00\u542f OPcache \u53ef\u4ee5\u63d0\u9ad8 PHP \u811a\u672c\u7684\u6267\u884c\u6548\u7387\u3002\u4fee\u6539 PHP \u914d\u7f6e\u6587\u4ef6 <code>php.ini<\/code>\uff0c\u5e76\u542f\u7528 OPcache\uff1a<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>opcache.enable=1\nopcache.memory_consumption=128\nopcache.interned_strings_buffer=8\nopcache.max_accelerated_files=10000\nopcache.revalidate_freq=60<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u56db\u3001\u76d1\u63a7\u4e0e\u65e5\u5fd7<\/strong><\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">4.1 <strong>\u65e5\u5fd7\u7ba1\u7406<\/strong><\/h4>\n\n\n\n<p>Laravel \u9ed8\u8ba4\u5c06\u65e5\u5fd7\u5199\u5165 <code>storage\/logs<\/code> \u76ee\u5f55\u3002\u60a8\u53ef\u4ee5\u4f7f\u7528\u4e0d\u540c\u7684\u65e5\u5fd7\u6e20\u9053\u6765\u5904\u7406\u65e5\u5fd7\u3002\u4f8b\u5982\uff0c\u751f\u4ea7\u73af\u5883\u4e2d\u53ef\u4ee5\u5c06\u65e5\u5fd7\u5199\u5165\u8fdc\u7a0b\u670d\u52a1\uff0c\u5982 Papertrail \u6216 Loggly\u3002\u60a8\u53ef\u4ee5\u5728 <code>.env<\/code> \u6587\u4ef6\u4e2d\u8bbe\u7f6e\u65e5\u5fd7\u9a71\u52a8\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>LOG_CHANNEL=stack<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">4.2 <strong>\u76d1\u63a7\u5e94\u7528<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Laravel Horizon<\/strong>\uff1a\u5982\u679c\u60a8\u4f7f\u7528 Laravel \u961f\u5217\uff0c\u5efa\u8bae\u4f7f\u7528 Horizon \u6765\u76d1\u63a7\u961f\u5217\u7684\u72b6\u6001\u3002<\/li>\n\n\n\n<li><strong>\u670d\u52a1\u5668\u76d1\u63a7<\/strong>\uff1a\u4f7f\u7528\u5de5\u5177\u5982 <code>New Relic<\/code>\u3001<code>Datadog<\/code> \u6216 <code>Grafana<\/code> \u76d1\u63a7\u670d\u52a1\u5668\u548c\u5e94\u7528\u7684\u6027\u80fd\uff0c\u53ca\u65f6\u53d1\u73b0\u5e76\u89e3\u51b3\u95ee\u9898\u3002<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u4e94\u3001\u5b89\u5168\u6027\u914d\u7f6e<\/strong><\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">5.1 <strong>\u7981\u7528\u8c03\u8bd5\u6a21\u5f0f<\/strong><\/h4>\n\n\n\n<p>\u786e\u4fdd\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u7981\u7528 Laravel \u7684\u8c03\u8bd5\u6a21\u5f0f\uff0c\u4ee5\u9632\u6cc4\u6f0f\u654f\u611f\u7684\u9519\u8bef\u4fe1\u606f\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>APP_DEBUG=false<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">5.2 <strong>HTTPS \u914d\u7f6e<\/strong><\/h4>\n\n\n\n<p>\u5f3a\u70c8\u5efa\u8bae\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u542f\u7528 HTTPS\uff0c\u4ee5\u4fdd\u8bc1\u6570\u636e\u4f20\u8f93\u7684\u5b89\u5168\u6027\u3002\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e Nginx \u6216 Apache \u91cd\u5b9a\u5411 HTTP \u8bf7\u6c42\u5230 HTTPS\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>server {\n    listen 80;\n    server_name your-domain.com;\n    return 301 https:\/\/$server_name$request_uri;\n}<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">5.3 <strong>\u73af\u5883\u53d8\u91cf\u7ba1\u7406<\/strong><\/h4>\n\n\n\n<p>\u5728\u751f\u4ea7\u73af\u5883\u4e2d\uff0c\u5207\u52ff\u5c06 <code>.env<\/code> \u6587\u4ef6\u653e\u5165\u7248\u672c\u63a7\u5236\u4e2d\u3002\u4f7f\u7528\u73af\u5883\u53d8\u91cf\u7ba1\u7406\u5de5\u5177\uff08\u5982 Laravel Envoyer \u6216 Docker Secrets\uff09\u6765\u5b89\u5168\u5730\u7ba1\u7406\u751f\u4ea7\u73af\u5883\u7684\u5bc6\u94a5\u548c\u914d\u7f6e\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5c06 Laravel \u5e94\u7528\u4ece\u5f00\u53d1\u73af\u5883\u8fc1\u79fb\u5230\u751f\u4ea7\u73af\u5883\u662f\u6bcf\u4e2a\u5f00\u53d1\u8005\u90fd\u5fc5\u987b\u9762\u5bf9\u7684\u4efb\u52a1\u3002\u6b63\u786e\u7684\u90e8\u7f72\u6d41\u7a0b\u4e0d\u4ec5\u80fd\u591f\u786e\u4fdd\u5e94\u7528\u7684 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[62],"tags":[],"class_list":["post-1047","post","type-post","status-publish","format-standard","hentry","category-laravel"],"_links":{"self":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts\/1047","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/comments?post=1047"}],"version-history":[{"count":1,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts\/1047\/revisions"}],"predecessor-version":[{"id":1048,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts\/1047\/revisions\/1048"}],"wp:attachment":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/media?parent=1047"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/categories?post=1047"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/tags?post=1047"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}