{"id":24449,"date":"2024-11-21T15:00:40","date_gmt":"2024-11-21T07:00:40","guid":{"rendered":"https:\/\/fwq.ai\/blog\/24449\/"},"modified":"2024-11-21T15:00:40","modified_gmt":"2024-11-21T07:00:40","slug":"laravel%e4%b8%ad%e7%9a%84%e4%ba%8b%e4%bb%b6%e5%b9%bf%e6%92%ad%ef%bc%9a%e5%ae%9e%e7%8e%b0%e5%ae%9e%e6%97%b6%e9%80%9a%e7%9f%a5%e5%92%8c%e7%8a%b6%e6%80%81%e6%9b%b4%e6%96%b0","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/24449\/","title":{"rendered":"Laravel\u4e2d\u7684\u4e8b\u4ef6\u5e7f\u64ad\uff1a\u5b9e\u73b0\u5b9e\u65f6\u901a\u77e5\u548c\u72b6\u6001\u66f4\u65b0"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/164\/169294601012773.jpg\" class=\"aligncenter\" title=\"Laravel\u4e2d\u7684\u4e8b\u4ef6\u5e7f\u64ad\uff1a\u5b9e\u73b0\u5b9e\u65f6\u901a\u77e5\u548c\u72b6\u6001\u66f4\u65b0\u63d2\u56fe\" alt=\"Laravel\u4e2d\u7684\u4e8b\u4ef6\u5e7f\u64ad\uff1a\u5b9e\u73b0\u5b9e\u65f6\u901a\u77e5\u548c\u72b6\u6001\u66f4\u65b0\u63d2\u56fe\" \/><\/p>\n<p>Laravel\u4e2d\u7684\u4e8b\u4ef6\u5e7f\u64ad\uff1a\u5b9e\u73b0\u5b9e\u65f6\u901a\u77e5\u548c\u72b6\u6001\u66f4\u65b0<\/p>\n<p>\u5f15\u8a00\uff1a<br \/>\u5728\u73b0\u4ee3\u7684Web\u5e94\u7528\u7a0b\u5e8f\u5f00\u53d1\u4e2d\uff0c\u5b9e\u65f6\u901a\u77e5\u548c\u72b6\u6001\u66f4\u65b0\u6210\u4e3a\u8d8a\u6765\u8d8a\u91cd\u8981\u7684\u9700\u6c42\u3002\u60f3\u8c61\u4e00\u4e0b\uff0c\u5728\u4e00\u4e2a\u535a\u5ba2\u5e94\u7528\u7a0b\u5e8f\u4e2d\uff0c\u5f53\u6709\u65b0\u7684\u8bc4\u8bba\u6216\u8005\u70b9\u8d5e\u65f6\uff0c\u6211\u4eec\u5e0c\u671b\u5373\u65f6\u5730\u901a\u77e5\u5230\u7528\u6237\uff0c\u4ee5\u63d0\u4f9b\u66f4\u597d\u7684\u7528\u6237\u4f53\u9a8c\u3002Laravel\u6846\u67b6\u63d0\u4f9b\u4e86\u4e00\u4e2a\u975e\u5e38\u5f3a\u5927\u7684\u529f\u80fd\u6765\u5904\u7406\u8fd9\u4e2a\u9700\u6c42\uff0c\u90a3\u5c31\u662f\u4e8b\u4ef6\u5e7f\u64ad\u3002\u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u5c06\u5b66\u4e60\u5982\u4f55\u4f7f\u7528Laravel\u7684\u4e8b\u4ef6\u5e7f\u64ad\u529f\u80fd\u6765\u5b9e\u73b0\u5b9e\u65f6\u901a\u77e5\u548c\u72b6\u6001\u66f4\u65b0\u3002<\/p>\n<ol>\n<li>\u521b\u5efa\u4e8b\u4ef6\u548c\u76d1\u542c\u5668<br \/>\u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u521b\u5efa\u4e00\u4e2a\u4e8b\u4ef6\u548c\u4e00\u4e2a\u5bf9\u5e94\u7684\u76d1\u542c\u5668\u3002\u4e8b\u4ef6\u5b9e\u9645\u4e0a\u662f\u4e00\u4e2a\u7b80\u5355\u7684PHP\u7c7b\uff0c\u7528\u6765\u8868\u793a\u4e00\u4e2a\u7279\u5b9a\u7684\u4e8b\u4ef6\u53d1\u751f\u3002\u76d1\u542c\u5668\u5219\u7528\u4e8e\u5904\u7406\u8fd9\u4e2a\u4e8b\u4ef6\uff0c\u5e76\u6267\u884c\u76f8\u5e94\u7684\u64cd\u4f5c\u3002<\/li>\n<\/ol>\n<p>\u4e0b\u9762\u662f\u4e00\u4e2a\u521b\u5efa\u8bc4\u8bba\u4e8b\u4ef6\u548c\u5bf9\u5e94\u76d1\u542c\u5668\u7684\u793a\u4f8b\uff1a<\/p>\n<pre>&lt;?php namespace AppEvents;\n\nuse IlluminateContractsBroadcastingShouldBroadcast;\nuse IlluminateFoundationEventsDispatchable;\nuse IlluminateQueueSerializesModels;\n\nclass NewComment implements ShouldBroadcast\n{\n    use Dispatchable, SerializesModels;\n\n    public $comment;\n\n    \/**\n     * Create a new event instance.\n     *\n     * @param $comment\n     * @return void\n     *\/\n    public function __construct($comment)\n    {\n        $this-&gt;comment = $comment;\n    }\n\n    \/**\n     * Get the channels the event should broadcast on.\n     *\n     * @return IlluminateBroadcastingChannel|array\n     *\/\n    public function broadcastOn()\n    {\n        return new Channel('comments');\n    }\n}\n<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0cNewComment\u4e8b\u4ef6\u5b9e\u73b0\u4e86ShouldBroadcast\u63a5\u53e3\uff0c\u5b83\u6307\u793aLaravel\u6846\u67b6\u8be5\u4e8b\u4ef6\u9700\u8981\u88ab\u5e7f\u64ad\u3002\u4e8b\u4ef6\u7684\u6784\u9020\u51fd\u6570\u63a5\u53d7\u4e00\u4e2a\u8bc4\u8bba\u5bf9\u8c61\u4f5c\u4e3a\u53c2\u6570\uff0c\u5e76\u5c06\u5176\u8d4b\u503c\u7ed9$comment\u5c5e\u6027\u3002broadcastOn\u65b9\u6cd5\u8fd4\u56de\u4e00\u4e2aBroadcasting\u9891\u9053\u5b9e\u4f8b\uff0c\u5373\u8868\u793a\u8be5\u4e8b\u4ef6\u9700\u8981\u5728comments\u9891\u9053\u4e2d\u8fdb\u884c\u5e7f\u64ad\u3002<\/p>\n<p>\u4e0b\u9762\u662f\u4e00\u4e2a\u5904\u7406\u8bc4\u8bba\u4e8b\u4ef6\u7684\u76d1\u542c\u5668\u793a\u4f8b\uff1a<\/p>\n<pre>&lt;?php namespace AppListeners;\n\nuse AppEventsNewComment;\nuse IlluminateContractsQueueShouldQueue;\nuse IlluminateQueueInteractsWithQueue;\n\nclass SendCommentNotification implements ShouldQueue\n{\n    use InteractsWithQueue;\n\n    \/**\n     * Handle the event.\n     *\n     * @param  NewComment  $event\n     * @return void\n     *\/\n    public function handle(NewComment $event)\n    {\n        \/\/ \u5904\u7406\u53d1\u9001\u901a\u77e5\u7684\u903b\u8f91\n        \/\/ \u4f8b\u5982\uff0c\u53d1\u9001\u90ae\u4ef6\u901a\u77e5\u7528\u6237\n    }\n}<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0cSendCommentNotification\u76d1\u542c\u5668\u5b9e\u73b0\u4e86ShouldQueue\u63a5\u53e3\uff0c\u8868\u793a\u8be5\u76d1\u542c\u5668\u53ef\u4ee5\u88ab\u653e\u5165\u961f\u5217\u4e2d\u5f02\u6b65\u6267\u884c\u3002\u5728handle\u65b9\u6cd5\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u7f16\u5199\u5904\u7406\u4e8b\u4ef6\u7684\u903b\u8f91\uff0c\u4f8b\u5982\u53d1\u9001\u90ae\u4ef6\u901a\u77e5\u7528\u6237\u7b49\u7b49\u3002<\/p>\n<ol>\n<li>\u6ce8\u518c\u4e8b\u4ef6\u548c\u76d1\u542c\u5668<br \/>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u9700\u8981\u5c06\u4e8b\u4ef6\u548c\u76d1\u542c\u5668\u8fdb\u884c\u6ce8\u518c\uff0c\u4ee5\u4fbfLaravel\u6846\u67b6\u80fd\u591f\u6b63\u786e\u5730\u89e6\u53d1\u4e8b\u4ef6\u5e76\u8c03\u7528\u76f8\u5e94\u7684\u76d1\u542c\u5668\u3002<\/li>\n<\/ol>\n<p>\u6253\u5f00app\/Providers\/EventServiceProvider.php\u6587\u4ef6\uff0c\u5728$listen\u6570\u7ec4\u4e2d\u6dfb\u52a0\u5982\u4e0b\u4ee3\u7801\uff1a<\/p>\n<pre>protected $listen = [\n    'AppEventsNewComment' =&amp;gt; [\n        'AppListenersSendCommentNotification',\n    ],\n];<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u4e0a\u8ff0\u4ee3\u7801\u8868\u793a\u5f53NewComment\u4e8b\u4ef6\u53d1\u751f\u65f6\uff0c\u5c06\u4f1a\u8c03\u7528SendCommentNotification\u76d1\u542c\u5668\u8fdb\u884c\u5904\u7406\u3002<\/p>\n<ol>\n<li>\u914d\u7f6e\u4e8b\u4ef6\u5e7f\u64ad<br \/>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u9700\u8981\u914d\u7f6e\u4e8b\u4ef6\u5e7f\u64ad\u7684\u9a71\u52a8\u7a0b\u5e8f\u3002Laravel\u6846\u67b6\u9ed8\u8ba4\u4f7f\u7528redis\u4f5c\u4e3a\u4e8b\u4ef6\u5e7f\u64ad\u7684\u9a71\u52a8\u7a0b\u5e8f\u3002\u6253\u5f00.env\u6587\u4ef6\uff0c\u786e\u4fdd\u4ee5\u4e0b\u914d\u7f6e\u6b63\u786e\u8bbe\u7f6e\uff1a<\/li>\n<\/ol>\n<pre>BROADCAST_DRIVER=redis<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<ol>\n<li>\u4f7f\u7528\u4e8b\u4ef6\u5e7f\u64ad<br \/>\u73b0\u5728\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u4e8b\u4ef6\u5e7f\u64ad\u6765\u5b9e\u73b0\u5b9e\u65f6\u901a\u77e5\u548c\u72b6\u6001\u66f4\u65b0\u4e86\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u4f8b\u5b50\u6765\u8bf4\u660e\u5982\u4f55\u5728\u63a7\u5236\u5668\u4e2d\u89e6\u53d1\u4e8b\u4ef6\uff1a<\/li>\n<\/ol>\n<pre>&lt;?php namespace AppHttpControllers;\n\nuse AppEventsNewComment;\nuse AppModelsComment;\nuse IlluminateHttpRequest;\n\nclass CommentController extends Controller\n{\n    public function create(Request $request)\n    {\n        $comment = Comment::create([\n            'content' =&gt; $request-&amp;gt;input('content'),\n            'user_id' =&amp;gt; auth()-&amp;gt;user()-&amp;gt;id,\n            \/\/ \u5176\u4ed6\u5c5e\u6027\n        ]);\n\n        event(new NewComment($comment));\n\n        \/\/ \u4f60\u7684\u5176\u4ed6\u4ee3\u7801\u903b\u8f91\n\n        return response()-&amp;gt;json(['message' =&amp;gt; 'Comment created successfully']);\n    }\n}<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u521b\u5efa\u4e00\u4e2a\u8bc4\u8bba\u5bf9\u8c61\uff0c\u5e76\u901a\u8fc7event\u8f85\u52a9\u51fd\u6570\u6765\u89e6\u53d1NewComment\u4e8b\u4ef6\uff0c\u5e76\u4f20\u9012\u8bc4\u8bba\u5bf9\u8c61\u4f5c\u4e3a\u53c2\u6570\u3002\u8fd9\u6837\uff0c\u4e00\u65e6\u8bc4\u8bba\u521b\u5efa\u6210\u529f\uff0cLaravel\u6846\u67b6\u5c31\u4f1a\u81ea\u52a8\u5c06\u8be5\u4e8b\u4ef6\u5e7f\u64ad\u5230\u6307\u5b9a\u7684\u9891\u9053\uff08\u5728\u6211\u4eec\u7684\u4f8b\u5b50\u4e2d\u662fcomments\u9891\u9053\uff09\u3002<\/p>\n<ol>\n<li>\u524d\u7aef\u5b9e\u65f6\u66f4\u65b0<br \/>\u6700\u540e\uff0c\u6211\u4eec\u9700\u8981\u5728\u524d\u7aef\u9875\u9762\u4e2d\u5b9e\u65f6\u76d1\u542c\u4e8b\u4ef6\u5e7f\u64ad\uff0c\u5e76\u8fdb\u884c\u76f8\u5e94\u7684\u64cd\u4f5c\u3002Laravel\u6846\u67b6\u63d0\u4f9b\u4e86\u4e00\u4e2a\u540d\u4e3aEcho\u7684JavaScript\u5e93\uff0c\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u5b9e\u73b0\u8fd9\u4e2a\u529f\u80fd\u3002\u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u5728\u524d\u7aef\u9875\u9762\u4e2d\u5f15\u5165\u76f8\u5173\u7684JS\u6587\u4ef6\uff1a<\/li>\n<\/ol>\n<pre>&lt;script src=\"%7B%7Basset('js\/app.js')%7D%7D\"&gt;&lt;\/script&gt;<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u7136\u540e\uff0c\u5728JavaScript\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u6309\u7167\u4ee5\u4e0b\u65b9\u5f0f\u76d1\u542c\u4e8b\u4ef6\u5e7f\u64ad\uff1a<\/p>\n<pre>Echo.channel('comments')\n    .listen('NewComment', (event) =&amp;gt; {\n        \/\/ \u5904\u7406\u63a5\u6536\u5230\u7684\u4e8b\u4ef6\n        \/\/ \u4f8b\u5982\uff0c\u663e\u793a\u65b0\u8bc4\u8bba\u7684\u5185\u5bb9\n    });<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u901a\u8fc7Echo.channel\u65b9\u6cd5\u6765\u76d1\u542c\u6307\u5b9a\u7684\u9891\u9053\uff08\u5728\u6211\u4eec\u7684\u4f8b\u5b50\u4e2d\u662fcomments\u9891\u9053\uff09\u3002\u8c03\u7528listen\u65b9\u6cd5\u65f6\uff0c\u6211\u4eec\u9700\u8981\u6307\u5b9a\u8981\u76d1\u542c\u7684\u4e8b\u4ef6\u7c7b\u578b\uff0c\u8fd9\u91cc\u662fNewComment\u3002<\/p>\n<p>\u5728listen\u65b9\u6cd5\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u7f16\u5199\u5904\u7406\u63a5\u6536\u5230\u4e8b\u4ef6\u7684\u903b\u8f91\uff0c\u4f8b\u5982\u5728\u9875\u9762\u663e\u793a\u65b0\u8bc4\u8bba\u7684\u5185\u5bb9\u3002<\/p>\n<p>\u7ed3\u8bba\uff1a<br \/>\u901a\u8fc7\u4f7f\u7528Laravel\u7684\u4e8b\u4ef6\u5e7f\u64ad\u529f\u80fd\uff0c\u6211\u4eec\u53ef\u4ee5\u5f88\u65b9\u4fbf\u5730\u5b9e\u73b0\u5b9e\u65f6\u901a\u77e5\u548c\u72b6\u6001\u66f4\u65b0\u7684\u9700\u6c42\u3002\u53ea\u9700\u8981\u521b\u5efa\u76f8\u5e94\u7684\u4e8b\u4ef6\u548c\u76d1\u542c\u5668\uff0c\u7136\u540e\u5728\u63a7\u5236\u5668\u4e2d\u89e6\u53d1\u4e8b\u4ef6\u5373\u53ef\u3002\u901a\u8fc7\u914d\u7f6e\u4e8b\u4ef6\u5e7f\u64ad\u548c\u5728\u524d\u7aef\u9875\u9762\u4e2d\u76d1\u542c\u4e8b\u4ef6\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u5728\u5e94\u7528\u7a0b\u5e8f\u4e2d\u5b9e\u73b0\u5b9e\u65f6\u901a\u77e5\u548c\u72b6\u6001\u66f4\u65b0\u7684\u529f\u80fd\u4e86\u3002\u5e0c\u671b\u672c\u6587\u5bf9\u4f60\u6709\u6240\u5e2e\u52a9\uff01<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662fLaravel\u4e2d\u7684\u4e8b\u4ef6\u5e7f\u64ad\uff1a\u5b9e\u73b0\u5b9e\u65f6\u901a\u77e5\u548c\u72b6\u6001\u66f4\u65b0\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\u4e2d\u7684\u4e8b\u4ef6\u5e7f\u64ad\uff1a\u5b9e\u73b0\u5b9e\u65f6\u901a\u77e5\u548c\u72b6\u6001\u66f4\u65b0 \u5f15\u8a00\uff1a\u5728\u73b0\u4ee3\u7684Web\u5e94\u7528\u7a0b\u5e8f\u5f00\u53d1\u4e2d\uff0c\u5b9e\u65f6\u901a\u77e5\u548c\u72b6\u6001\u66f4\u65b0\u6210\u4e3a\u8d8a\u6765\u8d8a\u91cd\u8981\u7684\u9700\u6c42\u3002\u60f3\u8c61\u4e00\u4e0b\uff0c\u5728\u4e00\u4e2a\u535a\u5ba2\u5e94\u7528\u7a0b\u5e8f\u4e2d\uff0c\u5f53\u6709\u65b0\u7684\u8bc4\u8bba\u6216\u8005\u70b9\u8d5e\u65f6\uff0c\u6211\u4eec\u5e0c\u671b\u5373\u65f6\u5730\u901a\u77e5\u5230\u7528\u6237\uff0c\u4ee5\u63d0\u4f9b\u66f4\u597d\u7684\u7528\u6237\u4f53\u9a8c\u3002Laravel\u6846\u67b6\u63d0\u4f9b\u4e86\u4e00\u4e2a\u975e\u5e38\u5f3a\u5927\u7684\u529f\u80fd\u6765\u5904\u7406\u8fd9\u4e2a\u9700\u6c42\uff0c\u90a3\u5c31\u662f\u4e8b\u4ef6\u5e7f\u64ad\u3002\u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u5c06\u5b66\u4e60\u5982\u4f55\u4f7f\u7528Laravel\u7684\u4e8b\u4ef6\u5e7f\u64ad\u529f\u80fd\u6765\u5b9e\u73b0\u5b9e\u65f6\u901a\u77e5\u548c\u72b6\u6001\u66f4\u65b0\u3002 \u521b\u5efa\u4e8b\u4ef6\u548c\u76d1\u542c\u5668\u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u521b\u5efa\u4e00\u4e2a\u4e8b\u4ef6\u548c\u4e00\u4e2a\u5bf9\u5e94\u7684\u76d1\u542c\u5668\u3002\u4e8b\u4ef6\u5b9e\u9645\u4e0a\u662f\u4e00\u4e2a\u7b80\u5355\u7684PHP\u7c7b\uff0c\u7528\u6765\u8868\u793a\u4e00\u4e2a\u7279\u5b9a\u7684\u4e8b\u4ef6\u53d1\u751f\u3002\u76d1\u542c\u5668\u5219\u7528\u4e8e\u5904\u7406\u8fd9\u4e2a\u4e8b\u4ef6\uff0c\u5e76\u6267\u884c\u76f8\u5e94\u7684\u64cd\u4f5c\u3002 \u4e0b\u9762\u662f\u4e00\u4e2a\u521b\u5efa\u8bc4\u8bba\u4e8b\u4ef6\u548c\u5bf9\u5e94\u76d1\u542c\u5668\u7684\u793a\u4f8b\uff1a &lt;?php namespace AppEvents; use IlluminateContractsBroadcastingShouldBroadcast; use IlluminateFoundationEventsDispatchable; use IlluminateQueueSerializesModels; class NewComment implements ShouldBroadcast { use Dispatchable, SerializesModels; public $comment; \/** * Create a new event instance. * * @param $comment * @return void *\/ public function __construct($comment) { $this-&gt;comment = $comment; } \/** * Get the channels the event should broadcast [&hellip;]<\/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-24449","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/24449","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=24449"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/24449\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=24449"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=24449"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=24449"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}