{"id":22671,"date":"2024-11-21T10:08:20","date_gmt":"2024-11-21T02:08:20","guid":{"rendered":"https:\/\/fwq.ai\/blog\/22671\/"},"modified":"2024-11-21T10:08:20","modified_gmt":"2024-11-21T02:08:20","slug":"laravel5-4%e5%81%9a%e5%95%86%e5%93%81%e4%bf%ae%e6%94%b9","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/22671\/","title":{"rendered":"laravel5.4\u505a\u5546\u54c1\u4fee\u6539"},"content":{"rendered":"<p>\u968f\u7740\u7535\u5546\u7684\u53d1\u5c55\uff0c\u5546\u54c1\u5c55\u793a\u5bf9\u4e8e\u7535\u5546\u7f51\u7ad9\u7684\u91cd\u8981\u6027\u8d8a\u6765\u8d8a\u7a81\u51fa\u3002\u4e3a\u4e86\u6ee1\u8db3\u5546\u5bb6\u7684\u9700\u6c42\uff0c\u7f51\u7ad9\u9700\u8981\u6253\u9020\u4e00\u4e2a\u597d\u7684\u5546\u54c1\u5c55\u793a\u9875\u9762\uff0c\u4e5f\u9700\u8981\u5b9e\u73b0\u65b9\u4fbf\u7684\u5546\u54c1\u7ba1\u7406\u7cfb\u7edf\u3002\u5728\u672c\u6587\u4e2d\uff0c\u5c06\u63a2\u8ba8\u5982\u4f55\u4f7f\u7528 laravel 5.4 \u6765\u5b9e\u73b0\u4e00\u4e2a\u5546\u54c1\u7ba1\u7406\u7cfb\u7edf\u7684\u4fee\u6539\u529f\u80fd\u3002<\/p>\n<p>\u524d\u7f6e\u77e5\u8bc6<\/p>\n<p>\u5728\u5f00\u59cb\u4e4b\u524d\uff0c\u6211\u4eec\u9700\u8981\u638c\u63e1 Laravel \u6846\u67b6\u548c Blade \u6a21\u677f\u7684\u57fa\u7840\u77e5\u8bc6\u3002<\/p>\n<ol>\n<li>Laravel \u4ecb\u7ecd<\/li>\n<\/ol>\n<p>Laravel \u662f\u4e00\u4e2a\u514d\u8d39\u7684\u5f00\u6e90 PHP Web \u6846\u67b6\uff0c\u4f7f\u7528 PHP \u8bed\u8a00\u7f16\u5199\uff0c\u57fa\u4e8e MVC \u6a21\u5f0f\uff08Model &#8211; View &#8211; Controller\uff09\u8bbe\u8ba1\u3002Laravel \u6846\u67b6\u63d0\u4f9b\u4e86\u8bb8\u591a\u5de5\u5177\u548c\u51fd\u6570\uff0c\u4ee5\u5b9e\u73b0\u5177\u6709\u9ad8\u6548\u6027\u548c\u53ef\u6269\u5c55\u6027\u7684 Web \u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<ol>\n<li>Blade \u6a21\u677f\u4ecb\u7ecd<\/li>\n<\/ol>\n<p>Blade \u662f Laravel \u7684\u6a21\u677f\u5f15\u64ce\uff0c\u662f\u57fa\u4e8e PHP Blade \u6784\u5efa\u7684\u3002 Blade \u6a21\u677f\u652f\u6301\u6269\u5c55\uff0c\u5141\u8bb8\u60a8\u4f7f\u7528\u9ed8\u8ba4\u5e03\u5c40\u3001\u8282\u7701\u91cd\u590d\u7684\u4ee3\u7801\uff0c\u5e76\u53ef\u4ee5\u8f7b\u677e\u5730\u4e0e\u540e\u7aef\u6570\u636e\u4ea4\u4e92\u3002<\/p>\n<p>\u5f00\u59cb\u5b9e\u73b0\u5546\u54c1\u4fee\u6539<\/p>\n<p>\u5728\u5b9e\u73b0\u5546\u54c1\u4fee\u6539\u524d\uff0c\u6211\u4eec\u9700\u8981\u786e\u4fdd\u5df2\u7ecf\u914d\u7f6e\u597d Laravel \u73af\u5883\u548c\u6570\u636e\u5e93\u8fde\u63a5\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u4f7f\u7528 Laravel \u7684\u6a21\u578b\u6765\u5c06\u5546\u54c1\u6570\u636e\u4f5c\u4e3a\u5bf9\u8c61\u5904\u7406\u3002<\/p>\n<ol>\n<li>\u521b\u5efa\u5546\u54c1\u6a21\u578b<\/li>\n<\/ol>\n<p>\u5728 Laravel \u4e2d\uff0c\u6a21\u578b\u88ab\u7528\u4e8e\u4e0e\u6570\u636e\u5e93\u7684\u4ea4\u4e92\u3002\u901a\u8fc7 creating \u4e8b\u4ef6\u548c saved \u4e8b\u4ef6\u5904\u7406\u51fd\u6570\uff0c\u6211\u4eec\u53ef\u4ee5\u5728\u4fdd\u5b58\u524d\u548c\u4fdd\u5b58\u540e\u6267\u884c\u67d0\u4e9b\u64cd\u4f5c\u3002<\/p>\n<p>\u9996\u5148\uff0c\u5728 Laravel \u7684\u547d\u4ee4\u884c\u4e2d\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u6a21\u578b\uff1a<\/p>\n<pre>php artisan make:model Product<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u9700\u8981\u5728\u6a21\u578b\u4e2d\u5b9a\u4e49\u8868\u540d\u548c\u53ef\u586b\u5145\u5c5e\u6027\u3002\u4fee\u6539 app\/Product.php \u6587\u4ef6\u5982\u4e0b\uff1a<\/p>\n<pre>&lt;?php namespace App;\n\nuse IlluminateDatabaseEloquentModel;\n\nclass Product extends Model\n{\n    protected $table = 'products';\n\n    protected $fillable = ['name', 'description', 'price', 'image'];\n}<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u5728\u8fd9\u4e2a\u6a21\u578b\u4e2d\uff0c\u6211\u4eec\u5b9a\u4e49\u4e86\u8868\u540d\u4e3a products\uff0c\u53ef\u586b\u5145\uff08mass-assignable\uff09\u5c5e\u6027\u4e3a name\u3001description\u3001price \u548c image\u3002<\/p>\n<ol>\n<li>\u521b\u5efa\u5546\u54c1\u63a7\u5236\u5668<\/li>\n<\/ol>\n<p>\u5728 Laravel \u4e2d\uff0c\u63a7\u5236\u5668\u662f\u7528\u4e8e\u5904\u7406 HTTP \u8bf7\u6c42\u7684\u7c7b\uff0c\u53ef\u4ee5\u5c06\u7528\u6237\u8bf7\u6c42\u6307\u5b9a\u7ed9\u6070\u5f53\u7684\u65b9\u6cd5\u5e76\u8fd4\u56de HTTP \u54cd\u5e94\u3002\u6211\u4eec\u9700\u8981\u521b\u5efa\u4e00\u4e2a\u63a7\u5236\u5668\u5e76\u6dfb\u52a0\u65b9\u6cd5\u6765\u5904\u7406\u5546\u54c1\u7684\u4fee\u6539\u64cd\u4f5c\u3002<\/p>\n<p>\u5728\u547d\u4ee4\u884c\u4e2d\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u751f\u6210\u4e00\u4e2a\u65b0\u7684\u63a7\u5236\u5668\uff1a<\/p>\n<pre>php artisan make:controller ProductController --resource<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u8fd9\u4e2a\u547d\u4ee4\u4f1a\u5728 app\/Http\/Controllers \u76ee\u5f55\u4e0b\u521b\u5efa\u4e00\u4e2a ProductController.php \u6587\u4ef6\uff0c\u5e76\u4e3a\u6211\u4eec\u751f\u6210\u57fa\u672c\u7684 RESTful \u8d44\u6e90\u65b9\u6cd5\uff08index\u3001create\u3001store\u3001show\u3001edit\u3001update\u3001destroy\uff09\u3002<\/p>\n<p>\u6211\u4eec\u5c06\u5728\u63a7\u5236\u5668\u6dfb\u52a0\u4e00\u4e2a edit \u65b9\u6cd5\u6765\u5c55\u793a\u5546\u54c1\u4fee\u6539\u8868\u5355\uff0c\u4e00\u4e2a update \u65b9\u6cd5\u6765\u5904\u7406\u8868\u5355\u6570\u636e\u548c\u4fdd\u5b58\u66f4\u65b0\u540e\u7684\u5546\u54c1\u4fe1\u606f\u3002<\/p>\n<p>\u4fee\u6539 app\/Http\/Controllers\/ProductController \u7684\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<pre>&lt;?php namespace AppHttpControllers;\n\nuse IlluminateHttpRequest;\nuse AppProduct;\n\nclass ProductController extends Controller\n{\n    public function edit($id)\n    {\n        $product = Product::findOrFail($id);\n        return view('products.edit', compact('product'));\n    }\n\n    public function update(Request $request, $id)\n    {\n        $product = Product::findOrFail($id);\n        $product-&gt;update($request-&amp;gt;all());\n\n        return redirect('\/products');\n    }\n}<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u5728 edit \u65b9\u6cd5\u4e2d\uff0c\u6211\u4eec\u67e5\u8be2\u6307\u5b9a ID \u7684\u5546\u54c1\u5e76\u5c06\u5176\u4f20\u9012\u7ed9\u89c6\u56fe\uff0c\u89c6\u56fe\u5c06\u6e32\u67d3\u5546\u54c1\u4fe1\u606f\u548c\u63d0\u4f9b\u4e00\u4e2a\u4fee\u6539\u8868\u5355\u3002\u5728 update \u65b9\u6cd5\u4e2d\uff0c\u6211\u4eec\u66f4\u65b0\u5546\u54c1\u4fe1\u606f\u5e76\u91cd\u5b9a\u5411\u5230\u5546\u54c1\u5217\u8868\u9875\u9762\u3002<\/p>\n<ol>\n<li>\u521b\u5efa\u5546\u54c1\u4fee\u6539\u8868\u5355<\/li>\n<\/ol>\n<p>\u5728 Laravel \u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528 Blade \u6a21\u7248\u5f15\u64ce\u6765\u521b\u5efa Web \u9875\u9762\u3002 \u4e0b\u9762\u6211\u4eec\u5c06\u521b\u5efa\u4e00\u4e2a\u89c6\u56fe\u6765\u8ba9\u7528\u6237\u4fee\u6539\u5546\u54c1\u4fe1\u606f\u3002<\/p>\n<p>\u521b\u5efa resources\/views\/products\/edit.blade.php \u6587\u4ef6\uff0c\u6dfb\u52a0\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/p>\n<pre>{!! Form::model($product, ['method'=&amp;gt;'PATCH', 'action'=&amp;gt;['ProductController@update', $product-&amp;gt;id], 'files'=&amp;gt;true]) !!}\n\n&lt;div class=\"form-group\"&gt;\n    {!! Form::label('name', '\u5546\u54c1\u540d\u79f0') !!}\n    {!! Form::text('name', null, ['class'=&amp;gt;'form-control']) !!}\n&lt;\/div&gt;\n\n&lt;div class=\"form-group\"&gt;\n    {!! Form::label('description', '\u5546\u54c1\u63cf\u8ff0') !!}\n    {!! Form::text('description', null, ['class'=&amp;gt;'form-control']) !!}\n&lt;\/div&gt;\n\n&lt;div class=\"form-group\"&gt;\n    {!! Form::label('price', '\u5546\u54c1\u4ef7\u683c') !!}\n    {!! Form::text('price', null, ['class'=&amp;gt;'form-control']) !!}\n&lt;\/div&gt;\n\n&lt;div class=\"form-group\"&gt;\n    {!! Form::label('image', '\u5546\u54c1\u56fe\u7247') !!}\n    {!! Form::file('image') !!}\n&lt;\/div&gt;\n\n&lt;div class=\"form-group\"&gt;\n    {!! Form::submit('\u4fdd\u5b58', ['class'=&amp;gt;'btn btn-primary']) !!}\n&lt;\/div&gt;\n\n{!! Form::close() !!}<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u5728\u8fd9\u4e2a\u6a21\u677f\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528\u4e86 Laravel \u7684 Form Builder \u751f\u6210\u8868\u5355\u5143\u7d20\u3002\u5728\u6a21\u677f\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528\u4e86 $product \u5bf9\u8c61\u6765\u6e32\u67d3\u5546\u54c1\u4fe1\u606f\uff0c\u901a\u8fc7 Form::model() \u65b9\u6cd5\u5c06\u8868\u5355\u4e0e\u6a21\u578b\u5bf9\u8c61\u7ed1\u5b9a\u8d77\u6765\uff0c\u5e76\u5c06\u63d0\u4ea4\u6570\u636e\u7684\u8bf7\u6c42\u65b9\u6cd5\u8bbe\u7f6e\u4e3a PATCH\u3002<\/p>\n<p>\u5728\u8868\u5355\u4e2d\uff0c\u6211\u4eec\u5b9a\u4e49\u4e86\u5546\u54c1\u7684\u540d\u79f0\u3001\u63cf\u8ff0\u3001\u4ef7\u683c\u548c\u56fe\u7247\u5b57\u6bb5\uff0c\u540c\u65f6\u8fd8\u8bbe\u7f6e\u4e86\u4fdd\u5b58\u6309\u94ae\u3002\u5f53\u7528\u6237\u63d0\u4ea4\u8868\u5355\u540e\uff0c\u6570\u636e\u5c06\u63d0\u4ea4\u5230\u5546\u54c1\u7684 update \u65b9\u6cd5\u4e2d\u3002<\/p>\n<ol>\n<li>\u8def\u7531\u8bbe\u7f6e<\/li>\n<\/ol>\n<p>\u5728 Laravel \u4e2d\uff0c\u8def\u7531\u662f\u7528\u4e8e\u5339\u914d URL \u548c\u63a7\u5236\u5668\u65b9\u6cd5\u7684\u673a\u5236\u3002\u6211\u4eec\u9700\u8981\u4e3a edit \u548c update \u65b9\u6cd5\u6dfb\u52a0\u8def\u7531\u89c4\u5219\u3002<\/p>\n<p>\u6253\u5f00 routes\/web.php \u6587\u4ef6\uff0c\u6dfb\u52a0\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/p>\n<pre>Route::resource('products', 'ProductController');\n\nRoute::get('products\/{id}\/edit', 'ProductController@edit')-&amp;gt;name('products.edit');\n\nRoute::patch('products\/{product}', 'ProductController@update')-&amp;gt;name('products.update');<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u5728\u8fd9\u4e2a\u4ee3\u7801\u7247\u6bb5\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528\u8d44\u6e90\u63a7\u5236\u5668\u7684 Route::resource \u65b9\u6cd5\u521b\u5efa\u4e86\u5546\u54c1\u7684 RESTful \u8d44\u6e90\u8def\u7531\u3002\u63a5\u7740\uff0c\u6211\u4eec\u4e3a edit \u65b9\u6cd5\u548c update \u65b9\u6cd5\u5206\u522b\u6dfb\u52a0\u4e86\u8def\u7531\u89c4\u5219\uff0c\u5141\u8bb8\u6211\u4eec\u5728\u6d4f\u89c8\u5668\u4e2d\u901a\u8fc7\u76f8\u5e94\u7684 URL \u6765\u8bbf\u95ee\u8fd9\u4e9b\u65b9\u6cd5\u3002<\/p>\n<p>\u5b8c\u6210\u4ee5\u4e0a\u64cd\u4f5c\u540e\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u5728\u6d4f\u89c8\u5668\u4e2d\u8bbf\u95ee \/products\/{id}\/edit \u7684\u9875\u9762\uff0c\u5bf9\u5546\u54c1\u8fdb\u884c\u4fee\u6539\u4e86\u3002<\/p>\n<p>\u5c0f\u7ed3<\/p>\n<p>\u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5982\u4f55\u4f7f\u7528 Laravel 5.4 \u6846\u67b6\u6765\u5b9e\u73b0\u5546\u54c1\u7684\u4fee\u6539\u529f\u80fd\u3002<\/p>\n<p>\u901a\u8fc7\u521b\u5efa\u5546\u54c1\u6a21\u578b\u548c\u63a7\u5236\u5668\u3001\u521b\u5efa\u5546\u54c1\u4fee\u6539\u8868\u5355\u4ee5\u53ca\u6dfb\u52a0\u8def\u7531\u8bbe\u7f6e\uff0c\u6211\u4eec\u6210\u529f\u5730\u521b\u5efa\u4e86\u4e00\u4e2a\u57fa\u4e8e Laravel \u7684\u5546\u54c1\u7ba1\u7406\u7cfb\u7edf\uff0c\u5e76\u4e14\u53ef\u4ee5\u65b9\u4fbf\u5730\u8fdb\u884c\u5546\u54c1\u7684\u4fee\u6539\u548c\u7ba1\u7406\u3002<\/p>\n<p>Laravel \u6846\u67b6\u7684\u5feb\u901f\u5f00\u53d1\u80fd\u529b\u548c Blade \u6a21\u677f\u5f15\u64ce\u7684\u7075\u6d3b\u6027\uff0c\u8ba9\u5f00\u53d1\u8005\u53ef\u4ee5\u8f7b\u677e\u6784\u5efa\u51fa\u4e00\u4e2a\u65b9\u4fbf\u6613\u7528\u3001\u5168\u529f\u80fd\u7684 Web \u5e94\u7528\u7a0b\u5e8f\u3002\u5f3a\u70c8\u63a8\u8350\u4f7f\u7528 Laravel 5.4 \u5f00\u53d1\u7535\u5546 Web \u5e94\u7528\u7a0b\u5e8f\uff0c\u4ee5\u4fbf\u4e3a\u5e7f\u5927\u7528\u6237\u63d0\u4f9b\u66f4\u597d\u7684\u4f53\u9a8c\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662flaravel5.4\u505a\u5546\u54c1\u4fee\u6539\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>\u968f\u7740\u7535\u5546\u7684\u53d1\u5c55\uff0c\u5546\u54c1\u5c55\u793a\u5bf9\u4e8e\u7535\u5546\u7f51\u7ad9\u7684\u91cd\u8981\u6027\u8d8a\u6765\u8d8a\u7a81\u51fa\u3002\u4e3a\u4e86\u6ee1\u8db3\u5546\u5bb6\u7684\u9700\u6c42\uff0c\u7f51\u7ad9\u9700\u8981\u6253\u9020\u4e00\u4e2a\u597d\u7684\u5546\u54c1\u5c55\u793a\u9875\u9762\uff0c\u4e5f\u9700\u8981\u5b9e\u73b0\u65b9\u4fbf\u7684\u5546\u54c1\u7ba1\u7406\u7cfb\u7edf\u3002\u5728\u672c\u6587\u4e2d\uff0c\u5c06\u63a2\u8ba8\u5982\u4f55\u4f7f\u7528 laravel 5.4 \u6765\u5b9e\u73b0\u4e00\u4e2a\u5546\u54c1\u7ba1\u7406\u7cfb\u7edf\u7684\u4fee\u6539\u529f\u80fd\u3002 \u524d\u7f6e\u77e5\u8bc6 \u5728\u5f00\u59cb\u4e4b\u524d\uff0c\u6211\u4eec\u9700\u8981\u638c\u63e1 Laravel \u6846\u67b6\u548c Blade \u6a21\u677f\u7684\u57fa\u7840\u77e5\u8bc6\u3002 Laravel \u4ecb\u7ecd Laravel \u662f\u4e00\u4e2a\u514d\u8d39\u7684\u5f00\u6e90 PHP Web \u6846\u67b6\uff0c\u4f7f\u7528 PHP \u8bed\u8a00\u7f16\u5199\uff0c\u57fa\u4e8e MVC \u6a21\u5f0f\uff08Model &#8211; View &#8211; Controller\uff09\u8bbe\u8ba1\u3002Laravel \u6846\u67b6\u63d0\u4f9b\u4e86\u8bb8\u591a\u5de5\u5177\u548c\u51fd\u6570\uff0c\u4ee5\u5b9e\u73b0\u5177\u6709\u9ad8\u6548\u6027\u548c\u53ef\u6269\u5c55\u6027\u7684 Web \u5e94\u7528\u7a0b\u5e8f\u3002 Blade \u6a21\u677f\u4ecb\u7ecd Blade \u662f Laravel \u7684\u6a21\u677f\u5f15\u64ce\uff0c\u662f\u57fa\u4e8e PHP Blade \u6784\u5efa\u7684\u3002 Blade \u6a21\u677f\u652f\u6301\u6269\u5c55\uff0c\u5141\u8bb8\u60a8\u4f7f\u7528\u9ed8\u8ba4\u5e03\u5c40\u3001\u8282\u7701\u91cd\u590d\u7684\u4ee3\u7801\uff0c\u5e76\u53ef\u4ee5\u8f7b\u677e\u5730\u4e0e\u540e\u7aef\u6570\u636e\u4ea4\u4e92\u3002 \u5f00\u59cb\u5b9e\u73b0\u5546\u54c1\u4fee\u6539 \u5728\u5b9e\u73b0\u5546\u54c1\u4fee\u6539\u524d\uff0c\u6211\u4eec\u9700\u8981\u786e\u4fdd\u5df2\u7ecf\u914d\u7f6e\u597d Laravel \u73af\u5883\u548c\u6570\u636e\u5e93\u8fde\u63a5\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u4f7f\u7528 Laravel \u7684\u6a21\u578b\u6765\u5c06\u5546\u54c1\u6570\u636e\u4f5c\u4e3a\u5bf9\u8c61\u5904\u7406\u3002 \u521b\u5efa\u5546\u54c1\u6a21\u578b \u5728 Laravel \u4e2d\uff0c\u6a21\u578b\u88ab\u7528\u4e8e\u4e0e\u6570\u636e\u5e93\u7684\u4ea4\u4e92\u3002\u901a\u8fc7 creating \u4e8b\u4ef6\u548c saved \u4e8b\u4ef6\u5904\u7406\u51fd\u6570\uff0c\u6211\u4eec\u53ef\u4ee5\u5728\u4fdd\u5b58\u524d\u548c\u4fdd\u5b58\u540e\u6267\u884c\u67d0\u4e9b\u64cd\u4f5c\u3002 \u9996\u5148\uff0c\u5728 Laravel [&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-22671","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/22671","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=22671"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/22671\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=22671"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=22671"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=22671"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}