{"id":22569,"date":"2024-11-21T13:35:26","date_gmt":"2024-11-21T05:35:26","guid":{"rendered":"https:\/\/fwq.ai\/blog\/22569\/"},"modified":"2024-11-21T13:35:26","modified_gmt":"2024-11-21T05:35:26","slug":"laravel%e7%99%bb%e5%bd%95%e9%94%99%e8%af%af%e6%8f%90%e7%a4%ba","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/22569\/","title":{"rendered":"laravel\u767b\u5f55\u9519\u8bef\u63d0\u793a"},"content":{"rendered":"<p>\u5728\u4f7f\u7528laravel\u6846\u67b6\u5f00\u53d1\u65f6\uff0c\u6211\u4eec\u53ef\u80fd\u4f1a\u9047\u5230\u5404\u79cd\u95ee\u9898\uff0c\u5176\u4e2d\u6700\u5e38\u89c1\u7684\u4e00\u4e2a\u95ee\u9898\u5c31\u662f\u7528\u6237\u767b\u5f55\u5931\u8d25\u3002\u5728\u767b\u5f55\u65f6\uff0c\u5982\u679c\u8f93\u5165\u7684\u7528\u6237\u540d\u6216\u5bc6\u7801\u6709\u8bef\uff0c\u7cfb\u7edf\u5e94\u8be5\u7ed9\u51fa\u660e\u786e\u7684\u9519\u8bef\u63d0\u793a\uff0c\u8fd9\u6837\u7528\u6237\u624d\u80fd\u66f4\u597d\u5730\u4e86\u89e3\u95ee\u9898\u6240\u5728\uff0c\u63d0\u9ad8\u7528\u6237\u4f53\u9a8c\u3002<\/p>\n<p>\u90a3\u4e48\u5728Laravel\u6846\u67b6\u4e2d\uff0c\u5982\u4f55\u901a\u8fc7\u9519\u8bef\u63d0\u793a\u6765\u544a\u77e5\u7528\u6237\u767b\u5f55\u5931\u8d25\u7684\u539f\u56e0\u5462\uff1f\u672c\u6587\u5c06\u5e26\u60a8\u4e86\u89e3Laravel\u6846\u67b6\u4e2d\u7684\u767b\u5f55\u9519\u8bef\u63d0\u793a\uff0c\u5305\u62ec\u4ee5\u4e0b\u5185\u5bb9\uff1a<\/p>\n<ol>\n<li>\u767b\u5f55\u9519\u8bef\u7684\u539f\u56e0<\/li>\n<li>\u5982\u4f55\u5728Laravel\u6846\u67b6\u4e2d\u5b9e\u73b0\u767b\u5f55\u9519\u8bef\u63d0\u793a\u529f\u80fd<\/li>\n<li>\u4f18\u5316\u767b\u5f55\u9519\u8bef\u63d0\u793a\u4fe1\u606f\u7684\u65b9\u6cd5<\/li>\n<\/ol>\n<p>\u4e00\u3001\u767b\u5f55\u9519\u8bef\u7684\u539f\u56e0<\/p>\n<p>\u7528\u6237\u767b\u5f55\u5931\u8d25\u53ef\u80fd\u6709\u591a\u79cd\u539f\u56e0\uff0c\u6bd4\u5982\u8f93\u5165\u7684\u7528\u6237\u540d\u6216\u5bc6\u7801\u6709\u8bef\u3001\u8d26\u6237\u5df2\u88ab\u9501\u5b9a\u3001\u8d26\u6237\u5df2\u8fc7\u671f\u7b49\u3002\u8fd9\u4e9b\u9519\u8bef\u539f\u56e0\u53ef\u4ee5\u901a\u8fc7\u9519\u8bef\u63d0\u793a\u6765\u544a\u77e5\u7528\u6237\uff0c\u5e2e\u52a9\u7528\u6237\u66f4\u597d\u5730\u4e86\u89e3\u95ee\u9898\u6240\u5728\u3002<\/p>\n<p>\u5728Laravel\u6846\u67b6\u4e2d\uff0c\u767b\u5f55\u5931\u8d25\u7684\u4e3b\u8981\u539f\u56e0\u6709\u4ee5\u4e0b\u51e0\u79cd\uff1a<\/p>\n<ol>\n<li>\u7528\u6237\u540d\u6216\u5bc6\u7801\u8f93\u5165\u9519\u8bef<\/li>\n<li>\u8ba4\u8bc1\u5931\u8d25<\/li>\n<li>\u8d26\u6237\u88ab\u7981\u7528<\/li>\n<li>\u7528\u6237\u4e0d\u5b58\u5728<\/li>\n<li>\u8d26\u6237\u5df2\u8fc7\u671f<\/li>\n<\/ol>\n<p>\u4e8c\u3001\u5982\u4f55\u5728Laravel\u6846\u67b6\u4e2d\u5b9e\u73b0\u767b\u5f55\u9519\u8bef\u63d0\u793a\u529f\u80fd<\/p>\n<p>\u5728Laravel\u6846\u67b6\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528validate()\u548cattempt()\u65b9\u6cd5\u6765\u5b9e\u73b0\u767b\u5f55\u9519\u8bef\u63d0\u793a\u529f\u80fd\u3002<\/p>\n<ol>\n<li>validate()<\/li>\n<\/ol>\n<p>\u9a8c\u8bc1\u7528\u6237\u8f93\u5165\u7684\u6570\u636e\u662f\u5426\u7b26\u5408\u6307\u5b9a\u7684\u89c4\u5219\u3002\u5728\u8fd9\u91cc\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u8f93\u5165\u7684\u7528\u6237\u540d\u548c\u5bc6\u7801\u8fdb\u884c\u9a8c\u8bc1\u3002<\/p>\n<p>validator()\u51fd\u6570\u7684\u7b2c\u4e00\u4e2a\u53c2\u6570\u662f\u8981\u9a8c\u8bc1\u7684\u8f93\u5165\u6570\u636e\uff0c\u7b2c\u4e8c\u4e2a\u53c2\u6570\u662f\u9a8c\u8bc1\u89c4\u5219\u3002\u5728\u8fd9\u91cc\uff0c\u6211\u4eec\u9700\u8981\u6307\u5b9a\u7528\u6237\u540d\u548c\u5bc6\u7801\u7684\u89c4\u5219\uff0c\u6bd4\u5982\uff1arequired\uff08\u5fc5\u586b\uff09\u3001email\uff08\u90ae\u7bb1\u683c\u5f0f\uff09\u7b49\u3002<\/p>\n<pre>\/\/ \u9a8c\u8bc1\u8f93\u5165\u7684\u7528\u6237\u540d\u548c\u5bc6\u7801\u89c4\u5219\u662f\u5426\u6b63\u786e\n$validator = validator($request-&amp;gt;all(), [\n    'email' =&amp;gt; 'required|email',\n    'password' =&amp;gt; 'required',\n]);<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<ol>\n<li>attempt()<\/li>\n<\/ol>\n<p>\u5982\u679cvalidate()\u51fd\u6570\u901a\u8fc7\u9a8c\u8bc1\uff0c\u90a3\u4e48\u6211\u4eec\u5c31\u53ef\u4ee5\u4f7f\u7528attempt()\u65b9\u6cd5\u6765\u8fdb\u884c\u7528\u6237\u8ba4\u8bc1\u3002\u5728\u8fd9\u91cc\uff0c\u9700\u8981\u8f93\u5165\u4e24\u4e2a\u53c2\u6570\uff0c\u7b2c\u4e00\u4e2a\u662f\u7528\u6237\u7684\u8f93\u5165\u4fe1\u606f\uff0c\u7b2c\u4e8c\u4e2a\u662f\u662f\u5426\u8bb0\u4f4f\u7528\u6237\uff08\u53ef\u9009\uff09\u3002<\/p>\n<p>\u4f7f\u7528attempt()\u65b9\u6cd5\u8fdb\u884c\u7528\u6237\u8ba4\u8bc1\u540e\uff0c\u7cfb\u7edf\u4f1a\u6839\u636e\u7528\u6237\u8f93\u5165\u7684\u4fe1\u606f\u5728\u6570\u636e\u5e93\u4e2d\u67e5\u627e\u76f8\u5e94\u7684\u7528\u6237\u8bb0\u5f55\u3002\u5982\u679c\u6210\u529f\u627e\u5230\u5e76\u4e14\u5bc6\u7801\u4e5f\u6b63\u786e\uff0c\u90a3\u4e48\u7cfb\u7edf\u5c31\u4f1a\u767b\u5f55\u8be5\u7528\u6237\u5e76\u8fd4\u56detrue\u3002\u5426\u5219\uff0c\u7cfb\u7edf\u5c31\u4f1a\u8fd4\u56defalse\u3002<\/p>\n<pre>\/\/ \u5c1d\u8bd5\u901a\u8fc7 input \u767b\u5f55\nif (Auth::attempt($credentials, $request-&amp;gt;has('remember'))) {\n    \/\/ \u6267\u884c\u767b\u5f55\u540e\u7684\u64cd\u4f5c\n    return redirect()-&amp;gt;intended('\/dashboard');\n}<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<ol>\n<li>\u9519\u8bef\u63d0\u793a<\/li>\n<\/ol>\n<p>\u5982\u679c\u4f7f\u7528validate()\u51fd\u6570\u9a8c\u8bc1\u8f93\u5165\u6570\u636e\u5931\u8d25\u6216\u4f7f\u7528attempt()\u65b9\u6cd5\u8ba4\u8bc1\u767b\u5f55\u5931\u8d25\uff0c\u90a3\u4e48\u6211\u4eec\u9700\u8981\u7ed9\u51fa\u660e\u786e\u7684\u9519\u8bef\u63d0\u793a\uff0c\u8ba9\u7528\u6237\u66f4\u597d\u5730\u4e86\u89e3\u95ee\u9898\u6240\u5728\u3002\u5728Laravel\u6846\u67b6\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528withErrors()\u65b9\u6cd5\u6765\u5b9e\u73b0\u9519\u8bef\u63d0\u793a\u3002<\/p>\n<pre>\/\/ \u5982\u679c\u9a8c\u8bc1\u5931\u8d25\uff0c\u8fd4\u56de\u767b\u5f55\u9875\u5e76\u63d0\u793a\u9519\u8bef\u4fe1\u606f\nreturn redirect()-&amp;gt;back()-&amp;gt;withErrors(['message' =&amp;gt; '\u7528\u6237\u540d\u6216\u5bc6\u7801\u9519\u8bef']);<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u4e09\u3001\u4f18\u5316\u767b\u5f55\u9519\u8bef\u63d0\u793a\u4fe1\u606f\u7684\u65b9\u6cd5<\/p>\n<p>\u4e3a\u4e86\u63d0\u9ad8\u7528\u6237\u4f53\u9a8c\uff0c\u6211\u4eec\u53ef\u4ee5\u5bf9\u767b\u5f55\u9519\u8bef\u63d0\u793a\u4fe1\u606f\u8fdb\u884c\u4f18\u5316\uff0c\u6bd4\u5982\uff1a<\/p>\n<ol>\n<li>\u4e3a\u4e0d\u540c\u7684\u9519\u8bef\u539f\u56e0\u63d0\u4f9b\u4e0d\u540c\u7684\u63d0\u793a\u4fe1\u606f\uff0c\u8ba9\u7528\u6237\u66f4\u597d\u5730\u4e86\u89e3\u95ee\u9898\u6240\u5728\u3002<\/li>\n<li>\u4f7f\u7528\u989c\u8272\u3001\u5b57\u4f53\u7b49\u6837\u5f0f\u6765\u7a81\u51fa\u63d0\u793a\u4fe1\u606f\uff0c\u8ba9\u7528\u6237\u66f4\u5bb9\u6613\u6ce8\u610f\u5230\u3002<\/li>\n<li>\u4f7f\u7528\u56fe\u6807\u3001\u52a8\u753b\u7b49\u8f85\u52a9\u6548\u679c\uff0c\u589e\u52a0\u63d0\u793a\u4fe1\u606f\u7684\u5438\u5f15\u529b\uff0c\u63d0\u5347\u7528\u6237\u4f53\u9a8c\u3002<\/li>\n<li>\u63d0\u4f9b\u5e2e\u52a9\u6587\u6863\u6216\u8054\u7cfb\u65b9\u5f0f\uff0c\u8ba9\u7528\u6237\u53ef\u4ee5\u53ca\u65f6\u83b7\u5f97\u89e3\u51b3\u95ee\u9898\u7684\u652f\u6301\u3002<\/li>\n<\/ol>\n<p>\u603b\u4e4b\uff0c\u4f18\u5316\u767b\u5f55\u9519\u8bef\u63d0\u793a\u4fe1\u606f\u53ef\u4ee5\u63d0\u9ad8\u7528\u6237\u6ee1\u610f\u5ea6\uff0c\u589e\u52a0\u7528\u6237\u4f53\u9a8c\uff0c\u4e3a\u7f51\u7ad9\u6216\u5e94\u7528\u7684\u6210\u529f\u8fd0\u8425\u63d0\u4f9b\u91cd\u8981\u5e2e\u52a9\u3002<\/p>\n<p>\u603b\u7ed3<\/p>\n<p>\u672c\u6587\u4ecb\u7ecd\u4e86Laravel\u6846\u67b6\u4e2d\u7684\u767b\u5f55\u9519\u8bef\u63d0\u793a\u529f\u80fd\uff0c\u5305\u62ec\u767b\u5f55\u9519\u8bef\u7684\u539f\u56e0\u3001\u5982\u4f55\u5b9e\u73b0\u767b\u5f55\u9519\u8bef\u63d0\u793a\u529f\u80fd\u4ee5\u53ca\u4f18\u5316\u767b\u5f55\u9519\u8bef\u63d0\u793a\u4fe1\u606f\u7684\u65b9\u6cd5\u3002\u5e0c\u671b\u80fd\u5e2e\u52a9\u60a8\u66f4\u597d\u5730\u5f00\u53d1Laravel\u5e94\u7528\u7a0b\u5e8f\uff0c\u63d0\u9ad8\u7528\u6237\u4f53\u9a8c\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662flaravel\u767b\u5f55\u9519\u8bef\u63d0\u793a\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>\u5728\u4f7f\u7528laravel\u6846\u67b6\u5f00\u53d1\u65f6\uff0c\u6211\u4eec\u53ef\u80fd\u4f1a\u9047\u5230\u5404\u79cd\u95ee\u9898\uff0c\u5176\u4e2d\u6700\u5e38\u89c1\u7684\u4e00\u4e2a\u95ee\u9898\u5c31\u662f\u7528\u6237\u767b\u5f55\u5931\u8d25\u3002\u5728\u767b\u5f55\u65f6\uff0c\u5982\u679c\u8f93\u5165\u7684\u7528\u6237\u540d\u6216\u5bc6\u7801\u6709\u8bef\uff0c\u7cfb\u7edf\u5e94\u8be5\u7ed9\u51fa\u660e\u786e\u7684\u9519\u8bef\u63d0\u793a\uff0c\u8fd9\u6837\u7528\u6237\u624d\u80fd\u66f4\u597d\u5730\u4e86\u89e3\u95ee\u9898\u6240\u5728\uff0c\u63d0\u9ad8\u7528\u6237\u4f53\u9a8c\u3002 \u90a3\u4e48\u5728Laravel\u6846\u67b6\u4e2d\uff0c\u5982\u4f55\u901a\u8fc7\u9519\u8bef\u63d0\u793a\u6765\u544a\u77e5\u7528\u6237\u767b\u5f55\u5931\u8d25\u7684\u539f\u56e0\u5462\uff1f\u672c\u6587\u5c06\u5e26\u60a8\u4e86\u89e3Laravel\u6846\u67b6\u4e2d\u7684\u767b\u5f55\u9519\u8bef\u63d0\u793a\uff0c\u5305\u62ec\u4ee5\u4e0b\u5185\u5bb9\uff1a \u767b\u5f55\u9519\u8bef\u7684\u539f\u56e0 \u5982\u4f55\u5728Laravel\u6846\u67b6\u4e2d\u5b9e\u73b0\u767b\u5f55\u9519\u8bef\u63d0\u793a\u529f\u80fd \u4f18\u5316\u767b\u5f55\u9519\u8bef\u63d0\u793a\u4fe1\u606f\u7684\u65b9\u6cd5 \u4e00\u3001\u767b\u5f55\u9519\u8bef\u7684\u539f\u56e0 \u7528\u6237\u767b\u5f55\u5931\u8d25\u53ef\u80fd\u6709\u591a\u79cd\u539f\u56e0\uff0c\u6bd4\u5982\u8f93\u5165\u7684\u7528\u6237\u540d\u6216\u5bc6\u7801\u6709\u8bef\u3001\u8d26\u6237\u5df2\u88ab\u9501\u5b9a\u3001\u8d26\u6237\u5df2\u8fc7\u671f\u7b49\u3002\u8fd9\u4e9b\u9519\u8bef\u539f\u56e0\u53ef\u4ee5\u901a\u8fc7\u9519\u8bef\u63d0\u793a\u6765\u544a\u77e5\u7528\u6237\uff0c\u5e2e\u52a9\u7528\u6237\u66f4\u597d\u5730\u4e86\u89e3\u95ee\u9898\u6240\u5728\u3002 \u5728Laravel\u6846\u67b6\u4e2d\uff0c\u767b\u5f55\u5931\u8d25\u7684\u4e3b\u8981\u539f\u56e0\u6709\u4ee5\u4e0b\u51e0\u79cd\uff1a \u7528\u6237\u540d\u6216\u5bc6\u7801\u8f93\u5165\u9519\u8bef \u8ba4\u8bc1\u5931\u8d25 \u8d26\u6237\u88ab\u7981\u7528 \u7528\u6237\u4e0d\u5b58\u5728 \u8d26\u6237\u5df2\u8fc7\u671f \u4e8c\u3001\u5982\u4f55\u5728Laravel\u6846\u67b6\u4e2d\u5b9e\u73b0\u767b\u5f55\u9519\u8bef\u63d0\u793a\u529f\u80fd \u5728Laravel\u6846\u67b6\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528validate()\u548cattempt()\u65b9\u6cd5\u6765\u5b9e\u73b0\u767b\u5f55\u9519\u8bef\u63d0\u793a\u529f\u80fd\u3002 validate() \u9a8c\u8bc1\u7528\u6237\u8f93\u5165\u7684\u6570\u636e\u662f\u5426\u7b26\u5408\u6307\u5b9a\u7684\u89c4\u5219\u3002\u5728\u8fd9\u91cc\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u8f93\u5165\u7684\u7528\u6237\u540d\u548c\u5bc6\u7801\u8fdb\u884c\u9a8c\u8bc1\u3002 validator()\u51fd\u6570\u7684\u7b2c\u4e00\u4e2a\u53c2\u6570\u662f\u8981\u9a8c\u8bc1\u7684\u8f93\u5165\u6570\u636e\uff0c\u7b2c\u4e8c\u4e2a\u53c2\u6570\u662f\u9a8c\u8bc1\u89c4\u5219\u3002\u5728\u8fd9\u91cc\uff0c\u6211\u4eec\u9700\u8981\u6307\u5b9a\u7528\u6237\u540d\u548c\u5bc6\u7801\u7684\u89c4\u5219\uff0c\u6bd4\u5982\uff1arequired\uff08\u5fc5\u586b\uff09\u3001email\uff08\u90ae\u7bb1\u683c\u5f0f\uff09\u7b49\u3002 \/\/ \u9a8c\u8bc1\u8f93\u5165\u7684\u7528\u6237\u540d\u548c\u5bc6\u7801\u89c4\u5219\u662f\u5426\u6b63\u786e $validator = validator($request-&amp;gt;all(), [ &#8217;email&#8217; =&amp;gt; &#8216;required|email&#8217;, &#8216;password&#8217; =&amp;gt; &#8216;required&#8217;, ]); \u767b\u5f55\u540e\u590d\u5236 attempt() \u5982\u679cvalidate()\u51fd\u6570\u901a\u8fc7\u9a8c\u8bc1\uff0c\u90a3\u4e48\u6211\u4eec\u5c31\u53ef\u4ee5\u4f7f\u7528attempt()\u65b9\u6cd5\u6765\u8fdb\u884c\u7528\u6237\u8ba4\u8bc1\u3002\u5728\u8fd9\u91cc\uff0c\u9700\u8981\u8f93\u5165\u4e24\u4e2a\u53c2\u6570\uff0c\u7b2c\u4e00\u4e2a\u662f\u7528\u6237\u7684\u8f93\u5165\u4fe1\u606f\uff0c\u7b2c\u4e8c\u4e2a\u662f\u662f\u5426\u8bb0\u4f4f\u7528\u6237\uff08\u53ef\u9009\uff09\u3002 \u4f7f\u7528attempt()\u65b9\u6cd5\u8fdb\u884c\u7528\u6237\u8ba4\u8bc1\u540e\uff0c\u7cfb\u7edf\u4f1a\u6839\u636e\u7528\u6237\u8f93\u5165\u7684\u4fe1\u606f\u5728\u6570\u636e\u5e93\u4e2d\u67e5\u627e\u76f8\u5e94\u7684\u7528\u6237\u8bb0\u5f55\u3002\u5982\u679c\u6210\u529f\u627e\u5230\u5e76\u4e14\u5bc6\u7801\u4e5f\u6b63\u786e\uff0c\u90a3\u4e48\u7cfb\u7edf\u5c31\u4f1a\u767b\u5f55\u8be5\u7528\u6237\u5e76\u8fd4\u56detrue\u3002\u5426\u5219\uff0c\u7cfb\u7edf\u5c31\u4f1a\u8fd4\u56defalse\u3002 \/\/ \u5c1d\u8bd5\u901a\u8fc7 input \u767b\u5f55 if (Auth::attempt($credentials, $request-&amp;gt;has(&#8216;remember&#8217;))) { \/\/ \u6267\u884c\u767b\u5f55\u540e\u7684\u64cd\u4f5c return redirect()-&amp;gt;intended(&#8216;\/dashboard&#8217;); } \u767b\u5f55\u540e\u590d\u5236 \u9519\u8bef\u63d0\u793a \u5982\u679c\u4f7f\u7528validate()\u51fd\u6570\u9a8c\u8bc1\u8f93\u5165\u6570\u636e\u5931\u8d25\u6216\u4f7f\u7528attempt()\u65b9\u6cd5\u8ba4\u8bc1\u767b\u5f55\u5931\u8d25\uff0c\u90a3\u4e48\u6211\u4eec\u9700\u8981\u7ed9\u51fa\u660e\u786e\u7684\u9519\u8bef\u63d0\u793a\uff0c\u8ba9\u7528\u6237\u66f4\u597d\u5730\u4e86\u89e3\u95ee\u9898\u6240\u5728\u3002\u5728Laravel\u6846\u67b6\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528withErrors()\u65b9\u6cd5\u6765\u5b9e\u73b0\u9519\u8bef\u63d0\u793a\u3002 \/\/ \u5982\u679c\u9a8c\u8bc1\u5931\u8d25\uff0c\u8fd4\u56de\u767b\u5f55\u9875\u5e76\u63d0\u793a\u9519\u8bef\u4fe1\u606f return redirect()-&amp;gt;back()-&amp;gt;withErrors([&#8216;message&#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-22569","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/22569","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=22569"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/22569\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=22569"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=22569"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=22569"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}