{"id":1021,"date":"2025-01-18T11:55:30","date_gmt":"2025-01-18T03:55:30","guid":{"rendered":"https:\/\/www.laixuexila.com\/?p=1021"},"modified":"2025-01-18T11:55:30","modified_gmt":"2025-01-18T03:55:30","slug":"laravel-artisan-%e5%91%bd%e4%bb%a4%ef%bc%9a%e4%bd%bf%e7%94%a8%e3%80%81%e5%88%9b%e5%bb%ba%e4%b8%8e%e8%b0%83%e5%ba%a6%e8%87%aa%e5%ae%9a%e4%b9%89%e5%91%bd%e4%bb%a4","status":"publish","type":"post","link":"https:\/\/www.laixuexila.com\/index.php\/2025\/01\/18\/laravel-artisan-%e5%91%bd%e4%bb%a4%ef%bc%9a%e4%bd%bf%e7%94%a8%e3%80%81%e5%88%9b%e5%bb%ba%e4%b8%8e%e8%b0%83%e5%ba%a6%e8%87%aa%e5%ae%9a%e4%b9%89%e5%91%bd%e4%bb%a4\/","title":{"rendered":"Laravel Artisan \u547d\u4ee4\uff1a\u4f7f\u7528\u3001\u521b\u5efa\u4e0e\u8c03\u5ea6\u81ea\u5b9a\u4e49\u547d\u4ee4"},"content":{"rendered":"\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Laravel \u7684 <strong>Artisan<\/strong> \u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u5b83\u5e2e\u52a9\u5f00\u53d1\u8005\u5feb\u901f\u6267\u884c\u5e38\u89c1\u7684\u5f00\u53d1\u4efb\u52a1\uff0c\u5982\u6570\u636e\u5e93\u8fc1\u79fb\u3001\u751f\u6210\u4ee3\u7801\u3001\u6e05\u7406\u7f13\u5b58\u3001\u521b\u5efa\u63a7\u5236\u5668\u548c\u6a21\u578b\u7b49\u3002Artisan \u547d\u4ee4\u662f Laravel \u5f00\u53d1\u4e2d\u7684\u4e00\u4e2a\u975e\u5e38\u91cd\u8981\u7684\u90e8\u5206\uff0c\u80fd\u663e\u8457\u63d0\u9ad8\u5f00\u53d1\u6548\u7387\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecd Laravel \u4e2d\u7684\u5e38\u7528 Artisan \u547d\u4ee4\u3001\u5982\u4f55\u81ea\u5b9a\u4e49 Artisan \u547d\u4ee4\u4ee5\u53ca\u4e00\u4e9b\u9ad8\u7ea7\u7528\u6cd5\u3002<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">1. \u5e38\u7528\u7684 Artisan \u547d\u4ee4<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">1.1 \u542f\u52a8 Artisan \u547d\u4ee4\u884c<\/h4>\n\n\n\n<p>\u8981\u4f7f\u7528 Artisan\uff0c\u9996\u5148\u9700\u8981\u8fdb\u5165\u4f60\u7684 Laravel \u9879\u76ee\u7684\u6839\u76ee\u5f55\uff0c\u5e76\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u542f\u52a8 Artisan CLI\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php artisan<\/code><\/pre>\n\n\n\n<p>\u6b64\u547d\u4ee4\u4f1a\u663e\u793a\u53ef\u7528\u7684 Artisan \u547d\u4ee4\u5217\u8868\uff0c\u5e76\u5c55\u793a\u6bcf\u4e2a\u547d\u4ee4\u7684\u7b80\u77ed\u8bf4\u660e\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">1.2 \u5e38\u7528\u7684 Artisan \u547d\u4ee4<\/h4>\n\n\n\n<p>\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u89c1\u7684 Artisan \u547d\u4ee4\u548c\u5b83\u4eec\u7684\u4f5c\u7528\uff1a<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">1.2.1 <code>php artisan serve<\/code><\/h5>\n\n\n\n<p>\u7528\u4e8e\u542f\u52a8\u5185\u7f6e\u7684\u5f00\u53d1\u670d\u52a1\u5668\uff0c\u901a\u5e38\u7528\u4e8e\u672c\u5730\u5f00\u53d1\u548c\u6d4b\u8bd5\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php artisan serve<\/code><\/pre>\n\n\n\n<p>\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u670d\u52a1\u5668\u4f1a\u5728 <code>http:\/\/localhost:8000<\/code> \u542f\u52a8\u3002<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">1.2.2 <code>php artisan make:controller<\/code><\/h5>\n\n\n\n<p>\u7528\u4e8e\u521b\u5efa\u65b0\u7684\u63a7\u5236\u5668\u3002\u4f60\u53ef\u4ee5\u6307\u5b9a\u63a7\u5236\u5668\u7684\u540d\u79f0\uff0c\u751a\u81f3\u662f\u63a7\u5236\u5668\u7684\u7c7b\u578b\uff08\u5982\u8d44\u6e90\u63a7\u5236\u5668\uff09\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php artisan make:controller UserController<\/code><\/pre>\n\n\n\n<p>\u5982\u679c\u9700\u8981\u521b\u5efa\u4e00\u4e2a\u8d44\u6e90\u63a7\u5236\u5668\uff0c\u53ef\u4ee5\u52a0\u4e0a <code>--resource<\/code> \u53c2\u6570\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php artisan make:controller UserController --resource<\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">1.2.3 <code>php artisan make:model<\/code><\/h5>\n\n\n\n<p>\u7528\u4e8e\u521b\u5efa\u65b0\u7684 Eloquent \u6a21\u578b\uff0c\u901a\u5e38\u4e0e\u6570\u636e\u5e93\u8868\u914d\u5408\u4f7f\u7528\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php artisan make:model User<\/code><\/pre>\n\n\n\n<p>\u5982\u679c\u9700\u8981\u540c\u65f6\u521b\u5efa\u6a21\u578b\u7684\u8fc1\u79fb\u6587\u4ef6\uff0c\u53ef\u4ee5\u52a0\u4e0a <code>-m<\/code> \u53c2\u6570\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php artisan make:model User -m<\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">1.2.4 <code>php artisan migrate<\/code><\/h5>\n\n\n\n<p>\u7528\u4e8e\u8fd0\u884c\u6570\u636e\u5e93\u8fc1\u79fb\u3002\u6570\u636e\u5e93\u8fc1\u79fb\u662f Laravel \u4e2d\u7528\u4e8e\u521b\u5efa\u548c\u4fee\u6539\u6570\u636e\u5e93\u7ed3\u6784\u7684\u5de5\u5177\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php artisan migrate<\/code><\/pre>\n\n\n\n<p>\u5982\u679c\u8981\u56de\u6eda\u6700\u8fd1\u7684\u8fc1\u79fb\uff0c\u53ef\u4ee5\u4f7f\u7528\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php artisan migrate:rollback<\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">1.2.5 <code>php artisan db:seed<\/code><\/h5>\n\n\n\n<p>\u7528\u4e8e\u8fd0\u884c\u6570\u636e\u5e93\u586b\u5145\uff08Seeder\uff09\u7c7b\uff0c\u5c06\u5047\u6570\u636e\u63d2\u5165\u6570\u636e\u5e93\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php artisan db:seed<\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">1.2.6 <code>php artisan cache:clear<\/code><\/h5>\n\n\n\n<p>\u7528\u4e8e\u6e05\u9664\u5e94\u7528\u7a0b\u5e8f\u7684\u7f13\u5b58\u3002\u8fd9\u5bf9\u4e8e\u5f00\u53d1\u548c\u8c03\u8bd5\u975e\u5e38\u6709\u7528\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php artisan cache:clear<\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">1.2.7 <code>php artisan config:cache<\/code><\/h5>\n\n\n\n<p>\u7528\u4e8e\u7f13\u5b58\u914d\u7f6e\u6587\u4ef6\uff0c\u8fd9\u6837\u53ef\u4ee5\u63d0\u9ad8\u5e94\u7528\u7a0b\u5e8f\u7684\u6027\u80fd\uff0c\u7279\u522b\u662f\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php artisan config:cache<\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">1.2.8 <code>php artisan route:list<\/code><\/h5>\n\n\n\n<p>\u7528\u4e8e\u5217\u51fa\u6240\u6709\u5df2\u6ce8\u518c\u7684\u8def\u7531\u53ca\u5176\u5bf9\u5e94\u7684\u63a7\u5236\u5668\u548c\u65b9\u6cd5\u3002\u8fd9\u5bf9\u4e8e\u8c03\u8bd5\u548c\u67e5\u770b\u5e94\u7528\u4e2d\u7684\u8def\u7531\u975e\u5e38\u6709\u5e2e\u52a9\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php artisan route:list<\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">1.2.9 <code>php artisan make:migration<\/code><\/h5>\n\n\n\n<p>\u7528\u4e8e\u521b\u5efa\u65b0\u7684\u8fc1\u79fb\u6587\u4ef6\uff0c\u53ef\u4ee5\u7528\u6765\u4fee\u6539\u6570\u636e\u5e93\u7ed3\u6784\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php artisan make:migration create_users_table<\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">1.2.10 <code>php artisan tinker<\/code><\/h5>\n\n\n\n<p>\u7528\u4e8e\u542f\u52a8\u4e00\u4e2a REPL\uff08\u4ea4\u4e92\u5f0f\u547d\u4ee4\u884c\u73af\u5883\uff09\uff0c\u5141\u8bb8\u4f60\u76f4\u63a5\u4e0e Laravel \u5e94\u7528\u7a0b\u5e8f\u8fdb\u884c\u4ea4\u4e92\u3002\u4f60\u53ef\u4ee5\u5728\u8fd9\u91cc\u8fd0\u884c\u4efb\u4f55 PHP \u4ee3\u7801\u3001\u8c03\u7528 Eloquent \u6a21\u578b\u7b49\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php artisan tinker<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">1.3 \u5176\u4ed6\u6709\u7528\u7684 Artisan \u547d\u4ee4<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><code>php artisan make:seeder<\/code><\/strong>: \u521b\u5efa\u4e00\u4e2a Seeder \u7c7b\uff0c\u7528\u4e8e\u586b\u5145\u6570\u636e\u5e93\u3002<\/li>\n\n\n\n<li><strong><code>php artisan make:factory<\/code><\/strong>: \u521b\u5efa\u4e00\u4e2a Factory \u7c7b\uff0c\u7528\u4e8e\u751f\u6210\u6570\u636e\u5e93\u6a21\u578b\u7684\u5047\u6570\u636e\u3002<\/li>\n\n\n\n<li><strong><code>php artisan queue:work<\/code><\/strong>: \u542f\u52a8\u4e00\u4e2a\u961f\u5217\u5de5\u4f5c\u8fdb\u7a0b\uff0c\u5904\u7406\u540e\u53f0\u4efb\u52a1\u3002<\/li>\n\n\n\n<li><strong><code>php artisan make:middleware<\/code><\/strong>: \u521b\u5efa\u4e2d\u95f4\u4ef6\u3002<\/li>\n\n\n\n<li><strong><code>php artisan make:event<\/code><\/strong>: \u521b\u5efa\u4e8b\u4ef6\u7c7b\u3002<\/li>\n\n\n\n<li><strong><code>php artisan make:listener<\/code><\/strong>: \u521b\u5efa\u76d1\u542c\u5668\u7c7b\u3002<\/li>\n\n\n\n<li><strong><code>php artisan make:job<\/code><\/strong>: \u521b\u5efa\u4e00\u4e2a\u961f\u5217\u4efb\u52a1\u7c7b\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">2. \u81ea\u5b9a\u4e49 Artisan \u547d\u4ee4<\/h3>\n\n\n\n<p>\u9664\u4e86\u4f7f\u7528 Laravel \u63d0\u4f9b\u7684\u5185\u7f6e\u547d\u4ee4\u5916\uff0c\u4f60\u8fd8\u53ef\u4ee5\u6839\u636e\u4e1a\u52a1\u9700\u6c42\u521b\u5efa\u81ea\u5df1\u7684 Artisan \u547d\u4ee4\u3002\u4ee5\u4e0b\u662f\u5982\u4f55\u521b\u5efa\u548c\u4f7f\u7528\u81ea\u5b9a\u4e49\u547d\u4ee4\u7684\u6b65\u9aa4\uff1a<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">2.1 \u521b\u5efa\u81ea\u5b9a\u4e49\u547d\u4ee4<\/h4>\n\n\n\n<p>\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6765\u751f\u6210\u81ea\u5b9a\u4e49\u7684 Artisan \u547d\u4ee4\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php artisan make:command CustomCommand<\/code><\/pre>\n\n\n\n<p>\u8fd9\u4f1a\u5728 <code>app\/Console\/Commands<\/code> \u76ee\u5f55\u4e0b\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u547d\u4ee4\u7c7b\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">2.2 \u5b9a\u4e49\u547d\u4ee4\u7684\u540d\u79f0\u548c\u63cf\u8ff0<\/h4>\n\n\n\n<p>\u5728 <code>CustomCommand.php<\/code> \u6587\u4ef6\u4e2d\uff0c\u8bbe\u7f6e\u547d\u4ee4\u7684\u540d\u79f0\u3001\u63cf\u8ff0\u548c\u903b\u8f91\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u547d\u4ee4\u793a\u4f8b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>namespace App\\Console\\Commands;\n\nuse Illuminate\\Console\\Command;\n\nclass CustomCommand extends Command\n{\n    \/\/ \u547d\u4ee4\u540d\u79f0\n    protected $signature = 'custom:command';\n\n    \/\/ \u547d\u4ee4\u63cf\u8ff0\n    protected $description = 'This is a custom command example';\n\n    public function handle()\n    {\n        $this-&gt;info('Custom command executed successfully!');\n    }\n}<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">2.3 \u6ce8\u518c\u547d\u4ee4<\/h4>\n\n\n\n<p>\u5728 <code>app\/Console\/Kernel.php<\/code> \u6587\u4ef6\u4e2d\uff0c\u6ce8\u518c\u4f60\u81ea\u5b9a\u4e49\u7684\u547d\u4ee4\u3002\u5c06\u547d\u4ee4\u6dfb\u52a0\u5230 <code>$commands<\/code> \u6570\u7ec4\u4e2d\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>protected $commands = &#91;\n    \\App\\Console\\Commands\\CustomCommand::class,\n];<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">2.4 \u8fd0\u884c\u81ea\u5b9a\u4e49\u547d\u4ee4<\/h4>\n\n\n\n<p>\u73b0\u5728\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7 Artisan \u8fd0\u884c\u81ea\u5b9a\u4e49\u547d\u4ee4\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php artisan custom:command<\/code><\/pre>\n\n\n\n<p>\u8be5\u547d\u4ee4\u5c06\u4f1a\u8f93\u51fa\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Custom command executed successfully!<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">2.5 \u547d\u4ee4\u53c2\u6570\u548c\u9009\u9879<\/h4>\n\n\n\n<p>\u4f60\u53ef\u4ee5\u4e3a\u81ea\u5b9a\u4e49\u547d\u4ee4\u5b9a\u4e49\u53c2\u6570\u548c\u9009\u9879\u3002\u4ee5\u4e0b\u662f\u5982\u4f55\u5b9a\u4e49\u53c2\u6570\u548c\u9009\u9879\u7684\u793a\u4f8b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>protected $signature = 'custom:command {name} {--greeting=Hello}';<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>{name}<\/code>: \u53c2\u6570\uff0c\u547d\u4ee4\u6267\u884c\u65f6\u5fc5\u987b\u4f20\u5165\u3002<\/li>\n\n\n\n<li><code>{--greeting=Hello}<\/code>: \u9009\u9879\uff0c\u53ef\u4ee5\u9009\u62e9\u4f20\u5165\u4e00\u4e2a\u503c\uff08\u9ed8\u8ba4\u4e3a <code>Hello<\/code>\uff09\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u5728 <code>handle()<\/code> \u65b9\u6cd5\u4e2d\uff0c\u4f60\u53ef\u4ee5\u8bbf\u95ee\u8fd9\u4e9b\u53c2\u6570\u548c\u9009\u9879\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>public function handle()\n{\n    $name = $this-&gt;argument('name');\n    $greeting = $this-&gt;option('greeting');\n\n    $this-&gt;info(\"{$greeting}, {$name}!\");\n}<\/code><\/pre>\n\n\n\n<p>\u73b0\u5728\u6267\u884c\u547d\u4ee4\u65f6\uff0c\u53ef\u4ee5\u4f20\u5165\u53c2\u6570\u548c\u9009\u9879\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php artisan custom:command John --greeting=Hi<\/code><\/pre>\n\n\n\n<p>\u8f93\u51fa\u5c06\u662f\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Hi, John!<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">3. Artisan \u547d\u4ee4\u7684\u9ad8\u7ea7\u7528\u6cd5<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">3.1 \u8c03\u5ea6\u547d\u4ee4<\/h4>\n\n\n\n<p>Laravel \u63d0\u4f9b\u4e86\u4e00\u4e2a\u5f3a\u5927\u7684\u4efb\u52a1\u8c03\u5ea6\u7cfb\u7edf\uff0c\u5141\u8bb8\u4f60\u901a\u8fc7 Artisan \u547d\u4ee4\u5b9a\u65f6\u8fd0\u884c\u4efb\u52a1\u3002\u4f60\u53ef\u4ee5\u5728 <code>app\/Console\/Kernel.php<\/code> \u4e2d\u7684 <code>schedule<\/code> \u65b9\u6cd5\u4e2d\u5b9a\u4e49\u8c03\u5ea6\u4efb\u52a1\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>protected function schedule(Schedule $schedule)\n{\n    $schedule-&gt;command('custom:command')-&gt;daily();\n}<\/code><\/pre>\n\n\n\n<p>\u8be5\u547d\u4ee4\u5c06\u6bcf\u5929\u6267\u884c\u4e00\u6b21\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">3.2 \u4f7f\u7528\u81ea\u5b9a\u4e49\u547d\u4ee4\u6267\u884c\u961f\u5217\u4efb\u52a1<\/h4>\n\n\n\n<p>\u5728\u961f\u5217\u4efb\u52a1\u4e2d\uff0c\u4f60\u53ef\u4ee5\u8c03\u7528 Artisan \u547d\u4ee4\u6765\u5904\u7406\u540e\u53f0\u4efb\u52a1\u3002\u4f8b\u5982\uff0c\u4f7f\u7528 <code>php artisan queue:work<\/code> \u547d\u4ee4\u6765\u542f\u52a8\u961f\u5217\u8fdb\u7a0b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Laravel \u7684 Artisan \u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u5b83\u5e2e\u52a9\u5f00\u53d1\u8005\u5feb\u901f\u6267\u884c\u5e38\u89c1\u7684\u5f00\u53d1\u4efb\u52a1\uff0c\u5982\u6570\u636e\u5e93\u8fc1\u79fb\u3001 [&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-1021","post","type-post","status-publish","format-standard","hentry","category-laravel"],"_links":{"self":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts\/1021","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=1021"}],"version-history":[{"count":1,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts\/1021\/revisions"}],"predecessor-version":[{"id":1022,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts\/1021\/revisions\/1022"}],"wp:attachment":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/media?parent=1021"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/categories?post=1021"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/tags?post=1021"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}