{"id":12419,"date":"2024-02-04T07:00:42","date_gmt":"2024-02-03T22:00:42","guid":{"rendered":"https:\/\/blog.capilano-fw.com\/?p=12419"},"modified":"2024-02-02T18:22:00","modified_gmt":"2024-02-02T09:22:00","slug":"htmx-laravel-%e3%81%a7-crud-%e3%82%92%e4%bd%9c%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b","status":"publish","type":"post","link":"https:\/\/blog.capilano-fw.com\/?p=12419","title":{"rendered":"htmx + Laravel \u3067 CRUD \u3092\u4f5c\u3063\u3066\u307f\u308b"},"content":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u3053\u306e\u9593\u30a8\u30c3\u30af\u30b9\uff08\u65e7<code>Twitter<\/code>\uff09\u3092\u898b\u3066\u3044\u305f\u3089\u3001<a href=\"https:\/\/qiita.com\/twrcd1227\/items\/7bce18167fb02ec22729\" target=\"_blank\" rel=\"noopener\">\u3068\u3042\u308b\u77e5\u3089\u306a\u3044\u30c6\u30af\u30ce\u30ed\u30b8\u30fc\u306e\u8a71\u984c<\/a> \u304c\u6d41\u308c\u3066\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u308c\u304c\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<p><strong style=\"font-size: 35px;\">htmx\uff08\u3048\u3044\u3061\u30fb\u3066\u3043\u30fc\u30fb\u3048\u3080\u30fb\u3048\u3063\u304f\u3059\uff09<\/strong><\/p>\n<p>\u3067\u3059\u3002<\/p>\n<p><strong>\ud83d\udcdd \u672c\u5bb6\u306e\u30b5\u30a4\u30c8\uff1a<\/strong>\u00a0<a href=\"https:\/\/htmx.org\/\" target=\"_blank\" rel=\"noopener\">htmx &#8211; high power tools for html<\/a><\/p>\n<p>\u3068\u3066\u3082\u304a\u304a\u3056\u3063\u3071\u306b\u8a00\u3046\u3068\u300c<strong>JavaScript \u3092\u66f8\u304b\u306a\u304f\u3066\u3082\u3044\u308d\u3093\u306a\u3053\u3068\u3067\u304d\u308b\u3088<\/strong>\u300d\u304c\u30b3\u30f3\u30bb\u30d7\u30c8\u306e\u3088\u3046\u3067\u3001\u4f8b\u3048\u3070\u30ea\u30f3\u30af\u306b<code>hx-get=\"\uff08\u3053\u3053\u306bURL\uff09\"<\/code>\u3092\u30bb\u30c3\u30c8\u3059\u308b\u3060\u3051\u3067<code>Ajax<\/code>\u30a2\u30af\u30bb\u30b9\u3057\u3066\u304f\u308c\u305f\u308a\u3057\u307e\u3059\u3002<\/p>\n<p>\uff08\u30b3\u30f3\u30bb\u30d7\u30c8\u3068\u3057\u3066\u306f<code>livewire<\/code>\u3068\u304b\u306b\u8fd1\u3044\u306e\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u306d\u2026\ud83e\udd14\uff09<\/p>\n<p>\u305d\u3057\u3066\u3001\u500b\u4eba\u7684\u306b\u306f\u6700\u8fd1\u3053\u3046\u3044\u3063\u305f\u6280\u8853\u306b\u89e6\u308c\u3066\u3044\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u300c<strong>\u3061\u3087\u3063\u3068\u3084\u3063\u3066\u307f\u3088\u3046\u304b\u306a\uff01<\/strong>\u300d\u3068\u3044\u3046\u6c17\u5206\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u3053\u3067\u2757<\/p>\n<p>\u4eca\u56de\u306f\u3053\u306e\u300c<strong>htmx + Laravel<\/strong>\u300d\u3092\u4f7f\u3063\u3066<code>CRUD<\/code>\u6a5f\u80fd\u3092\u4f5c\u3063\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u305c\u3072\u4f55\u304b\u306e\u53c2\u8003\u306b\u306a\u308a\u307e\u3057\u305f\u3089\u5b09\u3057\u3044\u3067\u3059\ud83d\ude04\u2728<\/p>\n<p>\u203b \u3061\u306a\u307f\u306b\u307b\u307c\u540c\u3058\u306a\u306e\u3067<code>CRUD<\/code>\u306e<code>R<\/code>\uff08\u8868\u793a\uff09\u306f\u7701\u7565\u3057\u3066\u307e\u3059\u3002\u91e3\u308a\u30bf\u30a4\u30c8\u30eb\u307f\u305f\u3044\u306b\u306a\u3063\u3061\u3083\u3063\u3066\u30b4\u30e1\u30f3\u30ca\u30b5\u30a4\ud83d\ude05<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6067 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/03\/no_19.png\" alt=\"\" width=\"314\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/03\/no_19.png 314w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/03\/no_19-294x300.png 294w\" sizes=\"auto, (max-width: 314px) 100vw, 314px\" \/>\u300c\u4eca\u5e74\u3082\u731b\u6691\u3089\u3057\u3044\u306e\u3067\u3001<br \/>\n\u6885\u96e8\u524d\u3050\u3089\u3044\u306b\u8272\u3093\u306a\u3068\u3053\u3078<br \/>\n\u3067\u304b\u3051\u3088\u3046\u304b\u306a \ud83d\udeb2\ud83d\udca8\u300d<\/p>\n<p>\u958b\u767a\u74b0\u5883\uff1a Laravel 10.x\u3001htmx 1.9.10<\/p>\n<h1>\u30e2\u30c7\u30eb\uff06\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\uff06Seeder\u3092\u3064\u304f\u308b<\/h1>\n<p>\u3067\u306f\u3001\u4eca\u56de\u306f\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u3068\u3057\u3066\u300c<strong>\u304a\u9152<\/strong>\u300d\u3092\u30c6\u30fc\u30de\u306b\u3064\u304f\u3063\u3066\u3044\u304f\u3053\u3068\u306b\u3057\u307e\u3059\u3002\u4f7f\u3046\u304a\u9152\u306f\u4ee5\u4e0b\u306e10\u500b\u3067\u3059\u3002\uff08\u3053\u3046\u3044\u3046\u3068\u304d<code>ChatGPT<\/code>\u4fbf\u5229\u3067\u3059\u306d\ud83d\udc4d\uff09<\/p>\n<ul>\n<li>\u30d3\u30fc\u30eb<\/li>\n<li>\u30ef\u30a4\u30f3<\/li>\n<li>\u30b7\u30e3\u30f3\u30d1\u30f3<\/li>\n<li>\u65e5\u672c\u9152<\/li>\n<li>\u30a6\u30a4\u30b9\u30ad\u30fc<\/li>\n<li>\u30d0\u30fc\u30dc\u30f3<\/li>\n<li>\u30a6\u30a4\u30b9\u30ad\u30fc<\/li>\n<li>\u30e9\u30e0<\/li>\n<li>\u30c6\u30ad\u30fc\u30e9<\/li>\n<li>\u30b8\u30f3<\/li>\n<\/ul>\n<p>\u3067\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\n<pre><strong>php artisan make:model AlcoholicBeverage -ms<\/strong><\/pre>\n<\/div>\n<p>\u3059\u308b\u3068\u3001\u30d5\u30a1\u30a4\u30eb\uff13\u3064\u4f5c\u6210\u3055\u308c\u308b\u306e\u3067\u4e2d\u8eab\u3092\u305d\u308c\u305e\u308c\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<h2>\u30e2\u30c7\u30eb<\/h2>\n<p><strong>app\/Models\/AlcoholicBeverage.php<\/strong><\/p>\n<div>\n<pre><strong>&lt;?php<\/strong>\r\n\r\n<strong>namespace App\\Models;<\/strong>\r\n\r\n<strong>use Illuminate\\Database\\Eloquent\\Factories\\HasFactory;<\/strong>\r\n<strong>use Illuminate\\Database\\Eloquent\\Model;<\/strong>\r\n\r\n<strong>class AlcoholicBeverage extends Model<\/strong>\r\n<strong>{<\/strong>\r\n<strong>    use HasFactory;<\/strong>\r\n\r\n<strong>    protected $fillable = [<\/strong>\r\n<strong>        'name',<\/strong>\r\n<strong>        'alcohol_content'<\/strong>\r\n<strong>    ];<\/strong>\r\n<strong>}<\/strong><\/pre>\n<\/div>\n<h2>\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3<\/h2>\n<p><strong>database\/migrations\/****_**_**_******_create_alcoholic_beverages_table.php<\/strong><\/p>\n<div>\n<pre><strong>&lt;?php<\/strong>\r\n\r\n<strong>use Illuminate\\Database\\Migrations\\Migration;<\/strong>\r\n<strong>use Illuminate\\Database\\Schema\\Blueprint;<\/strong>\r\n<strong>use Illuminate\\Support\\Facades\\Schema;<\/strong>\r\n\r\n<strong>return new class extends Migration<\/strong>\r\n<strong>{<\/strong>\r\n<strong>    \/**<\/strong>\r\n<strong>     * Run the migrations.<\/strong>\r\n<strong>     *\/<\/strong>\r\n<strong>    public function up(): void<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        Schema::create('alcoholic_beverages', function (Blueprint $table) {<\/strong>\r\n<strong>            $table-&gt;id();<\/strong>\r\n<strong>            $table-&gt;string('name')-&gt;comment('\u304a\u9152\u306e\u540d\u524d');<\/strong>\r\n<strong>            $table-&gt;string('alcohol_content')-&gt;comment('\u30a2\u30eb\u30b3\u30fc\u30eb\u5ea6\u6570');<\/strong>\r\n<strong>            $table-&gt;timestamps();<\/strong>\r\n<strong>        });<\/strong>\r\n<strong>    }<\/strong>\r\n\r\n<strong>    \/**<\/strong>\r\n<strong>     * Reverse the migrations.<\/strong>\r\n<strong>     *\/<\/strong>\r\n<strong>    public function down(): void<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        Schema::dropIfExists('alcoholic_beverages');<\/strong>\r\n<strong>    }<\/strong>\r\n<strong>};<\/strong><\/pre>\n<\/div>\n<h2>Seeder<\/h2>\n<p><strong>database\/seeders\/AlcoholicBeverageSeeder.php<\/strong><\/p>\n<div>\n<pre><strong>&lt;?php<\/strong>\r\n\r\n<strong>namespace Database\\Seeders;<\/strong>\r\n\r\n<strong>use App\\Models\\AlcoholicBeverage;<\/strong>\r\n<strong>use Illuminate\\Database\\Console\\Seeds\\WithoutModelEvents;<\/strong>\r\n<strong>use Illuminate\\Database\\Seeder;<\/strong>\r\n\r\n<strong>class AlcoholicBeverageSeeder extends Seeder<\/strong>\r\n<strong>{<\/strong>\r\n<strong>    \/**<\/strong>\r\n<strong>     * Run the database seeds.<\/strong>\r\n<strong>     *\/<\/strong>\r\n<strong>    public function run(): void<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        $alcoholic_beverages = [<\/strong>\r\n<strong>            ['name' =&gt; '\u30d3\u30fc\u30eb', 'alcoholContent' =&gt; '4%\uff5e6%'],<\/strong>\r\n<strong>            ['name' =&gt; '\u30ef\u30a4\u30f3', 'alcoholContent' =&gt; '9%\uff5e16%'],<\/strong>\r\n<strong>            ['name' =&gt; '\u30b7\u30e3\u30f3\u30d1\u30f3', 'alcoholContent' =&gt; '8%\uff5e12%'],<\/strong>\r\n<strong>            ['name' =&gt; '\u65e5\u672c\u9152', 'alcoholContent' =&gt; '15%\uff5e17%'],<\/strong>\r\n<strong>            ['name' =&gt; '\u30a6\u30a4\u30b9\u30ad\u30fc', 'alcoholContent' =&gt; '40%\uff5e50%'],<\/strong>\r\n<strong>            ['name' =&gt; '\u30d0\u30fc\u30dc\u30f3', 'alcoholContent' =&gt; '40%\uff5e50%'],<\/strong>\r\n<strong>            ['name' =&gt; '\u30e9\u30e0', 'alcoholContent' =&gt; '37.5%\uff5e80%'],<\/strong>\r\n<strong>            ['name' =&gt; '\u30c6\u30ad\u30fc\u30e9', 'alcoholContent' =&gt; '35%\uff5e55%'],<\/strong>\r\n<strong>            ['name' =&gt; '\u30b8\u30f3', 'alcoholContent' =&gt; '37.5%\uff5e47%']<\/strong>\r\n<strong>        ];<\/strong>\r\n\r\n<strong>        foreach($alcoholic_beverages as $alcoholic_beverage) {<\/strong>\r\n\r\n<strong>            AlcoholicBeverage::create([<\/strong>\r\n<strong>                'name' =&gt; $alcoholic_beverage['name'],<\/strong>\r\n<strong>                'alcohol_content' =&gt; $alcoholic_beverage['alcoholContent']<\/strong>\r\n<strong>            ]);<\/strong>\r\n\r\n<strong>        }<\/strong>\r\n<strong>    }<\/strong>\r\n<strong>}<\/strong><\/pre>\n<\/div>\n<p>\u6b21\u306e\u3053\u306e<code>AlcoholicBeverageSeeder<\/code>\u3092<code>DatabaseSeeder<\/code>\u3078\u767b\u9332\u3057\u307e\u3059\u3002<\/p>\n<p><strong>database\/seeders\/DatabaseSeeder.php<\/strong><\/p>\n<div>\n<pre>&lt;?php\r\n\r\nnamespace Database\\Seeders;\r\n\r\n\/\/ use Illuminate\\Database\\Console\\Seeds\\WithoutModelEvents;\r\nuse Illuminate\\Database\\Seeder;\r\n\r\nclass DatabaseSeeder extends Seeder\r\n{\r\n    \/**\r\n     * Seed the application's database.\r\n     *\/\r\n    public function run(): void\r\n    {\r\n        \/\/ \u7701\u7565\r\n\r\n        $this-&gt;call([\r\n            <strong>AlcoholicBeverageSeeder::class,<\/strong> \/\/ \ud83d\udc48 \u3053\u3053\r\n        ]);\r\n    }\r\n}<\/pre>\n<\/div>\n<p>\u3067\u306f\u3001\u3053\u306e\u72b6\u614b\u3067\u4e00\u5ea6\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u521d\u671f\u5316\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<br \/>\n\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\n<pre><strong>php artisan migrate:fresh --seed<\/strong><\/pre>\n<p>\u3059\u308b\u3068\u3001\u5b9f\u969b\u306e\u30c6\u30fc\u30d6\u30eb\u306f\u3053\u3046\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12425\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/02\/htmx_laravel_crud_1.png\" alt=\"\" width=\"578\" height=\"471\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/02\/htmx_laravel_crud_1.png 578w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/02\/htmx_laravel_crud_1-300x244.png 300w\" sizes=\"auto, (max-width: 578px) 100vw, 578px\" \/><\/p>\n<\/div>\n<h1>\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3092\u3064\u304f\u308b<\/h1>\n<p>\u7d9a\u3044\u3066\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3092\u3064\u304f\u308a\u307e\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\n<pre><strong>php artisan make:controller AlcoholicBeverageController<\/strong><\/pre>\n<p>\u3059\u308b\u3068\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u308b\u306e\u3067\u3001\u4e2d\u8eab\u3092\u6b21\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<p><strong>app\/Http\/Controllers\/AlcoholicBeverageController.php<\/strong><\/p>\n<div>\n<pre><strong>&lt;?php<\/strong>\r\n\r\n<strong>namespace App\\Http\\Controllers;<\/strong>\r\n\r\n<strong>use App\\Http\\Requests\\AlcoholicBeverageRequest;<\/strong>\r\n<strong>use App\\Models\\AlcoholicBeverage;<\/strong>\r\n<strong>use Illuminate\\Http\\Request;<\/strong>\r\n\r\n<strong>class AlcoholicBeverageController extends Controller<\/strong>\r\n<strong>{<\/strong>\r\n<strong>    public function index()<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        return view('alcoholic_beverage.index');<\/strong>\r\n<strong>    }<\/strong>\r\n\r\n<strong>    public function list()<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        $alcoholic_beverages = AlcoholicBeverage::latest()-&gt;paginate();<\/strong>\r\n\r\n<strong>        return view('alcoholic_beverage.list', [<\/strong>\r\n<strong>            'alcoholic_beverages' =&gt; $alcoholic_beverages<\/strong>\r\n<strong>        ]);<\/strong>\r\n<strong>    }<\/strong>\r\n\r\n<strong>    public function create()<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        return view('alcoholic_beverage.create');<\/strong>\r\n<strong>    }<\/strong>\r\n\r\n<strong>    public function store(AlcoholicBeverageRequest $request)<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        $alcoholic_beverage = new AlcoholicBeverage();<\/strong>\r\n<strong>        $alcoholic_beverage-&gt;name = $request-&gt;name;<\/strong>\r\n<strong>        $alcoholic_beverage-&gt;alcohol_content = $request-&gt;alcohol_content;<\/strong>\r\n<strong>        $alcoholic_beverage-&gt;save();<\/strong>\r\n\r\n<strong>        return response()<\/strong>\r\n<strong>            -&gt;view('alcoholic_beverage.create', [<\/strong>\r\n<strong>                'status' =&gt; 'success',<\/strong>\r\n<strong>            ])<\/strong>\r\n<strong>            -&gt;withHeaders([<\/strong>\r\n<strong>                'X-Response-Status' =&gt; 'success',<\/strong>\r\n<strong>            ]);<\/strong>\r\n<strong>    }<\/strong>\r\n\r\n<strong>    public function show(AlcoholicBeverage $alcoholic_beverage)<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        return view('alcoholic_beverage.show', [<\/strong>\r\n<strong>            'alcoholic_beverage' =&gt; $alcoholic_beverage<\/strong>\r\n<strong>        ]);<\/strong>\r\n<strong>    }<\/strong>\r\n\r\n<strong>    public function edit(AlcoholicBeverage $alcoholic_beverage)<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        return view('alcoholic_beverage.edit', [<\/strong>\r\n<strong>            'alcoholic_beverage' =&gt; $alcoholic_beverage,<\/strong>\r\n<strong>            'name' =&gt; $alcoholic_beverage-&gt;name,<\/strong>\r\n<strong>            'alcohol_content' =&gt; $alcoholic_beverage-&gt;alcohol_content,<\/strong>\r\n<strong>        ]);<\/strong>\r\n<strong>    }<\/strong>\r\n\r\n<strong>    public function update(AlcoholicBeverageRequest $request, AlcoholicBeverage $alcoholic_beverage)<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        $alcoholic_beverage-&gt;name = $request-&gt;name;<\/strong>\r\n<strong>        $alcoholic_beverage-&gt;alcohol_content = $request-&gt;alcohol_content;<\/strong>\r\n<strong>        $alcoholic_beverage-&gt;save();<\/strong>\r\n\r\n<strong>        return response()<\/strong>\r\n<strong>            -&gt;view('alcoholic_beverage.edit', [<\/strong>\r\n<strong>                'status' =&gt; 'success',<\/strong>\r\n<strong>                'alcoholic_beverage' =&gt; $alcoholic_beverage,<\/strong>\r\n<strong>                'name' =&gt; $alcoholic_beverage-&gt;name,<\/strong>\r\n<strong>                'alcohol_content' =&gt; $alcoholic_beverage-&gt;alcohol_content,<\/strong>\r\n<strong>            ])<\/strong>\r\n<strong>            -&gt;withHeaders([<\/strong>\r\n<strong>                'X-Response-Status' =&gt; 'success',<\/strong>\r\n<strong>            ]);<\/strong>\r\n<strong>    }<\/strong>\r\n\r\n<strong>    public function destroy(AlcoholicBeverage $alcoholic_beverage)<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        \/\/ \u524a\u9664\u6a29\u9650\u306e\u30c1\u30a7\u30c3\u30af\u306f\u7701\u7565\u3057\u3066\u3044\u307e\u3059<\/strong>\r\n\r\n<strong>        $alcoholic_beverage-&gt;delete();<\/strong>\r\n\r\n<strong>        return response('', 204)<\/strong>\r\n<strong>            -&gt;withHeaders([<\/strong>\r\n<strong>                'X-Response-Status' =&gt; 'success',<\/strong>\r\n<strong>            ]);<\/strong>\r\n<strong>    }<\/strong>\r\n<strong>}<\/strong><\/pre>\n<\/div>\n<\/div>\n<p>\u306a\u304a\u3001\u4eca\u56de\u4f7f\u3046<code>htmx<\/code>\u306f\u901a\u5e38\u306e<code>Laravel<\/code>\u3068\u306f\u9055\u3063\u3066\u300c<strong>HTML\u3092\u8fd4\u3059<\/strong>\u300d\u3088\u3046\u306b\u3057\u306a\u3051\u308c\u3070\u3044\u3051\u306a\u3044\u305f\u3081\u3001<code>destroy()<\/code>\u4ee5\u5916\u306f\u30d3\u30e5\u30fc\u3092\u8fd4\u3059\u3088\u3046\u306b\u8a2d\u8a08\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u3053\u308c\u3082<code>htmx<\/code>\u3078\u306e\u5bfe\u5fdc\u3068\u3057\u3066\u300c\u767b\u9332\u300d\u300c\u66f4\u65b0\u300d\u300c\u524a\u9664\u300d\u304c\u6210\u529f\u3057\u305f\u5834\u5408\u306f\u3001\u30d8\u30c3\u30c0\u30fc\u300c<strong>X-Response-Status<\/strong>\u300d\u306b<code>success<\/code>\u3092\u30bb\u30c3\u30c8\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u306f\u3001\u5f8c\u306e\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u306e\u3068\u3053\u308d\u306b\u95a2\u308f\u3063\u3066\u304f\u308b\u306e\u3067\u3059\u304c\u3001\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u306b\u5931\u6557\u3057\u305f\u3068\u304d\u306b422\u3092\u8fd4\u3057\u3066\u3057\u307e\u3046\u3068\u3001<strong><code>htmx<\/code>\u304c<code>DOM<\/code>\u3092\u66f4\u65b0\u3057\u306a\u3044\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b<\/strong>\u305f\u3081\u3001\u5e38\u306b<code>200<\/code>\u3092\u8fd4\u3055\u306a\u3044\u3068\u3044\u3051\u306a\u3044\uff08\u4ed6\u306e<code>200<\/code>\u756a\u53f0\u3067\u3082OK\u306a\u306e\u3067\u3059\u304c\u306a\u3093\u304b\u30ed\u30b8\u30ab\u30eb\u3058\u3083\u306a\u3044\uff09\u306e\u3067\u3001\u3053\u306e\u72ec\u81ea\u30d8\u30c3\u30c0\u30fc\u3067\u300c\u6210\u529f\u300dor\u300c\u5931\u6557\u300d\u304c\u5224\u5225\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h1>\u30d3\u30e5\u30fc\u3092\u3064\u304f\u308b<\/h1>\n<p>\u6b21\u306b\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u5185\u3067\u30bb\u30c3\u30c8\u3057\u305f\u5404\u30d3\u30e5\u30fc\u3092\u3064\u304f\u3063\u3066\u3044\u304d\u307e\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\n<pre><strong>php artisan make:view alcoholic_beverages.index\r\n<\/strong><strong style=\"font-size: 0.9375rem;\">php artisan make:view alcoholic_beverage.list\r\n<\/strong><strong>php artisan make:view alcoholic_beverages.create<\/strong>\r\n<strong>php artisan make:view alcoholic_beverages.edit<\/strong><\/pre>\n<p>\u3059\u308b\u3068\u3001\uff14\u3064\u306e\u30d3\u30e5\u30fc\u304c\u4f5c\u6210\u3055\u308c\u308b\u306e\u3067\u4e2d\u8eab\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<\/div>\n<h2>index \u306e\u30d3\u30e5\u30fc<\/h2>\n<p><strong>resources\/views\/alcoholic_beverage\/index.blade.php<\/strong><\/p>\n<div>\n<pre><strong>&lt;html&gt;<\/strong>\r\n<strong>&lt;head&gt;<\/strong>\r\n<strong>    &lt;title&gt;htmx \u3092\u4f7f\u3063\u305f CRUD \u30b5\u30f3\u30d7\u30eb&lt;\/title&gt;<\/strong>\r\n<strong>    &lt;script src=\"https:\/\/unpkg.com\/htmx.org@1.9.10\"&gt;&lt;\/script&gt;<\/strong>\r\n<strong>    &lt;script src=\"https:\/\/cdn.tailwindcss.com\/3.4.1\"&gt;&lt;\/script&gt;<\/strong>\r\n<strong>&lt;\/head&gt;<\/strong>\r\n<strong>&lt;body&gt;<\/strong>\r\n<strong>    &lt;div class=\"p-5\"&gt;<\/strong>\r\n<strong>        &lt;h1 class=\"text-3xl mb-5\"&gt;htmx \u3092\u4f7f\u3063\u305f CRUD \u30b5\u30f3\u30d7\u30eb&lt;\/h1&gt;<\/strong>\r\n<strong>        &lt;div class=\"mb-4\"&gt;<\/strong>\r\n<strong>            &lt;a<\/strong>\r\n<strong>                class=\"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded\"<\/strong>\r\n<strong>                hx-get=\"{{ route('alcoholic_beverage.create') }}\"<\/strong>\r\n<strong>                hx-target=\"#form\"&gt;<\/strong>\r\n<strong>                \u65b0\u898f\u4f5c\u6210<\/strong>\r\n<strong>            &lt;\/a&gt;<\/strong>\r\n<strong>        &lt;\/div&gt;<\/strong>\r\n<strong>        &lt;div class=\"flex gap-5\"&gt;<\/strong>\r\n<strong>            &lt;div class=\"flex-1\"&gt;<\/strong>\r\n<strong>                &lt;table<\/strong>\r\n<strong>                    id=\"table\"<\/strong>\r\n<strong>                    hx-get=\"{{ route('alcoholic_beverage.list') }}\"<\/strong>\r\n<strong>                    hx-trigger=\"load, reload\"<\/strong>\r\n<strong>                    class=\"border border-collapse w-full\"&gt;<\/strong>\r\n<strong>                &lt;\/table&gt;<\/strong>\r\n<strong>            &lt;\/div&gt;<\/strong>\r\n<strong>            &lt;div class=\"flex-1\"&gt;<\/strong>\r\n<strong>                &lt;div id=\"form\"&gt;&lt;\/div&gt;<\/strong>\r\n<strong>            &lt;\/div&gt;<\/strong>\r\n<strong>        &lt;\/div&gt;<\/strong>\r\n<strong>    &lt;\/div&gt;<\/strong>\r\n<strong>    &lt;script&gt;<\/strong>\r\n\r\n<strong>        document.addEventListener('htmx:configRequest', function(event) {<\/strong>\r\n\r\n<strong>            event.detail.headers['X-CSRF-TOKEN'] = '{{ csrf_token() }}'; \/\/ CSRF \u30c8\u30fc\u30af\u30f3\u3092\u30bb\u30c3\u30c8<\/strong>\r\n\r\n<strong>        });<\/strong>\r\n\r\n<strong>        document.addEventListener('htmx:afterRequest', (e) =&gt; { \/\/ Ajax \u30ea\u30af\u30a8\u30b9\u30c8\u304c\u5b9f\u884c\u3055\u308c\u305f\u3068\u304d<\/strong>\r\n\r\n<strong>            const shouldUpdateTable = e.target.id === 'form' || e.target.classList.contains('delete-button');<\/strong>\r\n\r\n<strong>            if(shouldUpdateTable === true) { \/\/ \u767b\u9332\u30fb\u66f4\u65b0\u30fb\u524a\u9664\u3057\u305f\u5834\u5408<\/strong>\r\n\r\n<strong>                const xhr = e.detail.xhr;<\/strong>\r\n<strong>                const status = xhr.getResponseHeader('X-Response-Status');<\/strong>\r\n\r\n<strong>                if(status === 'success') { \/\/ \u5b9f\u884c\u304c\u6210\u529f\u3057\u305f\u5834\u5408<\/strong>\r\n\r\n<strong>                    htmx.trigger('#table', 'reload'); \/\/ \u30c6\u30fc\u30d6\u30eb\u3092\u66f4\u65b0<\/strong>\r\n\r\n<strong>                }<\/strong>\r\n\r\n<strong>            }<\/strong>\r\n\r\n<strong>        });<\/strong>\r\n\r\n<strong>    &lt;\/script&gt;<\/strong>\r\n<strong>&lt;\/body&gt;<\/strong>\r\n<strong>&lt;\/html&gt;<\/strong><\/pre>\n<p>\u3061\u306a\u307f\u306b\u3001\u3053\u3053\u3067\u5148\u307b\u3069\u306e\u300c<strong>X-Response-Status<\/strong>\u300d\u30d8\u30c3\u30c0\u30fc\u3092\u53d6\u308a\u51fa\u3057\u3001\u5b9f\u884c\u304c\u6210\u529f\u3057\u305f\u306e\u304b\u5931\u6557\u3057\u305f\u306e\u304b\u3092\u5224\u5225\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>list \u306e\u30d3\u30e5\u30fc<\/h2>\n<p><strong>resources\/views\/alcoholic_beverage\/list.blade.php<\/strong><\/p>\n<div>\n<pre><strong>&lt;thead&gt;<\/strong>\r\n<strong>    &lt;tr&gt;<\/strong>\r\n<strong>        &lt;th class=\"border border-gray-500 bg-gray-100 p-1\"&gt;\u540d\u524d&lt;\/th&gt;<\/strong>\r\n<strong>        &lt;th class=\"border border-gray-500 bg-gray-100 p-1\"&gt;\u5ea6\u6570&lt;\/th&gt;<\/strong>\r\n<strong>        &lt;th class=\"border border-gray-500 bg-gray-100 p-1\"&gt;\u64cd\u4f5c&lt;\/th&gt;<\/strong>\r\n<strong>    &lt;\/tr&gt;<\/strong>\r\n<strong>&lt;\/thead&gt;<\/strong>\r\n<strong>&lt;tbody&gt;<\/strong>\r\n<strong>@foreach($alcoholic_beverages as $alcoholic_beverage)<\/strong>\r\n<strong>    &lt;tr&gt;<\/strong>\r\n<strong>        &lt;td class=\"border border-gray-500 p-3\"&gt;{{ $alcoholic_beverage-&gt;name }}&lt;\/td&gt;<\/strong>\r\n<strong>        &lt;td class=\"border border-gray-500 p-3\"&gt;{{ $alcoholic_beverage-&gt;alcohol_content }}&lt;\/td&gt;<\/strong>\r\n<strong>        &lt;td class=\"border border-gray-500 p-3 text-center w-48\"&gt;<\/strong>\r\n<strong>            &lt;a<\/strong>\r\n<strong>                class=\"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded mr-2\"<\/strong>\r\n<strong>                hx-get=\"{{ route('alcoholic_beverage.edit', ['alcoholic_beverage' =&gt; $alcoholic_beverage]) }}\"<\/strong>\r\n<strong>                hx-target=\"#form\"&gt;<\/strong>\r\n<strong>                \u7de8\u96c6<\/strong>\r\n<strong>            &lt;\/a&gt;<\/strong>\r\n<strong>            &lt;a<\/strong>\r\n<strong>                class=\"bg-red-500 hover:bg-red-700 text-white font-bold py-2 px-4 rounded delete-button\"<\/strong>\r\n<strong>                hx-delete=\"{{ route('alcoholic_beverage.destroy', ['alcoholic_beverage' =&gt; $alcoholic_beverage]) }}\"<\/strong>\r\n<strong>                hx-confirm=\"\u672c\u5f53\u306b\u524a\u9664\u3057\u307e\u3059\u304b\uff1f\"&gt;<\/strong>\r\n<strong>                \u524a\u9664<\/strong>\r\n<strong>            &lt;\/a&gt;<\/strong>\r\n<strong>        &lt;\/td&gt;<\/strong>\r\n<strong>    &lt;\/tr&gt;<\/strong>\r\n<strong>@endforeach<\/strong>\r\n<strong>&lt;\/tbody&gt;<\/strong><\/pre>\n<\/div>\n<\/div>\n<h2>create \u306e\u30d3\u30e5\u30fc<\/h2>\n<p><strong>resources\/views\/alcoholic_beverage\/create.blade.php<\/strong><\/p>\n<div>\n<pre><strong>&lt;form hx-post=\"{{ route('alcoholic_beverage.store') }}\" hx-target=\"this\" hx-swap=\"outerHTML\"&gt;<\/strong>\r\n<strong>    @csrf<\/strong>\r\n<strong>    &lt;div class=\"mb-3\"&gt;<\/strong>\r\n<strong>        &lt;input<\/strong>\r\n<strong>            type=\"text\"<\/strong>\r\n<strong>            name=\"name\"<\/strong>\r\n<strong>            class=\"border border-gray-500 p-3\"<\/strong>\r\n<strong>            placeholder=\"\u540d\u524d\"<\/strong>\r\n<strong>            value=\"{{ $name ?? '' }}\"&gt;<\/strong>\r\n<strong>        @if($errors-&gt;has('name'))<\/strong>\r\n<strong>            &lt;div class=\"text-red-500 p-1\"&gt;{{ $errors-&gt;first('name') }}&lt;\/div&gt;<\/strong>\r\n<strong>        @endif<\/strong>\r\n<strong>    &lt;\/div&gt;<\/strong>\r\n<strong>    &lt;div class=\"mb-3\"&gt;<\/strong>\r\n<strong>        &lt;input<\/strong>\r\n<strong>            type=\"text\" name=\"alcohol_content\"<\/strong>\r\n<strong>            class=\"border border-gray-500 p-3\"<\/strong>\r\n<strong>            placeholder=\"\u30a2\u30eb\u30b3\u30fc\u30eb\u5ea6\u6570\"<\/strong>\r\n<strong>            value=\"{{ $alcohol_content ?? '' }}\"&gt;<\/strong>\r\n<strong>        @if($errors-&gt;has('alcohol_content'))<\/strong>\r\n<strong>            &lt;div class=\"text-red-500 p-1\"&gt;{{ $errors-&gt;first('alcohol_content') }}&lt;\/div&gt;<\/strong>\r\n<strong>        @endif<\/strong>\r\n<strong>    &lt;\/div&gt;<\/strong>\r\n<strong>    &lt;div class=\"mb-3\"&gt;<\/strong>\r\n<strong>        &lt;button type=\"submit\" class=\"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded\"&gt;<\/strong>\r\n<strong>            \u4fdd\u5b58<\/strong>\r\n<strong>        &lt;\/button&gt;<\/strong>\r\n<strong>        @if(isset($status) &amp;&amp; $status === 'success')<\/strong>\r\n<strong>            &lt;div class=\"text-green-500 pt-2\"&gt;\u4fdd\u5b58\u3057\u307e\u3057\u305f&lt;\/div&gt;<\/strong>\r\n<strong>        @endif<\/strong>\r\n<strong>    &lt;\/div&gt;<\/strong>\r\n<strong>&lt;\/form&gt;<\/strong><\/pre>\n<\/div>\n<h2>edit \u306e\u30d3\u30e5\u30fc<\/h2>\n<p><strong>resources\/views\/alcoholic_beverage\/edit.blade.php<\/strong><\/p>\n<div>\n<pre><strong>&lt;form hx-post=\"{{ route('alcoholic_beverage.update', $alcoholic_beverage) }}\" hx-target=\"this\" hx-swap=\"outerHTML\"&gt;<\/strong>\r\n<strong>    @csrf<\/strong>\r\n<strong>    @method('put')<\/strong>\r\n<strong>    &lt;div class=\"mb-3\"&gt;<\/strong>\r\n<strong>        &lt;input<\/strong>\r\n<strong>            type=\"text\"<\/strong>\r\n<strong>            name=\"name\"<\/strong>\r\n<strong>            class=\"border border-gray-500 p-3\"<\/strong>\r\n<strong>            placeholder=\"\u540d\u524d\"<\/strong>\r\n<strong>            value=\"{{ $name ?? '' }}\"&gt;<\/strong>\r\n<strong>        @if($errors-&gt;has('name'))<\/strong>\r\n<strong>            &lt;div class=\"text-red-500 p-1\"&gt;{{ $errors-&gt;first('name') }}&lt;\/div&gt;<\/strong>\r\n<strong>        @endif<\/strong>\r\n<strong>    &lt;\/div&gt;<\/strong>\r\n<strong>    &lt;div class=\"mb-3\"&gt;<\/strong>\r\n<strong>        &lt;input<\/strong>\r\n<strong>            type=\"text\"<\/strong>\r\n<strong>            name=\"alcohol_content\"<\/strong>\r\n<strong>            class=\"border border-gray-500 p-3\"<\/strong>\r\n<strong>            placeholder=\"\u30a2\u30eb\u30b3\u30fc\u30eb\u5ea6\u6570\"<\/strong>\r\n<strong>            value=\"{{ $alcohol_content ?? '' }}\"&gt;<\/strong>\r\n<strong>        @if($errors-&gt;has('alcohol_content'))<\/strong>\r\n<strong>            &lt;div class=\"text-red-500 p-1\"&gt;{{ $errors-&gt;first('alcohol_content') }}&lt;\/div&gt;<\/strong>\r\n<strong>        @endif<\/strong>\r\n<strong>    &lt;\/div&gt;<\/strong>\r\n<strong>    &lt;div class=\"mb-3\"&gt;<\/strong>\r\n<strong>        &lt;button type=\"submit\" class=\"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded\"&gt;<\/strong>\r\n<strong>            \u4fdd\u5b58<\/strong>\r\n<strong>        &lt;\/button&gt;<\/strong>\r\n<strong>        @if(isset($status) &amp;&amp; $status === 'success')<\/strong>\r\n<strong>            &lt;div class=\"text-green-500 pt-2\"&gt;\u4fdd\u5b58\u3057\u307e\u3057\u305f&lt;\/div&gt;<\/strong>\r\n<strong>        @endif<\/strong>\r\n<strong>    &lt;\/div&gt;<\/strong>\r\n<strong>&lt;\/form&gt;<\/strong><\/pre>\n<\/div>\n<h1>\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u3092\u3064\u304f\u308b<\/h1>\n<p>\u6b21\u306b\u3001\u3053\u308c\u3082\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3067\u30bb\u30c3\u30c8\u3057\u305f\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\uff08<code>FormRequest<\/code>\uff09\u3092\u3064\u304f\u308a\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\n<pre><strong>php artisan make:request AlcoholicBeverageRequest<\/strong><\/pre>\n<p>\u3059\u308b\u3068\u3001\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u308b\u306e\u3067\u4e2d\u8eab\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<\/div>\n<p><strong>app\/Http\/Requests\/AlcoholicBeverageRequest.php<\/strong><\/p>\n<div>\n<pre><strong>&lt;?php\r\n\r\nnamespace App\\Http\\Requests;\r\n\r\nuse Illuminate\\Contracts\\Validation\\Validator;\r\nuse Illuminate\\Foundation\\Http\\FormRequest;\r\nuse Illuminate\\Http\\Exceptions\\HttpResponseException;\r\n\r\nclass AlcoholicBeverageRequest extends FormRequest\r\n{\r\n    \/**\r\n     * Determine if the user is authorized to make this request.\r\n     *\/\r\n    public function authorize(): bool\r\n    {\r\n        return true;\r\n    }\r\n\r\n    \/**\r\n     * Get the validation rules that apply to the request.\r\n     *\r\n     * @return array&lt;string, \\Illuminate\\Contracts\\Validation\\ValidationRule|array&lt;mixed&gt;|string&gt;\r\n     *\/\r\n    public function rules(): array\r\n    {\r\n        if($this-&gt;isMethod('put')) {\r\n\r\n            return [\r\n                'name' =&gt; 'required|unique:alcoholic_beverages,name,'.$this-&gt;alcoholic_beverage-&gt;id.'|max:255',\r\n                'alcohol_content' =&gt; 'required',\r\n            ];\r\n\r\n        }\r\n\r\n        return [\r\n            'name' =&gt; 'required|unique:alcoholic_beverages|max:255',\r\n            'alcohol_content' =&gt; 'required',\r\n        ];\r\n    }\r\n\r\n    \/\/ \u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u306b\u5931\u6557\u3057\u305f\u5834\u5408\u306f\u3001\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u305b\u305a view \u3092\u8fd4\u3059\r\n    protected function failedValidation(Validator $validator)\r\n    {\r\n        $view = '';\r\n        $data = [];\r\n\r\n        if($this-&gt;isMethod('post')) {\r\n\r\n            $view = 'alcoholic_beverage.create';\r\n            $data = [\r\n                'name' =&gt; $this-&gt;name,\r\n                'alcohol_content' =&gt; $this-&gt;alcohol_content,\r\n                'errors' =&gt; $validator-&gt;errors(),\r\n            ];\r\n\r\n        } else if($this-&gt;isMethod('put')) {\r\n\r\n            $view = 'alcoholic_beverage.edit';\r\n            $alcoholic_beverage = $this-&gt;route('alcoholic_beverage');\r\n            $data = [\r\n                'alcoholic_beverage' =&gt; $alcoholic_beverage,\r\n                'name' =&gt; $this-&gt;name,\r\n                'alcohol_content' =&gt; $this-&gt;alcohol_content,\r\n                'errors' =&gt; $validator-&gt;errors(),\r\n            ];\r\n\r\n        }\r\n\r\n        $response = response()-&gt;view($view, $data);\r\n\r\n        throw new HttpResponseException($response);\r\n    }\r\n\r\n    public function attributes()\r\n    {\r\n        return [\r\n            'name' =&gt; '\u304a\u9152\u306e\u540d\u524d',\r\n            'alcohol_content' =&gt; '\u30a2\u30eb\u30b3\u30fc\u30eb\u5ea6\u6570',\r\n        ];\r\n    }\r\n}<\/strong><\/pre>\n<p>\u3053\u306e\u4e2d\u3067\u91cd\u8981\u306a\u306e\u304c\u3001\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u306b\u901a\u904e\u3067\u304d\u306a\u304b\u3063\u305f\u5834\u5408\u306f\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306f\u300c<strong>\u3057\u306a\u3044<\/strong>\u300d\u90e8\u5206\u3067\u3059\u3002<\/p>\n<p>\u306a\u305c\u306a\u3089\u3001<code>htmx<\/code>\u306f\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u5148\u306e<code>HTML<\/code>\u3092\u30d5\u30a9\u30fc\u30e0\u3068\u5165\u308c\u66ff\u3048\u3066\u3057\u307e\u3046\u305f\u3081\u3001\u300c<strong>\u30da\u30fc\u30b8\u306e\u4e2d\u306b\u540c\u3058\u30da\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u308b<\/strong>\u300d\u3053\u3068\u306b\u306a\u3063\u3066\u3057\u307e\u3046\u304b\u3089\u3067\u3059\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001<code>failedValidation()<\/code>\u3092\u30aa\u30fc\u30d0\u30fc\u30e9\u30a4\u30c9\u3057\u3066\u3001\u5f37\u5236\u7684\u306b\u30d3\u30e5\u30fc\u3092\u8fd4\u3059\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3059\u3002\uff08\u8fd4\u3059\u5185\u5bb9\u306f\u767b\u9332 or \u66f4\u65b0\u30d5\u30a9\u30fc\u30e0\u306e<code>HTML<\/code>\u3067\u3059\uff09<\/p>\n<h1>\u30eb\u30fc\u30c8\u3092\u3064\u304f\u308b<\/h1>\n<p>\u3067\u306f\u3001\u6700\u5f8c\u306b\u30eb\u30fc\u30c8\u3067\u3059\u3002<\/p>\n<p><strong>routes\/web.php<\/strong><\/p>\n<\/div>\n<div>\n<pre><strong>use App\\Http\\Controllers\\AlcoholicBeverageController;<\/strong>\r\n\r\n\/\/ \u7701\u7565\r\n\r\n<strong>Route::prefix('alcoholic_beverage')-&gt;controller(AlcoholicBeverageController::class)-&gt;group(function(){<\/strong>\r\n\r\n<strong>    Route::get('\/', 'index')-&gt;name('alcoholic_beverage.index');<\/strong>\r\n<strong>    Route::get('\/list', 'list')-&gt;name('alcoholic_beverage.list');<\/strong>\r\n<strong>    Route::get('create', 'create')-&gt;name('alcoholic_beverage.create');<\/strong>\r\n<strong>    Route::post('\/', 'store')-&gt;name('alcoholic_beverage.store');<\/strong>\r\n<strong>    Route::get('{alcoholic_beverage}', 'show')-&gt;name('alcoholic_beverage.show');<\/strong>\r\n<strong>    Route::get('{alcoholic_beverage}\/edit', 'edit')-&gt;name('alcoholic_beverage.edit');<\/strong>\r\n<strong>    Route::put('{alcoholic_beverage}', 'update')-&gt;name('alcoholic_beverage.update');<\/strong>\r\n<strong>    Route::delete('{alcoholic_beverage}', 'destroy')-&gt;name('alcoholic_beverage.destroy');<\/strong>\r\n\r\n<strong>});<\/strong><\/pre>\n<\/div>\n<div>\n<h1>\u30c6\u30b9\u30c8\u3057\u3066\u307f\u308b<\/h1>\n<p>\u3067\u306f\u3001\u5b9f\u969b\u306b\u30c6\u30b9\u30c8\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u2757<br \/>\n\u307e\u305a\u30d6\u30e9\u30a6\u30b6\u3067\u300c<strong>https:\/\/******\/alcoholic_beverage<\/strong>\u300d\u3078\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12426\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/02\/htmx_laravel_crud_2.png\" alt=\"\" width=\"640\" height=\"463\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/02\/htmx_laravel_crud_2.png 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/02\/htmx_laravel_crud_2-300x217.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u3068\u3057\u3066\u767b\u9332\u3057\u305f\u30c7\u30fc\u30bf\u304c\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u3067\u306f\u3001\u300c<strong>\u65b0\u898f\u4f5c\u6210<\/strong>\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u3059\u308b\u3068\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12429\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/02\/htmx_laravel_crud_3.png\" alt=\"\" width=\"640\" height=\"342\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/02\/htmx_laravel_crud_3.png 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/02\/htmx_laravel_crud_3-300x160.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>\u306f\u3044\u2757<br \/>\n\u767b\u9332\u30d5\u30a9\u30fc\u30e0\u304c\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u3067\u306f\u3001\u307e\u305a\u306f\u3001\u4f55\u3082\u5165\u529b\u3057\u306a\u3044\u3067\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u304c\u52b9\u304f\u304b\u30c1\u30a7\u30c3\u30af\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12435\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/02\/htmx_laravel_crud_10.png\" alt=\"\" width=\"315\" height=\"269\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/02\/htmx_laravel_crud_10.png 315w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/02\/htmx_laravel_crud_10-300x256.png 300w\" sizes=\"auto, (max-width: 315px) 100vw, 315px\" \/><\/p>\n<p>\u306f\u3044\u2757<br \/>\n\u3046\u307e\u304f\u30a8\u30e9\u30fc\u304c\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u6b21\u306b\u3001\u30a6\u30a9\u30c3\u30ab\u306b\u95a2\u3059\u308b\u30c7\u30fc\u30bf\u3092\u5165\u529b\u3057\u3066\u300c<strong>\u4fdd\u5b58<\/strong>\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12428\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/02\/htmx_laravel_crud_4.png\" alt=\"\" width=\"314\" height=\"198\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/02\/htmx_laravel_crud_4.png 314w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/02\/htmx_laravel_crud_4-300x189.png 300w\" sizes=\"auto, (max-width: 314px) 100vw, 314px\" \/><\/p>\n<p>\u3069\u3046\u306a\u308b\u3067\u3057\u3087\u3046\u304b\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12427\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/02\/htmx_laravel_crud_5.png\" alt=\"\" width=\"640\" height=\"252\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/02\/htmx_laravel_crud_5.png 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/02\/htmx_laravel_crud_5-300x118.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>\u306f\u3044\u2757<br \/>\n\u767b\u9332\u3057\u305f\u30a6\u30a9\u30c3\u30ab\u304c\uff11\u756a\u76ee\u306b\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u307e\u305a\u306f\u6210\u529f\u3067\u3059\ud83d\ude04<\/p>\n<p>\u3067\u306f\u3001\u6b21\u306b\u300c<strong>\u30a6\u30a9\u30c3\u30ab<\/strong>\u300d\u306e\u300c<strong>\u7de8\u96c6<\/strong>\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u3092\u5185\u5bb9\u3092\u300c<strong>\u30d6\u30e9\u30f3\u30c7\u30fc<\/strong>\u300d<\/p>\n<p>\u3078\u5909\u66f4\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12431\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/02\/htmx_laravel_crud_6.png\" alt=\"\" width=\"311\" height=\"206\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/02\/htmx_laravel_crud_6.png 311w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/02\/htmx_laravel_crud_6-300x199.png 300w\" sizes=\"auto, (max-width: 311px) 100vw, 311px\" \/><\/p>\n<p>\u3046\u307e\u304f\u3044\u304f\u3067\u3057\u3087\u3046\u304b\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12432\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/02\/htmx_laravel_crud_7.png\" alt=\"\" width=\"640\" height=\"251\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/02\/htmx_laravel_crud_7.png 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/02\/htmx_laravel_crud_7-300x118.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>\u306f\u3044\u2757<br \/>\n\u3046\u307e\u304f\u5909\u66f4\u304c\u3067\u304d\u307e\u3057\u305f\u3002\ud83d\ude04<\/p>\n<p>\u3067\u306f\u3001\u524a\u9664\u3082\u884c\u3063\u3066\u307f\u307e\u3057\u3087\u3046\u3002<br \/>\n\u4eca\u5909\u66f4\u3057\u305f\u300c<strong>\u30d6\u30e9\u30f3\u30c7\u30fc<\/strong>\u300d\u306e\u524a\u9664\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12434\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/02\/htmx_laravel_crud_8.png\" alt=\"\" width=\"640\" height=\"251\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/02\/htmx_laravel_crud_8.png 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/02\/htmx_laravel_crud_8-300x118.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>\u3059\u308b\u3068\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12433\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/02\/htmx_laravel_crud_9.png\" alt=\"\" width=\"640\" height=\"250\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/02\/htmx_laravel_crud_9.png 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2024\/02\/htmx_laravel_crud_9-300x117.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>\u306f\u3044\u2757<br \/>\n\u30d6\u30e9\u30f3\u30c7\u30fc\u304c\u524a\u9664\u3055\u308c\u3066\u30d3\u30fc\u30eb\u304c\u4e00\u756a\u76ee\u306b\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u3059\u3079\u3066\u6210\u529f\u3067\u3059\ud83d\ude04<\/p>\n<\/div>\n<h1>\u4f7f\u3063\u3066\u307f\u305f\u611f\u60f3<\/h1>\n<p>\u30b3\u30f3\u30bb\u30d7\u30c8\u306f\u3068\u3066\u3082\u3044\u3044\u306e\u3067\u3001<code>HTML<\/code>\u306e\u5ef6\u9577\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u304c\u66f8\u3051\u308b\u306e\u306f\u30e1\u30ea\u30c3\u30c8\u3060\u3068\u611f\u3058\u307e\u3057\u305f\u3002<\/p>\n<p>\u305f\u3060\u3001\u3084\u306f\u308a\u5c11\u3057\u8fbc\u307f\u5165\u3063\u305f\u3053\u3068\u3092\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u7d50\u5c40<code>JavaScript<\/code>\u3067\u30b3\u30fc\u30c9\u3092\u66f8\u304b\u306a\u3051\u308c\u3070\u306a\u3089\u305a\u3001\u5b9f\u969b\u306e\u958b\u767a\u3067\u4f7f\u3044\u305f\u3044\u304b\u3068\u8a00\u3046\u3068\u300c<strong>\u3046\u30fc\u3093\u3001\u3069\u3046\u3060\u308d\u3046\u2026\ud83d\ude05<\/strong>\u300d\u3068\u3044\u3063\u305f\u5370\u8c61\u3067\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001<code>Laravel<\/code>\u3068\u306e\u9023\u643a\u306b\u3064\u3044\u3066\u3082\u3001\u901a\u5e38\u306e\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u5931\u6557\u6642\u306b\u5b9f\u884c\u3055\u308c\u308b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u304c\u4f7f\u3048\u306a\u3044\u305f\u3081\u3001\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u70b9\u3084\u3001\uff08<code>422<\/code>\u30b9\u30c6\u30fc\u30bf\u30b9\u30b3\u30fc\u30c9\u3092\u8fd4\u3059\u3068\u3001<code>DOM<\/code>\u304c\u66f4\u65b0\u3055\u308c\u306a\u3044\u305f\u3081\uff09\u72ec\u81ea\u30d8\u30c3\u30c0\u30fc\u3092\u7528\u610f\u3057\u3066\u305d\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u300c\u6210\u529f\u3057\u305f\u300d or \u300c\u5931\u6557\u3057\u305f\u300d\u3092\u5224\u5225\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u304b\u3063\u305f\u305f\u3081\u3001\u305d\u308c\u307b\u3069\u76f8\u6027\u304c\u3044\u3044\u3068\u306f\u8a00\u3048\u306a\u3044\u306e\u304b\u306a\ud83e\udd14\u3068\u3044\u3063\u305f\u611f\u60f3\u3067\u3059\u3002<\/p>\n<h1>\u4f01\u696d\u69d8\u3078\u306e\u3054\u63d0\u6848<\/h1>\n<p>\u4eca\u56de\u306f<code>htmx<\/code>\u3092\u4f7f\u7528\u3057\u3066\u958b\u767a\u3092\u3057\u3066\u307f\u307e\u3057\u305f\u304c\u3001\u305d\u3046\u3044\u3063\u305f\u300c<strong>\u307e\u3060\u6d78\u900f\u3057\u3066\u3044\u306a\u3044\u30c6\u30af\u30ce\u30ed\u30b8\u30fc<\/strong>\u300d\u304c\u5b9f\u969b\u306e\u958b\u767a\u306b\u4f7f\u3044\u3084\u3059\u3044\u306e\u304b or \u305d\u3046\u3067\u306a\u3044\u306e\u304b\u306e\u8abf\u67fb\u3092\u627f\u3063\u3066\u304a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3082\u3057\u305d\u3046\u3044\u3063\u305f\u4f5c\u696d\u3092\u3054\u5e0c\u671b\u3067\u3057\u305f\u3089\u3044\u3064\u3067\u3082\u304a\u6c17\u8efd\u306b\u3054\u76f8\u8ac7\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u304a\u5f85\u3061\u3057\u3066\u304a\u308a\u307e\u3059\u3002m(_ _)m<\/p>\n<h1>\u304a\u308f\u308a\u306b<\/h1>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4eca\u56de\u306f\u300c<strong>Laravel + htmx<\/strong>\u300d\u3067<code>CRUD<\/code>\u6a5f\u80fd\u3092\u3064\u304f\u3063\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u4e45\u3057\u3076\u308a\u306b\u65b0\u3057\u3044\u6280\u8853\u306b\u89e6\u308c\u308b\u3053\u3068\u304c\u3067\u304d\u305f\u306e\u3067\u697d\u3057\u304b\u3063\u305f\u53cd\u9762\u3001\u4eca\u5f8c\u958b\u767a\u3067\u5229\u7528\u3059\u308b\u304b\u3069\u3046\u304b\u306f\u3061\u3087\u3063\u3068\u672a\u77e5\u6570\u306a\u306e\u3067\u3001\u3082\u3057\u4eca\u5f8c\u3082\u3063\u3068<code>htmx<\/code>\u304c\u6d78\u900f\u3057\u3066\u304d\u305f\u3089\u305d\u306e\u3068\u304d\u306f\u3082\u3046\u4e00\u5ea6\u30c8\u30e9\u30a4\u3057\u3066\u307f\u3088\u3046\u304b\u306a\u3063\u3066\u30ab\u30f3\u30b8\u3067\u3059\u306d\u3002<\/p>\n<p>\u7686\u3055\u3093\u3082\u305c\u3072\u4e00\u5ea6<code>htmx<\/code>\u306b\u89e6\u308c\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u306d\u3002<\/p>\n<p>\u3067\u306f\u3067\u306f\u301c\u2757<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2173 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/no_24.png\" alt=\"\" width=\"300\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/no_24.png 300w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/no_24-281x300.png 281w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/>\u300c\u30d0\u30fc\u306b\u98f2\u307f\u306b\u884c\u3063\u305f\u3089<br \/>\n\u3069\u3046\u3059\u308c\u3070\u3053\u3053\u306e\u58f2\u4e0a\u304c\u4e0a\u304c\u308b\u3093\u3060\u308d\u3046\u3063\u3066<br \/>\n\u30de\u30fc\u30b1\u30bf\u30fc\u3054\u3063\u3053\u3057\u307e\u3059\uff08\u30c9\u7d20\u4eba\u3067\u3059\u304c\ud83d\ude02\uff09\u300d<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u3053\u306e\u9593\u30a8\u30c3\u30af\u30b9\uff08\u65e7Twitter\uff09\u3092\u898b\u3066\u3044\u305f\u3089\u3001\u3068\u3042\u308b\u77e5\u3089\u306a\u3044\u30c6\u30af\u30ce\u30ed\u30b8\u30fc\u306e\u8a71\u984c \u304c\u6d41\u308c\u3066\u304d\u307e\u3057\u305f\u3002 \u305d\u308c\u304c\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb htmx\uff08\u3048\u3044\u3061\u30fb\u3066\u3043\u30fc\u30fb\u3048 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.capilano-fw.com\/?p=12419\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;htmx + Laravel \u3067 CRUD \u3092\u4f5c\u3063\u3066\u307f\u308b&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":12439,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[257],"class_list":["post-12419","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-laravel","tag-htmx"],"_links":{"self":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/12419","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=12419"}],"version-history":[{"count":8,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/12419\/revisions"}],"predecessor-version":[{"id":12438,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/12419\/revisions\/12438"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/media\/12439"}],"wp:attachment":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12419"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12419"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12419"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}