{"id":297,"date":"2025-08-07T11:37:19","date_gmt":"2025-08-07T02:37:19","guid":{"rendered":"https:\/\/kyum.chu.jp\/wp\/?p=297"},"modified":"2025-10-03T10:08:06","modified_gmt":"2025-10-03T01:08:06","slug":"wordpress%e3%81%a7http%e3%83%aa%e3%82%af%e3%82%a8%e3%82%b9%e3%83%88%e8%a7%a3%e9%87%88%e3%81%95%e3%82%8c%e3%82%8b%e6%b5%81%e3%82%8c","status":"publish","type":"post","link":"https:\/\/achamaweb.tech\/?p=297","title":{"rendered":"WordPress\u3067http\u30ea\u30af\u30a8\u30b9\u30c8\u89e3\u91c8\u3055\u308c\u308b\u6d41\u308c"},"content":{"rendered":"\n<style>\n.inset-box {\n  width: 300px;\n  height: 60px;\n  padding: 20px;\n  background-color: #f0f0f0; \/* \u80cc\u666f\u3092\u8584\u3044\u30b0\u30ec\u30fc\u306b *\/\n  border-radius: 10px; \/* \u89d2\u3092\u4e38\u304f\u3057\u3066\u67d4\u3089\u304b\u3044\u5370\u8c61\u306b *\/\n  box-shadow:\n    inset 5px 5px 10px #bebebe, \/* \u53f3\u4e0b\u306e\u6697\u3044\u5f71 *\/\n    inset -5px -5px 10px #ffffff; \/* \u5de6\u4e0a\u306e\u660e\u308b\u3044\u5f71 *\/\n  text-align: center;\n}\n.button-secondary {\n  \/* \u57fa\u672c\u7684\u306a\u30b9\u30bf\u30a4\u30eb *\/\n  display: inline-block;\n  padding: 12px 24px;\n  border-radius: 8px;\n  font-size: 16px;\n  font-weight: bold;\n  text-decoration: none;\n  cursor: pointer;\n  margin:4px;\n  \n  \/* \u8272\u3068\u7acb\u4f53\u611f *\/\n  color: #fff;\n  background: linear-gradient(145deg, #a7bfe8, #6190e8); \/* \u30b0\u30e9\u30c7\u30fc\u30b7\u30e7\u30f3 *\/\n  border: none;\n  box-shadow:\n    6px 6px 12px #98b0d8, \/* \u53f3\u4e0b\u306e\u5f71 *\/\n    -6px -6px 12px #c0d8ff; \/* \u5de6\u4e0a\u306e\u30cf\u30a4\u30e9\u30a4\u30c8 *\/\n  transition: all 0.2s ease;\n}\n\n.button-secondary:hover {\n  transform: translateY(-2px); \/* \u30db\u30d0\u30fc\u3067\u5c11\u3057\u6d6e\u304d\u4e0a\u304c\u308b *\/\n  box-shadow:\n    8px 8px 16px #98b0d8,\n    -8px -8px 16px #c0d8ff;\n}\n\n.button-secondary:active {\n  transform: translateY(0); \/* \u30af\u30ea\u30c3\u30af\u3067\u5143\u306b\u623b\u308b *\/\n  box-shadow:\n    inset 4px 4px 8px #98b0d8, \/* \u62bc\u3057\u305f\u3088\u3046\u306b\u898b\u3048\u308b\u5f71 *\/\n    inset -4px -4px 8px #c0d8ff;\n}\n<\/style>\n\u8868\u793a<br>\n<form id=\"kurapost-search-form\" method=\"get\" action=\"http:\/\/localhost\/naniaicom\/naniai\/?page_id=15956\" class=\"inset-box\">\n    <div class=\"search-input-group\">\n        <label for=\"search_email\">\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9<\/label>\n        <input type=\"email\" id=\"search_email\" name=\"search_email\" placeholder=\"\u691c\u7d22\u3059\u308b\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\">\n        <button type=\"submit\" id=\"search_button\" class=\"button button-secondary\">\u691c\u7d22<\/button>\n    <\/div>\n<\/form>\n\n\n\n<p class=\"wp-block-paragraph\">\u30ea\u30af\u30a8\u30b9\u30c8\u6587\u306f<br>wp-includes\/class-wp-query.php<br>\u3067\u89e3\u6790\u3055\u308c\u3001\u89e3\u6790\u7d50\u679c\u306f \u4ee5\u4e0b\u3067\u53d6\u5f97<br>$request = request();<br>\u5185\u5bb9<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"745\" src=\"https:\/\/kyum.chu.jp\/wp\/wp-content\/uploads\/2025\/08\/image-2-1024x745.png\" alt=\"\" class=\"wp-image-622\" srcset=\"https:\/\/achamaweb.tech\/wp-content\/uploads\/2025\/08\/image-2-1024x745.png 1024w, https:\/\/achamaweb.tech\/wp-content\/uploads\/2025\/08\/image-2-300x218.png 300w, https:\/\/achamaweb.tech\/wp-content\/uploads\/2025\/08\/image-2-768x558.png 768w, https:\/\/achamaweb.tech\/wp-content\/uploads\/2025\/08\/image-2-1536x1117.png 1536w, https:\/\/achamaweb.tech\/wp-content\/uploads\/2025\/08\/image-2.png 1642w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">METHOD(GET,POST)\u306f \u4ee5\u4e0b\u3067\u53d6\u5f97<br>$httpMethod = $request->method();<br><strong>\u88dc\u8db3<\/strong><br>HTML\u30d5\u30a9\u30fc\u30e0\u306f\u901a\u5e38<code>GET<\/code>\u307e\u305f\u306f<code>POST<\/code>\u3057\u304b\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u306a\u3044\u3002Laravel\u3067\u306f\u3001<code>PUT<\/code>\u3001<code>PATCH<\/code>\u3001<code>DELETE<\/code>\u306a\u3069\u306eHTTP\u30e1\u30bd\u30c3\u30c9\u3092\u30d5\u30a9\u30fc\u30e0\u3067\u4f7f\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u3001<strong>\u30e1\u30bd\u30c3\u30c9\u30b9\u30d7\u30fc\u30d5\u30a3\u30f3\u30b0<\/strong>\uff08\u507d\u88c5\uff09\u3068\u3044\u3046\u6280\u8853\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u5834\u5408\u3001Laravel\u306f\u30d5\u30a9\u30fc\u30e0\u306b\u57cb\u3081\u8fbc\u307e\u308c\u305f\u975e\u8868\u793a\u30d5\u30a3\u30fc\u30eb\u30c9<code>_method<\/code>\u306e\u5024\u3092\u8aad\u307f\u53d6\u3063\u3066\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u30e1\u30bd\u30c3\u30c9\u3092\u4e0a\u66f8\u304d\u3057\u3066\u3044\u308b\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30ea\u30af\u30a8\u30b9\u30c8Form<\/h3>\n\n\n\n<pre class=\"wp-block-code has-cyan-bluish-gray-background-color has-background has-small-font-size\"><code>\n  &lt;form id=\"kurapost-search-form\" method=\"get\" action=\"http:\/\/localhost\/naniaicom\/naniai\/?page_id=15956\"&gt;\n    &lt;div class=\"search-input-group\"&gt;\n      &lt;label for=\"search_email\"&gt;\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9&lt;\/label&gt;\n      &lt;input type=\"email\" id=\"search_email\" name=\"search_email\" placeholder=\"\u691c\u7d22\u3059\u308b\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\"&gt;\n      &lt;button type=\"submit\" id=\"search_button\" class=\"button button-secondary\"&gt;\u691c\u7d22&lt;\/button&gt;\n    &lt;\/div&gt;\n  &lt;\/form&gt;\n<\/code><\/pre>\n\n\n\n<p class=\"has-small-font-size wp-block-paragraph\">\u30ea\u30af\u30a8\u30b9\u30c8\u6587<br><strong>GET https:\/\/kyum.chu.jp\/wp\/?page_id=15956&amp;search_email=&#8221;info@kyum.chu.jp&#8221;<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8868\u793a \u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9 \u691c\u7d22 \u30ea\u30af\u30a8\u30b9\u30c8\u6587\u306fwp-includes\/class-wp-query.php\u3067\u89e3\u6790\u3055\u308c\u3001\u89e3\u6790\u7d50\u679c\u306f \u4ee5\u4e0b\u3067\u53d6\u5f97$request = request();\u5185\u5bb9 METHOD(GET,POST)\u306f  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[16],"tags":[],"class_list":["post-297","post","type-post","status-publish","format-standard","hentry","category-laravel"],"acf":[],"_links":{"self":[{"href":"https:\/\/achamaweb.tech\/index.php?rest_route=\/wp\/v2\/posts\/297","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/achamaweb.tech\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/achamaweb.tech\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/achamaweb.tech\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/achamaweb.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=297"}],"version-history":[{"count":7,"href":"https:\/\/achamaweb.tech\/index.php?rest_route=\/wp\/v2\/posts\/297\/revisions"}],"predecessor-version":[{"id":624,"href":"https:\/\/achamaweb.tech\/index.php?rest_route=\/wp\/v2\/posts\/297\/revisions\/624"}],"wp:attachment":[{"href":"https:\/\/achamaweb.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=297"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/achamaweb.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=297"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/achamaweb.tech\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=297"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}