{"id":24538,"date":"2024-11-21T12:01:42","date_gmt":"2024-11-21T04:01:42","guid":{"rendered":"https:\/\/fwq.ai\/blog\/24538\/"},"modified":"2024-11-21T12:01:42","modified_gmt":"2024-11-21T04:01:42","slug":"thinkphp6%e6%9e%b6%e6%9e%84%e8%ae%be%e8%ae%a1%e4%b8%8e%e6%8b%93%e5%b1%95%ef%bc%9a%e6%9e%84%e5%bb%ba%e5%8f%af%e6%89%a9%e5%b1%95%e7%9a%84%e5%ba%94%e7%94%a8","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/24538\/","title":{"rendered":"ThinkPHP6\u67b6\u6784\u8bbe\u8ba1\u4e0e\u62d3\u5c55\uff1a\u6784\u5efa\u53ef\u6269\u5c55\u7684\u5e94\u7528"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/465\/014\/169304097269732.jpg\" class=\"aligncenter\" title=\"ThinkPHP6\u67b6\u6784\u8bbe\u8ba1\u4e0e\u62d3\u5c55\uff1a\u6784\u5efa\u53ef\u6269\u5c55\u7684\u5e94\u7528\u63d2\u56fe\" alt=\"ThinkPHP6\u67b6\u6784\u8bbe\u8ba1\u4e0e\u62d3\u5c55\uff1a\u6784\u5efa\u53ef\u6269\u5c55\u7684\u5e94\u7528\u63d2\u56fe\" \/><\/p>\n<p>ThinkPHP6\u67b6\u6784\u8bbe\u8ba1\u4e0e\u62d3\u5c55\uff1a\u6784\u5efa\u53ef\u6269\u5c55\u7684\u5e94\u7528<\/p>\n<p>\u5f15\u8a00\uff1a<br \/>\u968f\u7740\u4e92\u8054\u7f51\u7684\u5feb\u901f\u53d1\u5c55\uff0c\u4e1a\u52a1\u7684\u590d\u6742\u6027\u548c\u89c4\u6a21\u4e0d\u65ad\u589e\u52a0\uff0c\u5bf9\u4e8e\u4e00\u4e2a\u6846\u67b6\u6765\u8bf4\uff0c\u53ef\u6269\u5c55\u6027\u548c\u6027\u80fd\u7684\u8981\u6c42\u4e5f\u8d8a\u6765\u8d8a\u9ad8\u3002ThinkPHP6\u4f5c\u4e3a\u4e00\u6b3e\u6d41\u884c\u7684PHP\u6846\u67b6\uff0c\u4ee5\u5176\u7b80\u6d01\u3001\u9ad8\u6548\u548c\u7075\u6d3b\u7684\u7279\u70b9\u53d7\u5230\u4e86\u5e7f\u5927\u5f00\u53d1\u8005\u7684\u559c\u7231\u3002\u672c\u6587\u5c06\u4ecb\u7ecdThinkPHP6\u67b6\u6784\u8bbe\u8ba1\u7684\u6838\u5fc3\u7406\u5ff5\u548c\u62d3\u5c55\u65b9\u6cd5\uff0c\u5e76\u901a\u8fc7\u4ee3\u7801\u793a\u4f8b\u6f14\u793a\u5982\u4f55\u6784\u5efa\u53ef\u6269\u5c55\u7684\u5e94\u7528\u3002<\/p>\n<p>\u4e00\u3001ThinkPHP6\u67b6\u6784\u8bbe\u8ba1\u7684\u6838\u5fc3\u7406\u5ff5<\/p>\n<ol>\n<li>\u9762\u5411\u5bf9\u8c61\u7684MVC\u67b6\u6784<br \/>ThinkPHP6\u91c7\u7528\u4e86\u7ecf\u5178\u7684MVC\u67b6\u6784\u6a21\u5f0f\uff0c\u5c06\u5e94\u7528\u5206\u4e3a\u6a21\u578b\uff08Model\uff09\u3001\u89c6\u56fe\uff08View\uff09\u548c\u63a7\u5236\u5668\uff08Controller\uff09\u4e09\u5c42\u3002\u6a21\u578b\u5c42\u8d1f\u8d23\u6570\u636e\u7684\u64cd\u4f5c\u548c\u903b\u8f91\uff0c\u89c6\u56fe\u5c42\u8d1f\u8d23\u5c55\u793a\u6570\u636e\uff0c\u63a7\u5236\u5668\u5c42\u8d1f\u8d23\u5904\u7406\u7528\u6237\u7684\u8bf7\u6c42\u548c\u8c03\u5ea6\u3002<\/li>\n<li>\u8def\u7531\u5206\u53d1\u673a\u5236<br \/>ThinkPHP6\u5f15\u5165\u4e86\u65b0\u7684\u8def\u7531\u5206\u53d1\u673a\u5236\uff0c\u53ef\u4ee5\u6839\u636eURL\u5730\u5740\u81ea\u52a8\u5339\u914d\u5bf9\u5e94\u7684\u63a7\u5236\u5668\u548c\u65b9\u6cd5\u3002\u901a\u8fc7\u7075\u6d3b\u914d\u7f6e\uff0c\u53ef\u4ee5\u5b9e\u73b0\u81ea\u5b9a\u4e49\u8def\u7531\u89c4\u5219\u548cURL\u7f8e\u5316\u3002<\/li>\n<li>\u4f9d\u8d56\u6ce8\u5165\u5bb9\u5668<br \/>ThinkPHP6\u4f7f\u7528\u4e86\u4f9d\u8d56\u6ce8\u5165\u5bb9\u5668\uff0c\u5b9e\u73b0\u4e86\u5bf9\u8c61\u7684\u81ea\u52a8\u521b\u5efa\u548c\u4f9d\u8d56\u7684\u81ea\u52a8\u6ce8\u5165\u3002\u901a\u8fc7\u5bb9\u5668\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u7ba1\u7406\u548c\u6ce8\u5165\u5404\u79cd\u670d\u52a1\u548c\u7ec4\u4ef6\uff0c\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u6d4b\u8bd5\u6027\u548c\u53ef\u7ef4\u62a4\u6027\u3002<\/li>\n<\/ol>\n<p>\u4e8c\u3001\u6784\u5efa\u53ef\u6269\u5c55\u7684\u5e94\u7528<\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<ol>\n<li>\u6269\u5c55\u65b9\u5f0f<\/li>\n<\/ol>\n<p>ThinkPHP6\u63d0\u4f9b\u4e86\u591a\u79cd\u6269\u5c55\u65b9\u5f0f\uff0c\u5305\u62ec\u7ec4\u4ef6\u6269\u5c55\u3001\u4e2d\u95f4\u4ef6\u6269\u5c55\u548c\u547d\u4ee4\u884c\u6269\u5c55\u3002\u4e0b\u9762\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u4e9b\u6269\u5c55\u65b9\u5f0f\u7684\u4f7f\u7528\u3002<\/p>\n<ol>\n<li>\u7ec4\u4ef6\u6269\u5c55<\/li>\n<\/ol>\n<p>\u7ec4\u4ef6\u662fThinkPHP6\u4e2d\u6700\u5e38\u7528\u7684\u6269\u5c55\u65b9\u5f0f\uff0c\u53ef\u4ee5\u901a\u8fc7composer\u5b89\u88c5\u5e76\u5728\u5e94\u7528\u7684config\u76ee\u5f55\u4e0b\u8fdb\u884c\u914d\u7f6e\u3002\u4ee5Redis\u7ec4\u4ef6\u4e3a\u4f8b\uff0c\u9996\u5148\u9700\u8981\u5728composer.json\u6587\u4ef6\u4e2d\u6dfb\u52a0\u4f9d\u8d56\uff1a<\/p>\n<pre>\"require\": {\n    \"php\": \"&amp;gt;=7.2.0\",\n    \"topthink\/framework\": \"6.*\",\n    \"predis\/predis\": \"^1.1\"\n}<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u7136\u540e\u6267\u884ccomposer update\u547d\u4ee4\u5b89\u88c5\u4f9d\u8d56\uff0c\u63a5\u7740\u5728config\u76ee\u5f55\u4e0b\u7684app.php\u6587\u4ef6\u4e2d\u8fdb\u884c\u914d\u7f6e\uff1a<\/p>\n<pre>'cache' =&amp;gt; [\n    'type'       =&amp;gt; 'redis',\n    'host'       =&amp;gt; '127.0.0.1',\n    'port'       =&amp;gt; 6379,\n    'password'   =&amp;gt; '',\n    'select'     =&amp;gt; 0,\n    'timeout'    =&amp;gt; 0,\n    'expire'     =&amp;gt; 0,\n    'persistent' =&amp;gt; false,\n    'prefix'     =&amp;gt; '',\n    'tag_prefix' =&amp;gt; 'tag:',\n    'serialize'  =&amp;gt; []\n]<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u914d\u7f6e\u5b8c\u6210\u540e\uff0c\u5c31\u53ef\u4ee5\u5728\u5e94\u7528\u4e2d\u4f7f\u7528Redis\u7ec4\u4ef6\u4e86\uff1a<\/p>\n<pre>use thinkacadeCache;\n\n\/\/ \u8bbe\u7f6e\u7f13\u5b58\nCache::store('redis')-&amp;gt;set('name', 'ThinkPHP');\n\n\/\/ \u83b7\u53d6\u7f13\u5b58\n$name = Cache::store('redis')-&amp;gt;get('name');<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<ol>\n<li>\u4e2d\u95f4\u4ef6\u6269\u5c55<\/li>\n<\/ol>\n<p>\u4e2d\u95f4\u4ef6\u662fThinkPHP6\u4e2d\u4e00\u79cd\u975e\u5e38\u91cd\u8981\u7684\u6269\u5c55\u65b9\u5f0f\uff0c\u53ef\u4ee5\u5b9e\u73b0\u5bf9HTTP\u8bf7\u6c42\u7684\u5168\u5c40\u5904\u7406\u3002\u521b\u5efa\u4e00\u4e2a\u4e2d\u95f4\u4ef6\uff0c\u9700\u8981\u7ee7\u627fthinkMiddleware\u7c7b\uff0c\u5e76\u5b9e\u73b0handle\u65b9\u6cd5\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u793a\u4f8b\uff1a<\/p>\n<pre>namespace appmiddleware;\n\nuse thinkRequest;\nuse thinkResponse;\n\nclass CheckLogin\n{\n    public function handle(Request $request, Closure $next)\n    {\n        \/\/ \u68c0\u67e5\u7528\u6237\u662f\u5426\u767b\u5f55\n\n        if (!session('user_id')) {\n            return Response::create('\u8bf7\u5148\u767b\u5f55', 'html')-&amp;gt;code(401);\n        }\n\n        return $next($request);\n    }\n}<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u7136\u540e\u5728\u5e94\u7528\u7684middleware.php\u6587\u4ef6\u4e2d\u6ce8\u518c\u4e2d\u95f4\u4ef6\uff0c\u5e76\u6307\u5b9a\u5e94\u7528\u7684\u5168\u5c40\u4e2d\u95f4\u4ef6\u548c\u8def\u7531\u4e2d\u95f4\u4ef6\uff1a<\/p>\n<pre>\/\/ \u6ce8\u518c\u4e2d\u95f4\u4ef6\nreturn [\n    \/\/ \u5168\u5c40\u4e2d\u95f4\u4ef6\n    ppmiddlewareCheckLogin::class,\n\n    \/\/ \u8def\u7531\u4e2d\u95f4\u4ef6\n    'auth' =&amp;gt; ppmiddlewareAuth::class,\n];<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u901a\u8fc7\u914d\u7f6e\u4e2d\u95f4\u4ef6\uff0c\u53ef\u4ee5\u5b9e\u73b0\u5bf9\u6240\u6709\u8bf7\u6c42\u6216\u7279\u5b9a\u8def\u7531\u7684\u7edf\u4e00\u5904\u7406\u3002<\/p>\n<ol>\n<li>\u547d\u4ee4\u884c\u6269\u5c55<\/li>\n<\/ol>\n<p>ThinkPHP6\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u751f\u6210\u4ee3\u7801\u3001\u6267\u884c\u811a\u672c\u7b49\u3002\u53ef\u4ee5\u901a\u8fc7\u7ee7\u627fthinkcommand\u7c7b\u6765\u521b\u5efa\u81ea\u5b9a\u4e49\u7684\u547d\u4ee4\uff0c\u5e76\u5728\u5e94\u7528\u7684console.php\u6587\u4ef6\u4e2d\u6ce8\u518c\u547d\u4ee4\uff1a<\/p>\n<pre>use thinkconsoleCommand;\nuse thinkconsoleInput;\nuse thinkconsoleOutput;\n\nclass MyCommand extends Command\n{\n    protected function configure()\n    {\n        $this-&amp;gt;setName('mycommand')-&amp;gt;setDescription('My Command');\n    }\n\n    protected function execute(Input $input, Output $output)\n    {\n        \/\/ \u6267\u884c\u547d\u4ee4\u903b\u8f91\n\n        $output-&amp;gt;writeln('Hello, world!');\n    }\n}<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u7136\u540e\u5728console.php\u6587\u4ef6\u4e2d\u6ce8\u518c\u547d\u4ee4\uff1a<\/p>\n<pre>\/\/ \u6ce8\u518c\u547d\u4ee4\nreturn [\n    'mycommand' =&amp;gt; ppcommandMyCommand::class,\n];<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u73b0\u5728\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165php think mycommand\u5373\u53ef\u6267\u884c\u81ea\u5b9a\u4e49\u7684\u547d\u4ee4\u3002<\/p>\n<p>\u7ed3\u8bba\uff1a<br \/>\u901a\u8fc7\u5bf9ThinkPHP6\u67b6\u6784\u8bbe\u8ba1\u7684\u6838\u5fc3\u7406\u5ff5\u548c\u62d3\u5c55\u65b9\u5f0f\u7684\u4ecb\u7ecd\uff0c\u6211\u4eec\u53ef\u4ee5\u770b\u51fa\uff0cThinkPHP6\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u6269\u5c55\u80fd\u529b\uff0c\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u8fdb\u884c\u7075\u6d3b\u7684\u62d3\u5c55\u548c\u5b9a\u5236\u3002\u5408\u7406\u5229\u7528ThinkPHP6\u7684\u6269\u5c55\u65b9\u5f0f\uff0c\u53ef\u4ee5\u66f4\u597d\u5730\u6784\u5efa\u53ef\u6269\u5c55\u7684\u5e94\u7528\uff0c\u63d0\u9ad8\u5f00\u53d1\u6548\u7387\u548c\u5e94\u7528\u6027\u80fd\u3002<\/p>\n<p>\u53c2\u8003\u8d44\u6599\uff1a<\/p>\n<ol>\n<li>ThinkPHP6\u5b98\u65b9\u6587\u6863 &#8211; https:\/\/www.kancloud.cn\/manual\/6_0\/content<\/li>\n<\/ol>\n<p>\u4ee5\u4e0a\u5c31\u662fThinkPHP6\u67b6\u6784\u8bbe\u8ba1\u4e0e\u62d3\u5c55\uff1a\u6784\u5efa\u53ef\u6269\u5c55\u7684\u5e94\u7528\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>ThinkPHP6\u67b6\u6784\u8bbe\u8ba1\u4e0e\u62d3\u5c55\uff1a\u6784\u5efa\u53ef\u6269\u5c55\u7684\u5e94\u7528 \u5f15\u8a00\uff1a\u968f\u7740\u4e92\u8054\u7f51\u7684\u5feb\u901f\u53d1\u5c55\uff0c\u4e1a\u52a1\u7684\u590d\u6742\u6027\u548c\u89c4\u6a21\u4e0d\u65ad\u589e\u52a0\uff0c\u5bf9\u4e8e\u4e00\u4e2a\u6846\u67b6\u6765\u8bf4\uff0c\u53ef\u6269\u5c55\u6027\u548c\u6027\u80fd\u7684\u8981\u6c42\u4e5f\u8d8a\u6765\u8d8a\u9ad8\u3002ThinkPHP6\u4f5c\u4e3a\u4e00\u6b3e\u6d41\u884c\u7684PHP\u6846\u67b6\uff0c\u4ee5\u5176\u7b80\u6d01\u3001\u9ad8\u6548\u548c\u7075\u6d3b\u7684\u7279\u70b9\u53d7\u5230\u4e86\u5e7f\u5927\u5f00\u53d1\u8005\u7684\u559c\u7231\u3002\u672c\u6587\u5c06\u4ecb\u7ecdThinkPHP6\u67b6\u6784\u8bbe\u8ba1\u7684\u6838\u5fc3\u7406\u5ff5\u548c\u62d3\u5c55\u65b9\u6cd5\uff0c\u5e76\u901a\u8fc7\u4ee3\u7801\u793a\u4f8b\u6f14\u793a\u5982\u4f55\u6784\u5efa\u53ef\u6269\u5c55\u7684\u5e94\u7528\u3002 \u4e00\u3001ThinkPHP6\u67b6\u6784\u8bbe\u8ba1\u7684\u6838\u5fc3\u7406\u5ff5 \u9762\u5411\u5bf9\u8c61\u7684MVC\u67b6\u6784ThinkPHP6\u91c7\u7528\u4e86\u7ecf\u5178\u7684MVC\u67b6\u6784\u6a21\u5f0f\uff0c\u5c06\u5e94\u7528\u5206\u4e3a\u6a21\u578b\uff08Model\uff09\u3001\u89c6\u56fe\uff08View\uff09\u548c\u63a7\u5236\u5668\uff08Controller\uff09\u4e09\u5c42\u3002\u6a21\u578b\u5c42\u8d1f\u8d23\u6570\u636e\u7684\u64cd\u4f5c\u548c\u903b\u8f91\uff0c\u89c6\u56fe\u5c42\u8d1f\u8d23\u5c55\u793a\u6570\u636e\uff0c\u63a7\u5236\u5668\u5c42\u8d1f\u8d23\u5904\u7406\u7528\u6237\u7684\u8bf7\u6c42\u548c\u8c03\u5ea6\u3002 \u8def\u7531\u5206\u53d1\u673a\u5236ThinkPHP6\u5f15\u5165\u4e86\u65b0\u7684\u8def\u7531\u5206\u53d1\u673a\u5236\uff0c\u53ef\u4ee5\u6839\u636eURL\u5730\u5740\u81ea\u52a8\u5339\u914d\u5bf9\u5e94\u7684\u63a7\u5236\u5668\u548c\u65b9\u6cd5\u3002\u901a\u8fc7\u7075\u6d3b\u914d\u7f6e\uff0c\u53ef\u4ee5\u5b9e\u73b0\u81ea\u5b9a\u4e49\u8def\u7531\u89c4\u5219\u548cURL\u7f8e\u5316\u3002 \u4f9d\u8d56\u6ce8\u5165\u5bb9\u5668ThinkPHP6\u4f7f\u7528\u4e86\u4f9d\u8d56\u6ce8\u5165\u5bb9\u5668\uff0c\u5b9e\u73b0\u4e86\u5bf9\u8c61\u7684\u81ea\u52a8\u521b\u5efa\u548c\u4f9d\u8d56\u7684\u81ea\u52a8\u6ce8\u5165\u3002\u901a\u8fc7\u5bb9\u5668\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u7ba1\u7406\u548c\u6ce8\u5165\u5404\u79cd\u670d\u52a1\u548c\u7ec4\u4ef6\uff0c\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u6d4b\u8bd5\u6027\u548c\u53ef\u7ef4\u62a4\u6027\u3002 \u4e8c\u3001\u6784\u5efa\u53ef\u6269\u5c55\u7684\u5e94\u7528 \u7acb\u5373\u5b66\u4e60\u201c\u201d\uff1b \u6269\u5c55\u65b9\u5f0f ThinkPHP6\u63d0\u4f9b\u4e86\u591a\u79cd\u6269\u5c55\u65b9\u5f0f\uff0c\u5305\u62ec\u7ec4\u4ef6\u6269\u5c55\u3001\u4e2d\u95f4\u4ef6\u6269\u5c55\u548c\u547d\u4ee4\u884c\u6269\u5c55\u3002\u4e0b\u9762\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u4e9b\u6269\u5c55\u65b9\u5f0f\u7684\u4f7f\u7528\u3002 \u7ec4\u4ef6\u6269\u5c55 \u7ec4\u4ef6\u662fThinkPHP6\u4e2d\u6700\u5e38\u7528\u7684\u6269\u5c55\u65b9\u5f0f\uff0c\u53ef\u4ee5\u901a\u8fc7composer\u5b89\u88c5\u5e76\u5728\u5e94\u7528\u7684config\u76ee\u5f55\u4e0b\u8fdb\u884c\u914d\u7f6e\u3002\u4ee5Redis\u7ec4\u4ef6\u4e3a\u4f8b\uff0c\u9996\u5148\u9700\u8981\u5728composer.json\u6587\u4ef6\u4e2d\u6dfb\u52a0\u4f9d\u8d56\uff1a &#8220;require&#8221;: { &#8220;php&#8221;: &#8220;&amp;gt;=7.2.0&#8221;, &#8220;topthink\/framework&#8221;: &#8220;6.*&#8221;, &#8220;predis\/predis&#8221;: &#8220;^1.1&#8243; } \u767b\u5f55\u540e\u590d\u5236 \u7136\u540e\u6267\u884ccomposer update\u547d\u4ee4\u5b89\u88c5\u4f9d\u8d56\uff0c\u63a5\u7740\u5728config\u76ee\u5f55\u4e0b\u7684app.php\u6587\u4ef6\u4e2d\u8fdb\u884c\u914d\u7f6e\uff1a &#8216;cache&#8217; =&amp;gt; [ &#8216;type&#8217; =&amp;gt; &#8216;redis&#8217;, &#8216;host&#8217; =&amp;gt; &#8216;127.0.0.1&#8217;, &#8216;port&#8217; =&amp;gt; 6379, &#8216;password&#8217; =&amp;gt; &#8221;, &#8216;select&#8217; =&amp;gt; 0, &#8216;timeout&#8217; =&amp;gt; 0, &#8216;expire&#8217; =&amp;gt; 0, &#8216;persistent&#8217; =&amp;gt; false, &#8216;prefix&#8217; =&amp;gt; &#8221;, &#8216;tag_prefix&#8217; [&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-24538","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/24538","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=24538"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/24538\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=24538"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=24538"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=24538"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}