{"id":69,"date":"2022-03-24T17:44:06","date_gmt":"2022-03-24T08:44:06","guid":{"rendered":"https:\/\/shirakawa.weblike.jp\/blog-page\/?p=69"},"modified":"2025-12-21T13:39:00","modified_gmt":"2025-12-21T04:39:00","slug":"html-css-php%e3%81%ae%e7%b7%b4%e7%bf%92-%e5%ae%9f%e8%b7%b5-%e9%9b%91%e5%a4%9a%e3%81%aa%e8%a8%98%e9%8c%b2","status":"publish","type":"post","link":"https:\/\/shirakawa.weblike.jp\/blog-page\/2022\/03\/24\/html-css-php%e3%81%ae%e7%b7%b4%e7%bf%92-%e5%ae%9f%e8%b7%b5-%e9%9b%91%e5%a4%9a%e3%81%aa%e8%a8%98%e9%8c%b2\/","title":{"rendered":"HTML\/CSS\/PHP\u306e\u7df4\u7fd2 \u5b9f\u8df5 \u96d1\u591a\u306a\u8a18\u9332"},"content":{"rendered":"<p>CSS\u306f\u7121\u304f\u3068\u3082\u3088\u3044\u5834\u5408\u3082(\u30b5\u30fc\u30d0\u5074\u3060\u3057)\u3002WordPress\u3092\u4f7f\u3063\u3066\u30d6\u30ed\u30b0\u3084EC\u30b5\u30a4\u30c8\u4f5c\u6210\u3082\u3044\u3044\u304c\u3001<br \/>\n\u3053\u308c\u306f\u3053\u308c\u3067\u57fa\u672c\u3060\u3051\u3067\u3082\u5e73\u884c\u3057\u3066\u3084\u3063\u3066\u304a\u304f\u304b\u306a\u3002WordPress\u306e\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u306b\u306fJavaScript<br \/>\n\u3088\u308a\u3082\u5fc5\u8981\u306a\u3088\u3046\u3060\u3057\u3002<br \/>\n\u7df4\u7fd2\u5834<br \/>\nhttp:\/\/slack150memo.blog.example.com\/homepage\/ (\u81ea\u5206PC\u306e\u30ed\u30fc\u30ab\u30eb\u30a2\u30c9\u30ec\u30b9)<br \/>\n\u30a8\u30c7\u30a3\u30bf<br \/>\n<a href=\"https:\/\/vscode.dev\/\">https:\/\/vscode.dev\/<\/a><br \/>\nEmacs PHP Mode\u30e6\u30fc\u30b6\u30fc\u30de\u30cb\u30e5\u30a2\u30eb (Draft) (emacs php-mode\u3001\u3067\u30b0\u30b0\u3063\u305f)<br \/>\n<a href=\"https:\/\/qiita.com\/tadsan\/items\/a76768439869f00a4e89\">https:\/\/qiita.com\/tadsan\/items\/a76768439869f00a4e89<\/a><br \/>\n(\u3069\u30fc\u3082\u4eca\u306f\u305d\u3053\u307e\u3067\u9811\u5f35\u308b\u6c17\u306b\u306a\u308c\u306a\u3044\u306a\u3042\u3002\u56f0\u3063\u305f\u3002\u4eca\u306f\u88dc\u5b8c\u304c\u4fbf\u5229\u3067VSCode\u4f7f\u3063\u3066\u308b\u3051\u3069\u3001<br \/>\n\\JS\u3082PHP\u3082\u6163\u308c\u305f\u3089\u3044\u3065\u308c\u306fEmacs\u306b\u623b\u3063\u3066\u3044\u304f\u6c17\u304c\u3059\u308b)<br \/>\n\u3053\u3063\u3061\u3067Inst\u3057\u3066Emacs\u306b\u623b\u3063\u305f\u3002(2023.07)\u3001web-mode\u3082\u4ee5\u4e0b\u3067Inst\u3057\u305f\u3002(2024.09)<br \/>\n<a href=\"https:\/\/shirakawa.weblike.jp\/blog-page\/2023\/07\/18\/emacs-php-mode\/\">https:\/\/shirakawa.weblike.jp\/blog-page\/2023\/07\/18&#8230;<\/a><\/p>\n<p>\/*************************************************************************************\/<br \/>\n\u6c17\u3065\u3051\u3070\u30d7\u30ed\u4e26\u307fPHP(\u53c2\u8003\u66f8\u7c4d\uff11)<br \/>\nChapter 1 \u3044\u308d\u3044\u308d\u6e96\u5099\u7de8 (2022.03)<br \/>\n(\u81ea\u5206\u306e\u7df4\u7fd2\u74b0\u5883\u306fLinux\u3060\u3057\u3001\u65e2\u306bLAMP\u74b0\u5883\u3082\u5165\u308c\u3066\u308b <a href=\"https:\/\/shirakawa.weblike.jp\/blog-page\/2022\/03\/13\/wordpress%e3%82%92%e5%85%a5%e3%82%8c%e3%82%8b\/\">https:\/\/shirakawa.weblike.jp\/blog-page\/2022\/03\/13&#8230;<\/a> \u306e\u3067\u4e0d\u8981\u3002.htaccess\u3067utf8\u8a2d\u5b9a\u3082\u5fc5\u8981\u306a\u304b\u3063\u305f)<br \/>\nChapter 2 \u304a\u5e97\u306e\u30b9\u30bf\u30c3\u30d5\u306f\u8ab0\uff1f<br \/>\n2-1 \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u6210\u3057\u3088\u3046\uff01\uff1a<br \/>\n$ mkdir \/myproj\/slack150memo\/homepage<br \/>\n$ sudo elvis \/etc\/httpd\/extra\/httpd-vhost.conf (\u4ee5\u4e0b\u3092\u8ffd\u52a0)<br \/>\n\\&lt;Directory &#8220;\/myproj\/slack150memo\/homepage&#8221;&gt;<br \/>\n\\ AllowOverride None<br \/>\n\\ Options None<br \/>\n\\ Require all granted<br \/>\n\\&lt;\/Directory&gt;<br \/>\n\\&lt;Directory &#8220;\/myproj\/slack150memo\/phpMyAdmin&#8221;&gt;<br \/>\n\\ AllowOverride None<br \/>\n\\ Options None<br \/>\n\\ Require all granted<br \/>\n\\&lt;\/Directory&gt;<br \/>\n$ grep hosts \/etc\/nsswitch.conf<br \/>\nhosts: files dns<br \/>\n$ sudo ifconfig lo 127.0.0.1 netmask 255.0.0.0<br \/>\n$ sudo sh \/etc\/rc.d\/rc.httpd start<br \/>\n$ sudo sh \/etc\/rc.d\/rc.mysqld start<br \/>\n\u30d6\u30e9\u30a6\u30b6\u3067 http:\/\/slack150memo.blog.example.com\/phpMyAdmin\/ (\u81ea\u5206PC\u306e..)\u306b\u30a2\u30af\u30bb\u30b9\u3002<br \/>\n\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u300cshop\u300d\u3092utf8_unicode_ci\u3067\u4f5c\u6210\u3057\u305f\u3002<br \/>\n2-2 \u30b9\u30bf\u30c3\u30d5\u3092\u8ffd\u52a0\u3059\u308b\u753b\u9762\u3092\u4f5c\u308d\u3046\uff01\uff1a<br \/>\nhttp:\/\/slack150memo.blog.example.com\/homepage\/staff\/staff_add.php (\u81ea\u5206PC\u306e..)<br \/>\n\u5b9f\u884c\u3057\u305f\u3002\u3053\u3053\u307e\u3067\u306fhtml\u306e\u307f\u3002<br \/>\n2-3 \u30b9\u30bf\u30c3\u30d5\u60c5\u5831\u306e\u5165\u529b\u30c1\u30a7\u30c3\u30af\u753b\u9762\u3092\u4f5c\u308d\u3046\uff01\uff1a<br \/>\n(php\u3066\u4e00\u90e8\u306e\u307f\u9593\u9055\u3063\u3066\u3044\u3066\u3082\u9014\u4e2d\u307e\u3067\u5b9f\u884c\u3059\u308b\u3053\u3068\u306a\u304f\u5168\u6ec5?\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u3060\u304c\u30a4\u30f3\u30bf\u30d7\u30ea\u30bf<br \/>\n\\\u3067\u306f\u306a\u3044\u304b\u3089?\u3002&lt;form&gt;\u3092print\u3057\u5fd8\u308c\u305f\u3060\u3051\u3067\u307e\u3063\u767d\u3002\u305d\u3053\u306f\u901a\u3089\u306a\u3044\u306e\u306b\u3002\u30b3\u30f3\u30d1\u30a4\u30e9\u306e\u69d8\u306a<br \/>\n\\\u30c1\u30a7\u30c3\u30af\u7528\u306e\u30c4\u30fc\u30eb\u304c\u3042\u308a\u305d\u3046\u3002\u30b0\u30b0\u308b\u304b)<br \/>\n(\u30bf\u30b0\u306e\u5c5e\u6027\u3092\u64cd\u4f5c\u3067\u304d\u308b\u306e\u306fJS\u3060\u3051\u304b\u3068\u601d\u3063\u3066\u3044\u305f\u3089\u3001value=&#8221;&#8216;.$staff_name.'&#8221;\u3063\u3066\u4f55\u3060\u3088php<br \/>\n\\\u3082\u3067\u304d\u308b\u306e\u304b\u3002\u9055\u3063\u305f\u52d8\u9055\u3044\u3001text\u7de8\u96c6\u3057\u3066\u308b\u3060\u3051\u3002\u305d\u308a\u3083Perl\u3067\u3082\u3067\u304d\u308b\u304b\u3002\u5909\u6570\u3068\u56fa\u5b9a\u306f&#8217;.&#8217;<br \/>\n\\\u3067\u3064\u306a\u3052\u308b\u3089\u3057\u3044)<br \/>\n2-4 \u60c5\u5831\u306e\u8ffd\u52a0\u3092\u5b8c\u4e86\u3055\u305b\u308b\u753b\u9762\u3092\u4f5c\u308d\u3046\uff01\uff1a<br \/>\n$dsn = &#8216;mysql:dbname=shop; host=localhost; charset=utf8&#8217;;<br \/>\n(DB\u30a2\u30af\u30bb\u30b9\u306e\uff11\u884c\u76ee\u3067\u306f\u8981\u6ce8\u610f\u3002=\u524d\u5f8c\u306b\u534a\u89d2\u30b9\u30da\u30fc\u30b9\u3092\u5165\u308c\u308b\u3068\u5931\u6557\u3002\u3053\u308c\u306f\u30cf\u30de\u308b)<br \/>\n2-5 \u60c5\u5831\u306e\u8ffd\u52a0\u3092\u5b8c\u4e86\u3055\u305b\u308b\u753b\u9762\u3092\u4f5c\u308d\u3046\uff01\uff1a<br \/>\n2-6 \u30b9\u30bf\u30c3\u30d5\u60c5\u5831\u306e\u4fee\u6b63\u753b\u9762\u3092\u4f5c\u308d\u3046\uff01\uff1a<br \/>\n2-7 \u597d\u304d\u306a\u753b\u9762\u306b\u5206\u5c90\u30b8\u30e3\u30f3\u30d7\u3055\u305b\u3088\u3046\uff01\uff1a<br \/>\n2-8 \u30b9\u30bf\u30c3\u30d5\u306e\u524a\u9664\u753b\u9762\u3068\u53c2\u7167\u753b\u9762\u3092\u4f5c\u308d\u3046\uff01\uff1a<br \/>\nChapter 3 \u304a\u5e97\u306b\u5546\u54c1\u3092\u4e26\u3079\u3088\u3046\uff01(2022.04)<br \/>\n3-1 \u5546\u54c1\u3092\u8ffd\u52a0\u3059\u308b\u753b\u9762\u3092\u4f5c\u308d\u3046\uff01\uff1a<br \/>\nhttp:\/\/slack150memo.blog.example.com\/homepage\/product\/pro_add.php (\u81ea\u5206PC\u306e..)<br \/>\n(DB\u3067VARCHAR\u306e\u521d\u671f\u5024\u306b\u4f55\u3082\u5165\u308c\u306a\u3044\u3068INSERT_INTO\u3067\u30a8\u30e9\u30fc\u306b\u306a\u308b\u3002DB\u8a2d\u5b9a\u3067NULL\u306b\u3057\u305f)<br \/>\n(\u6b63\u898f\u8868\u73fe\u306e&#8217;+&#8217;\u306f\u76f4\u524d\u306e\u6587\u5b57\u306e\uff11\u56de\u4ee5\u4e0a\u306e\u7e70\u8fd4\u3057)<br \/>\n(chmod a+rwx homepage\/product\/gazou \u304b chown apache \u3057\u306a\u3044\u3068file\u3092DL\u3067\u304d\u306a\u3044)<br \/>\n3-2 \u307b\u304b\u306e\u753b\u9762\u3092\u4e00\u6c17\u306b\u4f5c\u3063\u3061\u3083\u304a\u3046\uff01\uff1a<br \/>\n3-3 \u30ef\u30af\u30ef\u30af\u266a \u5546\u54c1\u306e\u753b\u50cf\u3092\u8ffd\u52a0\u3057\u307e\u3057\u3087\u3046\uff01\uff1a<br \/>\nChapter 4 \u95a2\u4fc2\u8005\u4ee5\u5916\u7acb\u3061\u5165\u308a\u7981\u6b62\uff01<br \/>\n4-1 \u30ed\u30b0\u30a4\u30f3\u753b\u9762\u3092\u4f5c\u308d\u3046\uff01\uff1a<br \/>\nhttp:\/\/slack150memo.blog.example.com\/homepage\/staff_login\/staff_login.html (\u81ea\u5206PC\u306e..)<br \/>\n4-2 \u30e6\u30fc\u30b6\u30fc\u8a8d\u8a3c\u306e\u4ed5\u7d44\u307f\u3092\u4f5c\u308d\u3046\uff01\uff1a<br \/>\n4-3 \u30ed\u30b0\u30a2\u30a6\u30c8\u753b\u9762\u3092\u4f5c\u308d\u3046\uff01\uff1a<br \/>\nhttps:\/\/www.php.net\/manual\/ja\/function.session-name<br \/>\nsession_name() \u95a2\u6570\u306f\u3001 \u30bb\u30c3\u30b7\u30e7\u30f3\u306e\u72b6\u614b\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002 \u3053\u308c\u3088\u308a\u524d\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u306f\u3001 \u30af\u30c3\u30ad\u30fc \u306e\u72b6\u614b\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3060\u3051\u3067\u3057\u305f\u3002 \u305d\u306e\u305f\u3081\u3001\u53e4\u3044 session_name() \u95a2\u6570\u306f session_start() \u95a2\u6570\u306e\u5f8c\u306b session_name() \u95a2\u6570\u3092\u3092\u547c\u3073\u51fa\u3059\u3053\u3068\u3092\u8a31\u3057\u3066 \u3057\u307e\u3063\u3066\u304a\u308a\u3001\u305d\u308c\u304c PHP \u306e\u30af\u30e9\u30c3\u30b7\u30e5\u3084\u4e0d\u5177\u5408\u3092\u8d77\u3053\u3059\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3057\u305f\u3002<br \/>\nhttps:\/\/www.php.net\/manual\/ja\/function.session-destroy.php<br \/>\n\u8b66\u544a \u3059\u3050\u306b\u30bb\u30c3\u30b7\u30e7\u30f3\u3092\u524a\u9664\u3057\u3066\u3057\u307e\u3046\u3068\u3001 \u671b\u307e\u306a\u3044\u7d50\u679c\u304c\u8d77\u3053\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002 \u3001\u3001\u3001\u3053\u3046\u3057\u305f\u4e8b\u8c61\u3092\u9632\u3050\u305f\u3081\u306b\u306f\u3001 $_SESSION \u306b\u524a\u9664\u6642\u306e\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u3092\u8a2d\u5b9a\u3057\u3001 \u305d\u308c\u3088\u308a\u5f8c\u306e\u30a2\u30af\u30bb\u30b9\u3092\u62d2\u5426\u3059\u308b\u3088\u3046\u306b\u3057\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002 \u3082\u3057\u304f\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u540c\u6642\u306b \u8907\u6570\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u53d7\u3051\u4ed8\u3051\u306a\u3044\u3088\u3046\u306b\u3059\u308b\u3053\u3068\u3067\u3059\u3002<br \/>\nChapter 5 \u904a\u3073\u3067\u30b9\u30ad\u30eb\u30a2\u30c3\u30d7\uff01<br \/>\n5-1 \u5b63\u7bc0\u306e\u91ce\u83dc\u30b5\u30a4\u30c8\u3092\u4f5c\u308d\u3046\uff01\uff1a<br \/>\n5-2 \u3042\u306e\u661f\u306f\uff01\uff1a (\u53c2\u8003\u66f8\u7c4d\uff11)<br \/>\n5-3 \u5b66\u751f\u306b\u623b\u308d\u3046\uff01\uff1a (\u53c2\u8003\u66f8\u7c4d\uff11)<br \/>\n5-4 \u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u697d\u3057\u3055\u306e\u771f\u9ac4\uff01\uff1a<br \/>\n(\u5236\u5fa1\u6587\u306fC\u306b\u540c\u3058\u3001\u95a2\u6570\u306fJS\u306b\u540c\u3058\u3001\u5909\u6570\u3084\u6587\u5b57\u5217\u306e\u6271\u3044\u306fPerl\u306b\u8fd1\u3044\u3001\u3068\u3044\u3046\u611f\u3058?)<br \/>\n5-5 \u904a\u3073\u3067\u8eab\u306b\u4ed8\u3051\u305f\u6280\u8853\u3092\u4f7f\u3063\u3066\uff01\uff1a<br \/>\nChapter 6 \u61a7\u308c\u306e\u30b7\u30e7\u30c3\u30d4\u30f3\u30b0\u30ab\u30fc\u30c8\u3092\u4f5c\u308d\u3046\uff01<br \/>\n6-1 \u307e\u305a\u306f\u5546\u54c1\u3092\u8868\u793a\u3057\u3088\u3046\uff01\uff1a<br \/>\nhttp:\/\/slack150memo.blog.example.com\/homepage\/shop\/shop_list.php (\u81ea\u5206PC\u306e..)<br \/>\n6-2 \u300c\u30ab\u30fc\u30c8\u306b\u5165\u308c\u308b\u300d\u6a5f\u80fd\u3092\u4f5c\u308d\u3046\uff01\uff1a<br \/>\n(VSCode\u3067&lt;?php\uff5e?&gt;\u306e\u9593\u3092\u66f8\u3044\u3066\u3044\u305f\u3089\u3001foreach\u3082\u88dc\u5b8c\u3055\u308c\u305f\u3002PHP\u3082\u88dc\u5b8c\u3067\u304d\u308b\u306e\u304b\u3002\u3068\u306f\u3044\u3048<br \/>\n\\\u30b3\u30d4\u30da\u3060\u3051\u3067\u4f5c\u3063\u3066\u3044\u305f\u3089\u88dc\u5b8c\u306f\u3044\u3089\u306a\u3044\u3068\u3044\u3046\u3001\u3001\u304c\u3001\u521d\u3081\u3066\u4f7f\u3046\u30bf\u30b0\u3068\u304b\u30b3\u30de\u30f3\u30c9\u306b\u306f\u52b9\u679c\u5927)<br \/>\n6-3 \u30ab\u30fc\u30c8\u306e\u4e2d\u8eab\u3092\u898b\u308b\u753b\u9762\u3092\u4f5c\u308d\u3046\uff01\uff1a<br \/>\n\u3053\u308c\u304c\u5fc5\u6bba\u6280var_dump()\u3060\uff01(WordPress\u306e\u30c7\u30d0\u30c3\u30b0\u3067\u3082\u7d50\u69cb\u4f7f\u3046\u3089\u3057\u3044)<br \/>\n6-4 \u30ab\u30fc\u30c8\u3092\u7a7a\u306b\u3059\u308b\u753b\u9762\u3092\u4f5c\u308d\u3046\uff01\uff1a<br \/>\n6-5 \u5546\u54c1\u306e\u8cfc\u5165\u6570\u3092\u5909\u3048\u308b\u6a5f\u80fd\u3092\u8ffd\u52a0\u3057\u3088\u3046\uff01\uff1a<br \/>\n6-6 \u30ab\u30fc\u30c8\u304b\u3089\u5546\u54c1\u3092\u524a\u9664\u3059\u308b\u6a5f\u80fd\u3092\u4f5c\u308d\u3046\uff01\uff1a<br \/>\n6-7 \u5927\u5207\u306a\u304a\u5ba2\u69d8\u306e\u305f\u3081\u306b\uff01\uff1a<br \/>\nChapter 7 \u6ce8\u6587\u3092\u53d7\u3051\u4ed8\u3051\u3088\u3046\uff01<br \/>\n7-1 \u6ce8\u6587\u30d5\u30a9\u30fc\u30e0\u306e\u753b\u9762\u3092\u4f5c\u308d\u3046\uff01\uff1a<br \/>\n7-2 \u6ce8\u6587\u30c1\u30a7\u30c3\u30af\u306e\u753b\u9762\u3092\u4f5c\u308d\u3046\uff01\uff1a<br \/>\n7-3 \u6ce8\u6587\u767b\u9332\u306e\u753b\u9762\u3092\u4f5c\u308d\u3046\uff01\uff1a<br \/>\n(mb_send_mail()\u5b9f\u884c\u3057\u3066\u3082\u30e1\u30fc\u30eb\u98db\u3070\u306a\u3044\u306a\u3001\u3068\u601d\u3063\u305f\u3089PHP\u306fLinux\u306e\u30e1\u30fc\u30eb\u30b7\u30b9\u30c6\u30e0\u4f7f\u3063\u3066\u308b\u304b\u3001<br \/>\n\\\u305d\u308a\u3083\u305d\u3046\u304b\u3002\u3053\u3063\u3061\u306b\u307e\u3068\u3081\u308b)<br \/>\n<a href=\"https:\/\/shirakawa.weblike.jp\/blog-page\/2022\/04\/26\/mta%e3%81%8b%e3%82%89%e3%82%b5%e3%83%bc%e3%83%90%e3%83%ac%e3%82%b9%e3%81%a7%e3%83%a1%e3%83%bc%e3%83%ab%e9%80%81%e4%bf%a1\/\">https:\/\/shirakawa.weblike.jp\/blog-page\/2022\/04\/26&#8230;<\/a><br \/>\n7-4 \u6ce8\u6587\u60c5\u5831\u3092\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u8ffd\u52a0\u3057\u3088\u3046\uff01\uff1a<br \/>\nhttp:\/\/slack150memo.blog.example.com\/phpMyAdmin\/ (\u81ea\u5206PC\u306e..)\u30a2\u30af\u30bb\u30b9\u3001\u30c6\u30fc\u30d6\u30eb\u8ffd\u52a0\u3002<br \/>\n(\u90f5\u4fbf\u756a\u53f7\u30925\u6841\u4ee5\u4e0a\u306b\u3067\u304d\u3066\u3057\u307e\u3046\u3002DB\u306bINSERT_INTO\u3059\u308b\u6642\u306b\u30a8\u30e9\u30fc\u306b\u306a\u308b)<br \/>\n7-5 \u3082\u3063\u3068\u5b89\u5168\u306b\u3057\u3088\u3046\uff01\uff1a<br \/>\nChapter 8 Excel\u3067\u6ce8\u6587\u7ba1\u7406\u3057\u305f\u3044\uff01(2022.05)<br \/>\n8-1 \u6ce8\u6587\u30c7\u30fc\u30bf\u3092\u65e5\u4ed8\u3067\u9078\u3079\u308b\u3088\u3046\u306b\u3057\u3088\u3046\uff01\uff1a<br \/>\nhttp:\/\/slack150memo.blog.example.com\/homepage\/staff_login\/staff_top.php (\u81ea\u5206PC\u306e..)<br \/>\n(year\/month\/day\u3092\u95a2\u6570\u5316\u3059\u308b\u6642\u306b\u3001\u305d\u306e\u307e\u307eprint\u7121\u3057\u3067\u95a2\u6570\u5316\u3057\u3066\u52d5\u304b\u305d\u3046\u3068\u3057\u3066\u3057\u307e\u3063\u305f\u3002\u3053\u308a\u3083<br \/>\n\\\u78ba\u304b\u306bPHP\u3067\u95a2\u6570\u5316\u3059\u308b\u3088\u308aJS\u3067\u95a2\u6570\u5316\u3057\u305f\u65b9\u304c\u65e9\u3044\u308f\u3051\u3060\u3002\u4f5c\u308b\u5074\u3068\u3057\u3066\u306f\u3002\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u91cd\u304f\u306a\u308b<br \/>\n\\\u304b\u3082\u3057\u308c\u3093\u3051\u3069)<br \/>\n8-2 \u6ce8\u6587\u30c7\u30fc\u30bf\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3088\u3046\uff01\uff1a<br \/>\n(Gnumeric\u304cSlack\u306epkg\u306b\u306f\u7121\u304b\u3063\u305f\u306e\u3067Zaurus\u306e\u3067\u78ba\u8a8d\u3057\u305f\u3002OK\u3060\u3063\u305f)<\/p>\n<p>\u3053\u308c\u307e\u3067\u306e\u7dcf\u5fa9\u7fd2\u4e2d\u3002(2024.09)<br \/>\n\u3053\u308c\u307e\u3067\u306e\u30d5\u30ed\u30fc\u56f3\u307e\u305f\u306f\u753b\u9762\u9077\u79fb\u56f3\u3092Drawio\u3067\u66f8\u3044\u3066\u307f\u308b\u3002<br \/>\n\u3068\u308a\u3042\u3048\u305aHP\u304c\u306a\u3044\u306e\u3067\u3001HP\u306f\u4ee5\u4e0b\u3068\u3057\u305f\u3002Apache\u306e\u30ea\u30f3\u30af\u53ef\u306e\u8a2d\u5b9a\u3082\u3057\u305f\u3002<br \/>\n$ ln -s shop\/shop_list.php index.php<br \/>\nEC\u30b5\u30a4\u30c8\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u30de\u30b8\u30e1\u306b\u8003\u3048\u308b\u3002<a href=\"https:\/\/shirakawa.weblike.jp\/blog-page\/2024\/01\/27\/%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%81%ae%e3%82%bb%e3%82%ad%e3%83%a5%e3%83%aa%e3%83%86%e3%82%a3%e3%83%bc\/\">https:\/\/shirakawa.weblike.jp\/blog-page\/2024\/01\/27&#8230;<\/a><br \/>\n\\<br \/>\nCSS\u3082\u30de\u30b8\u30e1\u306b\u8003\u3048\u308b\u3002<br \/>\nPHP\u3084Laravel\u3092\u4f7f\u3046\u5834\u5408\u3001CSS\u306e\u8a2d\u8a08\u306f\u3069\u306e\u3088\u3046\u306b\u884c\u3046\u304b\uff1f<br \/>\nPHP\u3084Laravel\u3092\u4f7f\u3046\u5834\u5408\u3001CSS\u306e\u8a2d\u8a08\u306b\u306f\u3044\u304f\u3064\u304b\u306e\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u898f\u6a21\u3084\u8981\u4ef6\u306b\u5fdc\u3058\u3066\u6700\u9069\u306a\u65b9\u6cd5\u3092\u9078\u3076\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002\u4ee5\u4e0b\u306f\u4e00\u822c\u7684\u306aCSS\u8a2d\u8a08\u306e\u30a2\u30d7\u30ed\u30fc\u30c1\u3067\u3059\u3002<br \/>\n### 1. **\u30b7\u30f3\u30d7\u30eb\u306aCSS\u306e\u8a2d\u8a08**<br \/>\n\\- \u5c0f\u898f\u6a21\u306a\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u306f\u3001\u57fa\u672c\u7684\u306aCSS\u30d5\u30a1\u30a4\u30eb\u3092\u76f4\u63a5\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002`public\/css`\u30d5\u30a9\u30eb\u30c0\u306bCSS\u30d5\u30a1\u30a4\u30eb\u3092\u914d\u7f6e\u3057\u3001\u30d3\u30e5\u30fc\uff08Blade\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306a\u3069\uff09\u3067\u30ea\u30f3\u30af\u3092\u5f35\u308a\u307e\u3059\u3002<br \/>\n\\- \u30b9\u30bf\u30a4\u30eb\u306e\u7ba1\u7406\u304c\u3057\u3084\u3059\u3044\u3088\u3046\u306b\u3001CSS\u30d5\u30a1\u30a4\u30eb\u3092\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3084\u30da\u30fc\u30b8\u3054\u3068\u306b\u5206\u5272\u3059\u308b\u3068\u3088\u3044\u3067\u3057\u3087\u3046\u3002<br \/>\n### 2. **BEM\uff08Block Element Modifier\uff09\u3092\u7528\u3044\u305f\u8a2d\u8a08**<br \/>\n\\- BEM\u306f\u3001CSS\u30af\u30e9\u30b9\u540d\u3092\u300c\u30d6\u30ed\u30c3\u30af\u300d\u300c\u30a8\u30ec\u30e1\u30f3\u30c8\u300d\u300c\u4fee\u98fe\u5b50\u300d\u306e\u5f62\u5f0f\u3067\u547d\u540d\u3059\u308b\u65b9\u6cd5\u3067\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001CSS\u304c\u518d\u5229\u7528\u3057\u3084\u3059\u304f\u3001\u30b9\u30b3\u30fc\u30d7\u304c\u660e\u78ba\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\\- \u4f8b: `.button&#8211;primary`, `.nav__item&#8211;active`<br \/>\n### 3. **Sass\u3084Less\u306e\u4f7f\u7528**<br \/>\n\\- Laravel\u3067\u306f\u3001Sass\uff08\u307e\u305f\u306fLess\uff09\u3092\u4f7f\u7528\u3057\u3066\u30b9\u30bf\u30a4\u30eb\u30b7\u30fc\u30c8\u3092\u7ba1\u7406\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u5909\u6570\u3001\u30cd\u30b9\u30c8\u3001\u30df\u30c3\u30af\u30b9\u30a4\u30f3\u3001\u95a2\u6570\u306a\u3069\u306e\u6a5f\u80fd\u3092\u5229\u7528\u3057\u3066\u3001CSS\u3092\u3088\u308a\u52b9\u7387\u7684\u306b\u8a18\u8ff0\u3067\u304d\u307e\u3059\u3002<br \/>\n\\- Laravel Mix\u3092\u4f7f\u7528\u3057\u3066\u3001Sass\/SCSS\u30d5\u30a1\u30a4\u30eb\u3092\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3001\u6700\u9069\u5316\u3055\u308c\u305fCSS\u30d5\u30a1\u30a4\u30eb\u3092\u751f\u6210\u3057\u307e\u3059\u3002<br \/>\n### 4. **Tailwind CSS\u306e\u5c0e\u5165**<br \/>\n\\- Laravel\u3068Tailwind CSS\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067\u3001\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u30d5\u30a1\u30fc\u30b9\u30c8\u306e\u30a2\u30d7\u30ed\u30fc\u30c1\u3092\u4f7f\u7528\u3057\u3066\u30b9\u30bf\u30a4\u30eb\u3092\u8a2d\u8a08\u3067\u304d\u307e\u3059\u3002Tailwind CSS\u306f\u3001\u3042\u3089\u304b\u3058\u3081\u5b9a\u7fa9\u3055\u308c\u305f\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u30af\u30e9\u30b9\u3092\u4f7f\u7528\u3057\u3066\u3001\u8fc5\u901f\u306b\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u30c7\u30b6\u30a4\u30f3\u3092\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002<br \/>\n\\- `tailwind.config.js`\u3067\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3057\u305f\u30c6\u30fc\u30de\u3092\u8a2d\u5b9a\u3057\u3001Laravel Mix\u3092\u4f7f\u7528\u3057\u3066\u30d3\u30eb\u30c9\u3057\u307e\u3059\u3002<br \/>\n### 5. **Atomic Design\u306e\u63a1\u7528**<br \/>\n\\- \u5927\u898f\u6a21\u306a\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u306f\u3001Atomic Design\u306e\u539f\u5247\u3092\u9069\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u30b9\u30bf\u30a4\u30eb\u306e\u518d\u5229\u7528\u6027\u3068\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u6027\u3092\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\\- UI\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u539f\u5b50\uff08Atom\uff09\u3001\u5206\u5b50\uff08Molecule\uff09\u3001\u6709\u6a5f\u4f53\uff08Organism\uff09\u306a\u3069\u306e\u5358\u4f4d\u306b\u5206\u5272\u3057\u3001\u305d\u308c\u305e\u308c\u306b\u5bfe\u5fdc\u3059\u308b\u30b9\u30bf\u30a4\u30eb\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002<br \/>\n### 6. **CSS\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306e\u4f7f\u7528**<br \/>\n\\- Bootstrap\u3084Foundation\u306a\u3069\u306eCSS\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u65e2\u5b58\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3084\u30b0\u30ea\u30c3\u30c9\u30b7\u30b9\u30c6\u30e0\u3092\u6d3b\u7528\u3057\u3066\u3001\u8fc5\u901f\u306b\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u306a\u30c7\u30b6\u30a4\u30f3\u3092\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002<br \/>\n\\- Laravel\u3067\u306f\u3001\u3053\u308c\u3089\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3068\u7c21\u5358\u306b\u7d71\u5408\u3067\u304d\u307e\u3059\u3002<br \/>\n### 7. **Laravel Mix\u306e\u5229\u7528**<br \/>\n\\- Laravel Mix\u306f\u3001Webpack\u306e\u8a2d\u5b9a\u3092\u7c21\u7d20\u5316\u3059\u308b\u305f\u3081\u306e\u30c4\u30fc\u30eb\u3067\u3001CSS\u3084JavaScript\u306e\u30b3\u30f3\u30d1\u30a4\u30eb\u3001\u5727\u7e2e\u3001\u30d0\u30f3\u30c9\u30eb\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002Sass\u3084Less\u3001PostCSS\u306a\u3069\u306e\u30d7\u30ea\u30d7\u30ed\u30bb\u30c3\u30b5\u3068\u9023\u643a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n### 8. **\u30e2\u30b8\u30e5\u30fc\u30eb\u5316\u3055\u308c\u305fCSS**<br \/>\n\\- \u5404\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3084\u30da\u30fc\u30b8\u306b\u7279\u5316\u3057\u305fCSS\u3092\u4f5c\u6210\u3057\u3001\u305d\u308c\u3092\u30e2\u30b8\u30e5\u30fc\u30eb\u3068\u3057\u3066\u5206\u3051\u308b\u3053\u3068\u3067\u3001\u30b9\u30bf\u30a4\u30eb\u304c\u6df7\u5728\u3057\u306a\u3044\u3088\u3046\u306b\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30b9\u30bf\u30a4\u30eb\u306e\u30b9\u30b3\u30fc\u30d7\u304c\u660e\u78ba\u306b\u306a\u308a\u3001CSS\u306e\u7ba1\u7406\u304c\u5bb9\u6613\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u3053\u308c\u3089\u306e\u30a2\u30d7\u30ed\u30fc\u30c1\u306e\u4e2d\u304b\u3089\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u7279\u6027\u3084\u30c1\u30fc\u30e0\u306e\u30b9\u30ad\u30eb\u30bb\u30c3\u30c8\u306b\u6700\u3082\u9069\u3057\u305f\u3082\u306e\u3092\u9078\u3093\u3067\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>Chapter 9 \u304a\u5ba2\u69d8\u306b\u4f1a\u54e1\u306b\u306a\u3063\u3066\u3082\u3089\u304a\u3046\uff01 (2024.09)<br \/>\n9-1 \u4f1a\u54e1\u767b\u9332\u306e\u753b\u9762\u3092\u4f5c\u308d\u3046\uff01\uff1a<br \/>\n9-2 \u4f1a\u54e1\u30ed\u30b0\u30a4\u30f3\u306e\u4ed5\u7d44\u307f\u3092\u4f5c\u308d\u3046\uff01\uff1a<br \/>\n9-3 \u4f1a\u54e1\u3060\u3051\u306e\u7279\u5178\u300c\u304b\u3093\u305f\u3093\u6ce8\u6587\u300d\u306e\u4ed5\u7d44\u307f\u3092\u4f5c\u308d\u3046\uff01\uff1a<br \/>\n(\u7d42\u308f\u3063\u3066\u3057\u307e\u3063\u305f\u3002\u697d\u3057\u304b\u3063\u305f)<\/p>\n<p>\/*************************************************************************************\/<br \/>\nJS(FW)\u306eDB\u3078\u306eAPI\u3092\u4f5c\u308b\u3002(2022.06)<br \/>\nHTML\/CSS\/JavaScript\u306e\u7df4\u7fd2 \u5b9f\u8df5 \u96d1\u591a\u306a\u8a18\u9332\uff13<br \/>\nhttps:\/\/seesaawiki.jp\/lifewithslackzaurus_15_0\/d\/HTML\/CSS\/JavaScript%a4%ce%ce%fd%bd%ac%20%bc%c2%c1%a9%20%bb%a8%c2%bf%a4%ca%b5%ad%cf%bf%a3%b3<br \/>\n\u3067\u3001BackboneJS\u3067\u30c7\u30fc\u30bf\u306e\u6c38\u7d9a\u5316\u3092\u3059\u308b\u305f\u3081\u3001MySQL(MariaDB)\u3092\u4f7f\u3046\u306e\u306bPHP\u3067API\u3092\u4f5c\u308b\u3053\u3068\u306b\u3057\u305f\u3002<br \/>\nhttps:\/\/qiita.com\/naga3\/items\/cacb8182ad79dbbf6e64<br \/>\nhttps:\/\/medium.com\/@scottdixon\/backbone-js-with-php-mysql-362b07dad844<br \/>\n<a href=\"https:\/\/shusatoo.net\/programming\/php\/backbone-model-save-postdata-read-php\/\">https:\/\/shusatoo.net\/programming\/php\/backbone-mode&#8230;<\/a><br \/>\n<a href=\"https:\/\/mawatari.jp\/archives\/backbonejs-todos-with-cakephp-restful-api\">https:\/\/mawatari.jp\/archives\/backbonejs-todos-with&#8230;<\/a><br \/>\nhttps:\/\/qiita.com\/hidepy\/items\/42220523cb2b3eb2c451 (php file_get_contents php \/\/input\u3001\u3067\u30b0\u30b0\u3063\u305f)<br \/>\n(PHP\u3082Ruby\u3082JS(FW\u542b\u3080)\u306eAPI\u3068\u3057\u3066\u3057\u304b\u4f7f\u308f\u306a\u3044\u306a\u3089\u3001(PHP\u3084Ruby\u306e)FW\u307e\u3067\u306f\u8981\u3089\u306a\u3044\u3093\u3058\u3083\u306a\u3044\u304b?<br \/>\n\\\u3063\u3066\u6c17\u304c\u3059\u308b\u304c\u3001\u30b5\u30fc\u30d0\u3068\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u8ca0\u62c5\u306e\u30d0\u30e9\u30f3\u30b9\u3092\u8003\u3048\u308b\u3068\u5fc5\u8981\u306b\u306a\u308b\u3053\u3068\u3082\u3042\u308b\u306e\u304b?\u3001<br \/>\n\\AI\u3068\u304b\u4f7f\u308f\u306a\u3044\u30d3\u30b8\u30cd\u30b9\u30ed\u30b8\u30c3\u30af\u3082(\u4eca\u306e\u3068\u3053\u308d)\u30b5\u30fc\u30d0\u5074\u3067\u3084\u308b\u4e8b\u304c\u591a\u3044?\u3001\u4ea4\u901a\u6574\u7406\u304c\u8981\u308b?)<br \/>\n\u3092\u53c2\u8003\u306b\u3059\u308b\u3002<br \/>\n$ sudo ifconfig lo 127.0.0.1 netmask 255.0.0.0<br \/>\n$ sudo sh \/etc\/rc.d\/rc.httpd start<br \/>\n$ sudo sh \/etc\/rc.d\/rc.mysqld start<br \/>\nhttp:\/\/slack150memo.blog.example.com\/phpMyAdmin\/ (\u81ea\u5206PC\u306e..)\u30a2\u30af\u30bb\u30b9\u3001\u65b0\u3057\u3044DB\u4f5c\u3063\u3066\u3001<br \/>\n\u30c6\u30fc\u30d6\u30eb\u8ffd\u52a0\u30021\u30ab\u30e9\u30e0\u76ee\u306f(index?)code\u306b\u3057\u3066\u5f8c\u306f\u3001firstName\u3001lastName\u3001email\u3001\u3092\u8ffd\u52a0\u3002<br \/>\nphpMyAdmin_SQL$ INSERT INTO mst_people (firstName,lastName,email) VALUES (&#8220;Alice&#8221;,&#8221;Henderson&#8221;,&#8221;alice@example.com&#8221;) \/\/\u6b8b\u308a\u3082\u540c\u69d8\u306b\u5b9f\u884c.<br \/>\nJS(FW)\u304b\u3089\u306fPATH\u3082\u542b\u3081\u305fphp\u30d5\u30a1\u30a4\u30eb\u540d(\u3068\u5f15\u6570)\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067API\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u3002<br \/>\n\u4e0a\u3067\u3084\u3063\u305f\u7df4\u7fd2\u30d5\u30a1\u30a4\u30eb\u30b3\u30d4\u30da\u3057\u3066\u4f5c\u308b\u304b\u3002\u5f8c\u3067\u4f7f\u3046\u306e\u3067GET\u4ee5\u5916\u3082\u6700\u521d\u304b\u3089\u5165\u308c\u3068\u3053\u3046\u3002<br \/>\n$ cp ~\/myproj\/slack150memo\/homepage\/staff\/staff_list.php contacts.php<br \/>\nVSCode(\u30af\u30e9\u30a6\u30c9\u7248)\u3067\u7de8\u96c6\u3057\u305f\u3002FC2\u306b\u306f*.php\u3092\u7f6e\u3051\u306a\u3044\u306e\u3067*.smp\u306brename\u3057\u3066\u7f6e\u3044\u305f\u3002<\/p>\n<p>\/*************************************************************************************\/<br \/>\nPHP\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af Laravel\u5165\u9580(\u53c2\u8003\u66f8\u7c4d\uff14)<br \/>\n\u3084\u308d\u3046\u304b\u3068\u601d\u3063\u305f\u3051\u3069\u3001\u76ee\u6b21\u898b\u305f\u3089\u30b9\u30b2\u30fc\u91cf\u3060\u3002\u57fa\u672c\u3060\u3051\u3084\u3063\u3066\u5f8c\u306f\u8f9e\u66f8\u7684\u306a\u4f7f\u3044\u65b9\u3063\u3066\u3067\u304d\u306a\u3044<br \/>\n\u3060\u308d\u304b\u3002\u5fc5\u8981\u306b\u306a\u3063\u305f\u3089\u898b\u308b\u3001\u3068\u304b\u3002\u305d\u3046\u3057\u3088\u3046\u3002\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u30921,2\u30d1\u30bf\u30fc\u30f3\u3084\u3063\u305f\u3089\u3001\u5f8c\u306f\u3001<br \/>\n\u3067\u304d\u308b\u4e8b\u3092\u3056\u3063\u304f\u308a\u899a\u3048\u3066\u304a\u304f\u304b\u3002<\/p>\n<p>\u53c2\u8003\u66f8\u7c4d\uff11\u3092Laravel\u5316\u3059\u308b\u4e8b\u3067\u3001\u5b9f\u8df5\u7684\u306a\u66f8\u304d\u65b9\u3078\u306e\u5909\u66f4\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u5411\u4e0a\u3092\u8a08\u308b\u3002(2024.09)<br \/>\nLaravel\u5316\u306fAI\u306b\u3084\u3089\u305b\u3066\u307f\u308b\u3002<br \/>\n\u4ee5\u4e0b\u306e\u5c0f\u898f\u6a21\u306a\u3001\u91ce\u83dc\u5c4b\u306eEC\u30b5\u30a4\u30c8\u306e\u5546\u54c1\u4e00\u89a7(shop_list.php)\u3092\u3001\u30b5\u30cb\u30bf\u30a4\u30ba\u3084\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u3092\u8003\u616e\u3057\u3066Laravel\u3067\u66f8\u304d\u76f4\u3057\u3001\u30b7\u30f3\u30d7\u30eb\u306aCSS\u3092\u8ffd\u52a0\u305b\u3088\u3002<br \/>\n(\u30b3\u30fc\u30c9\u306e\u30e1\u30e2\u306f\u7701\u7565)<br \/>\n\u4ee5\u4e0b\u306b\u3001PHP\u306e\u30b3\u30fc\u30c9\u3092Laravel\u306b\u66f8\u304d\u76f4\u3057\u3001\u30b5\u30cb\u30bf\u30a4\u30ba\u3092\u8003\u616e\u3057\u305f\u4e0a\u3067\u30b7\u30f3\u30d7\u30eb\u306aCSS\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002Laravel\u3067\u306fBlade\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u4f7f\u7528\u3057\u3001\u30af\u30a8\u30ea\u30d3\u30eb\u30c0\u3084Eloquent ORM\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u3088\u308a\u5b89\u5168\u3067\u7c21\u6f54\u306a\u30b3\u30fc\u30c9\u3092\u66f8\u3051\u307e\u3059\u3002\u30d5\u30a9\u30fc\u30e0\u5165\u529b\u306f\u7121\u3044\u306e\u3067\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u306f\u542b\u307e\u308c\u3066\u3044\u307e\u305b\u3093\u3002<br \/>\n\\<br \/>\n\u30b9\u30c6\u30c3\u30d7 1: \u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u306e\u4f5c\u6210<br \/>\n\u307e\u305a\u3001ShopController\u3068\u3044\u3046\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3092\u4f5c\u6210\u3057\u3001\u5546\u54c1\u4e00\u89a7\u3092\u53d6\u5f97\u3057\u3066\u30d3\u30e5\u30fc\u306b\u6e21\u3059\u51e6\u7406\u3092\u884c\u3044\u307e\u3059\u3002<br \/>\n$ cd \/myproj\/60-nouen2<br \/>\n$ php artisan make:controller ShopController<br \/>\nCould not open input file: artisan (\u4f55\u3068Laravel\u3092Inst\u3057\u3066\u306a\u304b\u3063\u305f)<br \/>\n\u3053\u3063\u3061\u3067Inst\u3059\u308b\u3002https:\/\/seesaawiki.jp\/lifewithslackzaurus_15_0\/d\/Laravel<br \/>\n$ cd \/myproj<br \/>\nLaravel\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3059\u308b\u3002(\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30d5\u30a1\u30a4\u30eb\u3082\u4f5c\u6210\u3057\u3066\u306a\u304b\u3063\u305f)<br \/>\n$ PATH=$PATH:\/usr\/local\/laravel-composer\/:~\/.config\/composer\/vendor\/bin\/ composer create-project &#8211;prefer-dist laravel\/laravel 60-nouen2<br \/>\n\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u306a\u3044\u3068Laravel\u306fInst\u3055\u308c\u306a\u3044\u306e\u3067\u3001\u30ed\u30b0\u306f\u3053\u3063\u3061\u306b\u30e1\u30e2\u3057\u305f\u3002<br \/>\nhttps:\/\/seesaawiki.jp\/lifewithslackzaurus_15_0\/d\/Laravel<br \/>\n$ cd 60-nouen2<br \/>\n$ ls -l<br \/>\n\\\u5408\u8a08 356<br \/>\n\\-rw-r&#8211;r&#8211; 1 ore root 3958 4\u6708 12 2022 README.md<br \/>\n\\drwxr-xr-x 7 ore root 4096 4\u6708 12 2022 app<br \/>\n\\-rwxr-xr-x 1 ore root 1686 4\u6708 12 2022 artisan<br \/>\n\\drwxr-xr-x 3 ore root 4096 4\u6708 12 2022 bootstrap<br \/>\n\\-rw-r&#8211;r&#8211; 1 ore root 1745 4\u6708 12 2022 composer.json<br \/>\n\\-rw-r&#8211;r&#8211; 1 ore root 288283 9\u6708 3 xx:yy composer.lock<br \/>\n\\drwxr-xr-x 2 ore root 4096 4\u6708 12 2022 config<br \/>\n\\drwxr-xr-x 5 ore root 4096 4\u6708 12 2022 database<br \/>\n\\-rw-r&#8211;r&#8211; 1 ore root 473 4\u6708 12 2022 package.json<br \/>\n\\-rw-r&#8211;r&#8211; 1 ore root 1202 4\u6708 12 2022 phpunit.xml<br \/>\n\\drwxr-xr-x 2 ore root 4096 4\u6708 12 2022 public<br \/>\n\\drwxr-xr-x 6 ore root 4096 4\u6708 12 2022 resources<br \/>\n\\drwxr-xr-x 2 ore root 4096 4\u6708 12 2022 routes<br \/>\n\\-rw-r&#8211;r&#8211; 1 ore root 569 4\u6708 12 2022 server.php<br \/>\n\\drwxr-xr-x 5 ore root 4096 4\u6708 12 2022 storage<br \/>\n\\drwxr-xr-x 4 ore root 4096 4\u6708 12 2022 tests<br \/>\n\\drwxr-xr-x 43 ore root 4096 9\u6708 3 xx:yy vendor<br \/>\n\\-rw-r&#8211;r&#8211; 1 ore root 559 4\u6708 12 2022 webpack.mix.js<br \/>\n$ PATH=$PATH:\/usr\/local\/laravel-composer\/:~\/.config\/composer\/vendor\/bin\/ php artisan make:controller ShopController (\u518d\u5b9f\u884c\u3057\u305f)<br \/>\nController created successfully.<br \/>\n$ ls -l app\/Http\/Controllers\/<br \/>\n\u5408\u8a08 8<br \/>\n\\-rw-r&#8211;r&#8211; 1 ore root 361 4\u6708 12 2022 Controller.php<br \/>\n\\-rw-r&#8211;r&#8211; 1 ore root 121 9\u6708 7 xx:yy ShopController.php<br \/>\n\u6b21\u306b\u3001ShopController\u306b\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<br \/>\n$ emacs app\/Http\/Controllers\/ShopController.php<br \/>\n(\u30b3\u30fc\u30c9\u306e\u30e1\u30e2\u306f\u7701\u7565)<br \/>\n\u30b9\u30c6\u30c3\u30d7 2: \u30eb\u30fc\u30c8\u306e\u8a2d\u5b9a<br \/>\nroutes\/web.php\u306b\u30eb\u30fc\u30c8\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<br \/>\n(\u30b3\u30fc\u30c9\u306e\u30e1\u30e2\u306f\u7701\u7565)<br \/>\n\u30b9\u30c6\u30c3\u30d7 3: \u30d3\u30e5\u30fc\u306e\u4f5c\u6210<br \/>\n\u6b21\u306b\u3001Blade\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3068\u3057\u3066resources\/views\/shop_list.blade.php\u3092\u4f5c\u6210\u3057\u3001\u4ee5\u4e0b\u306e\u5185\u5bb9\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<br \/>\n$ emacs resources\/views\/shop_list.blade.php<br \/>\nWarning (emacs): php-mode is NOT support blade template. Please install `web-mode&#8217; package (\u4e0a\u306e\u65b9\u3067\u5165\u308c\u305f)<br \/>\n(\u30b3\u30fc\u30c9\u306e\u30e1\u30e2\u306f\u7701\u7565)<br \/>\n\u30b9\u30c6\u30c3\u30d7 4: CSS\u306e\u4f5c\u6210<br \/>\n\u30b7\u30f3\u30d7\u30eb\u306a\u30b9\u30bf\u30a4\u30eb\u30b7\u30fc\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002public\/css\/style.css\u306b\u4ee5\u4e0b\u306e\u5185\u5bb9\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<br \/>\n$ mkdir public\/css<br \/>\n$ emacs public\/css\/style.css<br \/>\n(\u30b3\u30fc\u30c9\u306e\u30e1\u30e2\u306f\u7701\u7565)<br \/>\n\u30b9\u30c6\u30c3\u30d7 5: \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u63a5\u7d9a\u306e\u8a2d\u5b9a<br \/>\nLaravel\u306e.env\u30d5\u30a1\u30a4\u30eb\u306b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u63a5\u7d9a\u60c5\u5831\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<br \/>\n$ emacs .env<br \/>\n(\u63a5\u7d9a\u60c5\u5831\u306e\u30e1\u30e2\u306f\u7701\u7565)<br \/>\n\\<br \/>\n\u5b8c\u6210\u3057\u305f\u30b3\u30fc\u30c9\u306e\u52d5\u4f5c<br \/>\n\u3053\u306e\u69cb\u6210\u3067\u306f\u3001\/shop_list\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u30ed\u30b0\u30a4\u30f3\u72b6\u614b\u306b\u5fdc\u3058\u3066\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u8868\u793a\u3057\u3001\u5546\u54c1\u4e00\u89a7\u3092\u8868\u793a\u3057\u307e\u3059\u3002\u307e\u305f\u3001\u3059\u3079\u3066\u306e\u51fa\u529b\u306f\u9069\u5207\u306b\u30b5\u30cb\u30bf\u30a4\u30ba\u3055\u308c\u3066\u304a\u308a\u3001CSRF\u3084XSS\u653b\u6483\u3092\u9632\u3050\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002CSS\u3067\u57fa\u672c\u7684\u306a\u30b9\u30bf\u30a4\u30ea\u30f3\u30b0\u304c\u9069\u7528\u3055\u308c\u3001\u30b7\u30f3\u30d7\u30eb\u3067\u4f7f\u3044\u3084\u3059\u3044\u30c7\u30b6\u30a4\u30f3\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>https:\/\/seesaawiki.jp\/lifewithslackzaurus_15_0\/d\/PHP%2d8%2e2<br \/>\n\u3092\u53c2\u8003\u306b\u3001\/etc\/httpd\/extra\/httpd-vhosts.conf<br \/>\n\\&lt;VirtualHost localhost:443&gt;<br \/>\n\\ ServerAdmin ore@60-nouen2.com<br \/>\n\\ DocumentRoot \/myproj\/60-nouen2\/public<br \/>\n\\ ServerName 60-nouen2.com<br \/>\n\\ ServerAlias www.60-nouen2.com<br \/>\n\\ SSLEngine on<br \/>\n\\ SSLCertificateFile \/etc\/httpd\/server.crt<br \/>\n\\ SSLCertificateKeyFile \/etc\/httpd\/server.key<br \/>\n\\ # PHP-FPM<br \/>\n\\ &lt;FilesMatch \\.php$&gt;<br \/>\n\\ SetHandler &#8220;proxy:fcgi:\/\/127.0.0.1:9000&#8221;<br \/>\n\\ &lt;\/FilesMatch&gt;<br \/>\n\\ &lt;Directory &#8220;\/myproj\/60-nouen2\/public&#8221;&gt;<br \/>\n\\ AllowOverride All<br \/>\n\\ Options Indexes FollowSymLinks<br \/>\n\\ Require all granted<br \/>\n\\ &lt;\/Directory&gt;<br \/>\n\\ ErrorLog \/var\/log\/httpd\/60-nouen2.com-error_log<br \/>\n\\ CustomLog \/var\/log\/httpd\/60-nouen2.com-access_log common<br \/>\n\\&lt;\/VirtualHost&gt;<\/p>\n<p>httpd\u3092\u52d5\u304b\u3057\u3066\u3044\u308bapache\u304c\u66f8\u304d\u8fbc\u307f\u3067\u304d\u305a\u3001<br \/>\nUnexpectedValueException<br \/>\nThe stream or file &#8220;\/myproj\/60-nouen2\/storage\/logs\/laravel.log&#8221; could not be opened in append mode: Failed to open stream: Permission denied The exception occurred while attempting to log: The stream or file &#8220;\/myproj\/60-nouen2\/storage\/logs\/laravel.log&#8221; could not be opened in append mode: Failed to open stream: Permission denied The exception occurred while attempting to log: The stream or file &#8220;\/<br \/>\n$ sudo chown -R apache \/myproj\/60-nouen2\/storage<br \/>\n$ sudo chown -R apache \/myproj\/60-nouen2\/bootstrap\/cache<\/p>\n<p>https:\/\/60-nouen2.com\/shop_list<br \/>\n\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3067shop_list.php\u304b\u3089\u306e\u5909\u63db\u5206\u304c\u8868\u793a\u3067\u304d\u305f\u3002\u30b9\u30c6\u30c3\u30d72\u3067\u3001\/shop_list\u3092\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0<br \/>\n\u8a2d\u5b9a\u3057\u3066\u3044\u305f(\u3068\u3044\u3046\u304b&#8221;\u5b8c\u6210\u3057\u305f\u30b3\u30fc\u30c9\u306e\u52d5\u4f5c&#8221;\u3067AI\u304c\u8aac\u660e\u3057\u3066\u308b\u3002\u898b\u305a\u306b\u5c11\u3057\u30b8\u30bf\u30d0\u30bf\u3057\u305f)\u3002&#8217;\/&#8217;\u306f<br \/>\ndef\u3067\u306fwelcome\u30da\u30fc\u30b8\u8868\u793a\u306b\u306a\u3063\u3066\u3044\u308b\u3088\u3046\u3060\u3002\u3053\u308c\u3082\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3067\u8a2d\u5b9a\u3057\u3066\u308b\u3002<\/p>\n<p>\/*****************************************\/<br \/>\nAI\u4f7f\u3063\u3066\u3069\u3046\u66f8\u3044\u305f\u3089\u52d5\u304f\u306e\u304b\u306e\u56de\u7b54\u3092\u8cb0\u3063\u3066\u3082\u3001<br \/>\nRoute::get(&#8216;\/shop_list&#8217;, [ShopController::class, &#8216;list&#8217;])-&gt;name(&#8216;shop_list&#8217;);<br \/>\n\u7d50\u5c40\u3001\u66f8\u7c4d\u3092\u898b\u308b\u304bAI\u306b\u5185\u5bb9\u3092\u805e\u304b\u306a\u3044\u3068\u30d1\u30e9\u30e1\u30bf\u306e\u610f\u5473\u304c\u5206\u304b\u3089\u306a\u3044\u3002\u52d5\u4f5c\u3059\u308b\u4ed5\u7d44\u307f\u304c\u5206\u304b\u3089\u306a\u3044\u3002<\/p>\n<p>Route::get(&#8216;\/shop_list&#8217;, [ShopController::class, &#8216;list&#8217;])-&gt;name(&#8216;shop_list&#8217;); \u306e\u610f\u5473\u3092\u6559\u3048\u3066\u3001<br \/>\n\u3068\u805e\u304f\u3068AI\u306f\u305d\u3053\u3060\u3051\u3092\u6559\u3048\u3066\u304f\u308c\u308b\u3002\u3053\u308c\u3082\u6709\u7528\u3060\u3002\u6ca2\u5c71\u3042\u308b\u4e2d\u304b\u3089\u5fc5\u8981\u306a\u95a2\u6570\u3068\u5f15\u6570\u3092\u30ba\u30d0\u30ea\u6559\u3048<br \/>\n\u3066\u304f\u308c\u308b\u3002<br \/>\n\u4e00\u65b9\u3001\u66f8\u7c4d\u3060\u3068\u3001Route::get(\u30a2\u30c9\u30ec\u30b9,\u95a2\u6570\u306a\u3069); \u304b\u3089\u8aac\u660e\u3057\u3066\u3044\u308b\u300260-nouen2\u4ee5\u4e0b\u306e\u30d5\u30a1\u30a4\u30eb\u3084\u30c7\u30a3<br \/>\n\u30ec\u30af\u30c8\u30ea\u306e\u610f\u5473\u3092\u8aac\u660e\u3057\u3066\u3044\u308b\u3002\u3053\u308c\u3082\u5fc5\u8981\u3060\u3088\u306a\u3042\u3002\u3084\u3063\u3071\u4e00\u56de\u304f\u3089\u3044\u306f\u6700\u521d\u304b\u3089\u66f8\u7c4d\u3092\u3058\u3063\u304f\u308a<br \/>\n\u8aad\u3080\u304b\u3002\u7d0d\u5f97\u3044\u304f\u304b\u98fd\u304d\u308b\u307e\u3067\u3002<\/p>\n<p>Chapter 1 Laravel\u3092\u6e96\u5099\u3059\u308b<br \/>\n1-1 PHP\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3068Laravel\uff1a<br \/>\n1-2 Laravel\u3092\u4f7f\u3063\u3066\u307f\u308b\uff1a<br \/>\nChapter 2 \u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3068\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9<br \/>\n2-1 \u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\uff1a<\/p>\n<p \/>\/*****************************************\/<br \/>\n\u53c2\u8003\u66f8\u7c4d\uff11\u3092Laravel\u5316\u3059\u308b\u7d9a\u304d<br \/>\nshop_product.php\uff1a<br \/>\nshop_list.php \u304b\u3089\u4ee5\u4e0b\u306e shop_product.php \u3092\u5b9f\u884c\u3057\u3066\u3044\u305f\u304c\u3001shop_product.php \u306f\u3069\u306e\u3088\u3046\u306b\u5909\u66f4\u3059\u308b\u304b\uff1f<br \/>\n(\u30b3\u30fc\u30c9\u306e\u30e1\u30e2\u306f\u7701\u7565)<br \/>\nshop_product.php\u3092Laravel\u306b\u9069\u5fdc\u3055\u305b\u308b\u305f\u3081\u306b\u306f\u3001Laravel\u306eMVC\uff08Model-View-Controller\uff09\u69cb\u9020\u306b\u5f93\u3063\u3066\u30b3\u30fc\u30c9\u3092\u518d\u69cb\u7bc9\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u305d\u306e\u624b\u9806\u3067\u3059\u3002<br \/>\n1.\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u306b\u30e1\u30bd\u30c3\u30c9\u3092\u4f5c\u6210<br \/>\n\u307e\u305a\u3001ShopController\u306b\u5546\u54c1\u8a73\u7d30\u3092\u8868\u793a\u3059\u308b\u305f\u3081\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<br \/>\n$ emacs app\/Http\/Controllers\/ShopController.php<br \/>\n(\u30b3\u30fc\u30c9\u306e\u30e1\u30e2\u306f\u7701\u7565)<br \/>\n2.\u30eb\u30fc\u30c8\u306e\u5b9a\u7fa9<br \/>\nroutes\/web.php\u3067\u3001\u5546\u54c1\u8a73\u7d30\u30da\u30fc\u30b8\u3078\u306e\u30eb\u30fc\u30c8\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<br \/>\n$ emacs routes\/web.php<br \/>\n(\u30b3\u30fc\u30c9\u306e\u30e1\u30e2\u306f\u7701\u7565)<br \/>\n3.\u30d3\u30e5\u30fc\u306e\u4f5c\u6210<br \/>\nresources\/views\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306bshop_product.blade.php\u3068\u3044\u3046Blade\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3001\u5546\u54c1\u60c5\u5831\u3092\u8868\u793a\u3057\u307e\u3059\u3002<br \/>\n$ emacs resources\/views\/shop_product.blade.php<br \/>\n(\u30b3\u30fc\u30c9\u306e\u30e1\u30e2\u306f\u7701\u7565)<br \/>\n4.\u30bb\u30c3\u30b7\u30e7\u30f3\u7ba1\u7406<br \/>\nLaravel\u3067\u306f\u3001\u30bb\u30c3\u30b7\u30e7\u30f3\u7ba1\u7406\u306bsession\u30d8\u30eb\u30d1\u30fc\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u30e6\u30fc\u30b6\u30fc\u306e\u30ed\u30b0\u30a4\u30f3\u72b6\u614b\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3001\u9069\u5207\u306a\u30e1\u30c3\u30bb\u30fc\u30b8\u3084\u30ea\u30f3\u30af\u3092\u8868\u793a\u3057\u307e\u3059\u3002(\u30d1\u30bf\u30fc\u30f31)<br \/>\n(\u30b3\u30fc\u30c9\u306e\u30e1\u30e2\u306f\u7701\u7565)<br \/>\nLaravel\u3067\u306f\u3001\u30bb\u30c3\u30b7\u30e7\u30f3\u306e\u7ba1\u7406\u306f\u901a\u5e38Auth\u30d5\u30a1\u30b5\u30fc\u30c9\u3092\u4f7f\u3044\u307e\u3059\u3002session_start()\u3084$_SESSION\u3092\u4f7f\u7528\u3059\u308b\u4ee3\u308f\u308a\u306b\u3001Laravel\u306e\u8a8d\u8a3c\u6a5f\u80fd\u3092\u6d3b\u7528\u3057\u3066\u3001\u30ed\u30b0\u30a4\u30f3\u72b6\u614b\u3092\u78ba\u8a8d\u3057\u3001\u30e6\u30fc\u30b6\u30fc\u540d\u3092\u8868\u793a\u3057\u307e\u3059\u3002Auth::check()\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3044\u308b\u304b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002Auth::user()\u3067\u30ed\u30b0\u30a4\u30f3\u4e2d\u306e\u30e6\u30fc\u30b6\u30fc\u306e\u60c5\u5831\u3092\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002(\u30d1\u30bf\u30fc\u30f32)<br \/>\n(\u30b3\u30fc\u30c9\u306e\u30e1\u30e2\u306f\u7701\u7565)<br \/>\n5.\u30b5\u30cb\u30bf\u30a4\u30ba\u306e\u8003\u616e<br \/>\nBlade\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3067\u306f\u3001\u30c7\u30fc\u30bf\u3092\u305d\u306e\u307e\u307e\u51fa\u529b\u3059\u308b\u3068\u81ea\u52d5\u7684\u306b\u30a8\u30b9\u30b1\u30fc\u30d7\u3055\u308c\u307e\u3059\u304c\u3001htmlspecialchars\u3092\u4f7f\u7528\u3057\u3066\u660e\u793a\u7684\u306b\u30b5\u30cb\u30bf\u30a4\u30ba\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u305f\u3060\u3057\u3001Laravel\u3067\u306fe()\u30d8\u30eb\u30d1\u30fc\u3084\u4e8c\u91cd\u4e2d\u62ec\u5f27 {{ }} \u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u81ea\u52d5\u7684\u306b\u30a8\u30b9\u30b1\u30fc\u30d7\u3055\u308c\u307e\u3059\u3002<br \/>\n(\u30b3\u30fc\u30c9\u306e\u30e1\u30e2\u306f\u7701\u7565)<br \/>\n6.\u753b\u50cf\u306e\u8868\u793a<br \/>\n\u5546\u54c1\u306b\u753b\u50cf\u304c\u3042\u308b\u5834\u5408\u306f\u8868\u793a\u3057\u3001\u306a\u3044\u5834\u5408\u306f\u300c\u753b\u50cf\u306f\u3042\u308a\u307e\u305b\u3093\u300d\u3068\u8868\u793a\u3057\u307e\u3059\u3002\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u306fstorage\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u4fdd\u5b58\u3057\u3001\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u3092\u4f5c\u6210\u3057\u3066\u30a2\u30af\u30bb\u30b9\u53ef\u80fd\u306b\u3057\u307e\u3059\u3002<br \/>\n$ sudo mkdir -p storage\/product\/gazou<br \/>\n$ sudo cp -i -a ..\/60-nouen\/product\/gazou\/* storage\/product\/gazou\/<br \/>\n$ sudo chown -R apache storage<br \/>\n$ php artisan storage:link<br \/>\n(\u30b3\u30fc\u30c9\u306e\u30e1\u30e2\u306f\u7701\u7565)<br \/>\n7.\u305d\u306e\u4ed6\u306e\u8a2d\u5b9a<br \/>\n\u30fb\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u8a2d\u5b9a: shop_cartin\u3084member_login\u306a\u3069\u306e\u30eb\u30fc\u30c8\u304c\u6b63\u3057\u304f\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3057\u307e\u3059\u3002<br \/>\n\u30fbCSS\u306e\u9069\u7528: \u30b7\u30f3\u30d7\u30eb\u306a\u30b9\u30bf\u30a4\u30eb\u3092\u9069\u7528\u3059\u308b\u305f\u3081\u306b\u3001public\/css\/style.css\u3092\u4f5c\u6210\u3057\u3001\u30d3\u30e5\u30fc\u3067\u8aad\u307f\u8fbc\u307f\u307e\u3059\u3002<br \/>\n(\u30b3\u30fc\u30c9\u306e\u30e1\u30e2\u306f\u7701\u7565)<br \/>\n8.\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u63a5\u7d9a\u8a2d\u5b9a<br \/>\n.env\u30d5\u30a1\u30a4\u30eb\u3067\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u63a5\u7d9a\u60c5\u5831\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<br \/>\n(\u8a2d\u5b9a\u306e\u30e1\u30e2\u306f\u7701\u7565)<br \/>\n9.\u30a8\u30e9\u30fc\u30cf\u30f3\u30c9\u30ea\u30f3\u30b0<br \/>\n\u4f8b\u5916\u51e6\u7406\u3092Laravel\u306e\u4ed5\u7d44\u307f\u306b\u5408\u308f\u305b\u3066\u884c\u3044\u307e\u3059\u3002<br \/>\n(\u30b3\u30fc\u30c9\u306e\u30e1\u30e2\u306f\u7701\u7565)<br \/>\n10.\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3068\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3<br \/>\n\u30fb\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3: $pro_code\u304c\u6574\u6570\u3067\u3042\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<br \/>\n(\u30b3\u30fc\u30c9\u306e\u30e1\u30e2\u306f\u7701\u7565)<br \/>\n\u30fbCSRF\u5bfe\u7b56: \u30d5\u30a9\u30fc\u30e0\u306b\u306f@csrf\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<br \/>\n\\&lt;form method=&#8221;POST&#8221; action=&#8221;{{ route(&#8216;shop_cartin&#8217;) }}&#8221;&gt;<br \/>\n\\ @csrf<br \/>\n\\ &lt;!&#8211; \u30d5\u30a9\u30fc\u30e0\u5185\u5bb9 &#8211;&gt;<br \/>\n\\&lt;\/form&gt;<br \/>\n(\u4fdd\u7559\u3002\u5f8c\u304b\u3089\u898b\u308b)<br \/>\n\u307e\u3068\u3081<br \/>\nshop_product.php\u3092Laravel\u306b\u79fb\u884c\u3059\u308b\u3053\u3068\u3067\u3001\u30b3\u30fc\u30c9\u306e\u53ef\u8aad\u6027\u3084\u4fdd\u5b88\u6027\u304c\u5411\u4e0a\u3057\u3001Laravel\u306e\u8c4a\u5bcc\u306a\u6a5f\u80fd\u3092\u6d3b\u7528\u3067\u304d\u307e\u3059\u3002\u4e0a\u8a18\u306e\u624b\u9806\u306b\u5f93\u3063\u3066\u3001\u9069\u5207\u306b\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3001\u30eb\u30fc\u30c8\u3001\u30d3\u30e5\u30fc\u3092\u8a2d\u5b9a\u3057\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3084\u30b5\u30cb\u30bf\u30a4\u30ba\u3092\u8003\u616e\u3057\u305f\u5b9f\u88c5\u3092\u884c\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>blade.php\u306e\u4e2d\u306b\u30b3\u30e1\u30f3\u30c8\u6587\u3092\u5165\u308c\u305f\u3044\u3002<br \/>\n{{&#8211; \u3053\u308c\u306fBlade\u306e\u30b3\u30e1\u30f3\u30c8\u3067\u3059 &#8211;}}<br \/>\n&lt;!&#8211; \u3053\u308c\u306fHTML\u30b3\u30e1\u30f3\u30c8\u3067\u3059 &#8211;&gt;<\/p>\n<p>storage\/product\/gazou\/\u4ee5\u4e0b\u306e\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u304c\u8868\u793a\u3055\u308c\u306a\u3044\u3002<br \/>\n\u30a2\u30d7\u30ed\u30fc\u30c11: \u753b\u50cf\u3092public\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\u3059\u308b<br \/>\n\u30a2\u30d7\u30ed\u30fc\u30c12: storage\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u516c\u958b\u3059\u308b (\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u3092\u4f5c\u6210)<br \/>\n$ php artisan storage:link (\u3088\u304f\u898b\u308b\u3068\u4e0a\u306b\u3082\u3042\u3063\u3066\u3084\u3063\u3066\u306a\u304b\u3063\u305f\u3002\u305d\u3046\u3044\u3046\u4e8b\u304b)<br \/>\n\u3053\u308c\u306b\u3088\u308a\u3001storage\/app\/public\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304cpublic\/storage\u3068\u3057\u3066\u516c\u958b\u3055\u308c\u3001storage\/app\/public\/product\/gazou\/\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u3069\u3061\u3089\u306e\u30a2\u30d7\u30ed\u30fc\u30c1\u3092\u4f7f\u3046\u3079\u304d\u304b\uff1f<br \/>\n\u30fb\u3082\u3057\u753b\u50cf\u3092\u983b\u7e41\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u305f\u308a\u3001storage\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u306f\u3001\u30a2\u30d7\u30ed\u30fc\u30c12\uff08\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u306e\u4f5c\u6210\uff09\u304c\u304a\u3059\u3059\u3081\u3067\u3059\u3002<br \/>\n\u30fb\u30b7\u30f3\u30d7\u30eb\u306a\u69cb\u9020\u3067\u3001\u5168\u3066\u306e\u516c\u958b\u30d5\u30a1\u30a4\u30eb\u3092public\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u307e\u3068\u3081\u305f\u3044\u5834\u5408\u306f\u3001\u30a2\u30d7\u30ed\u30fc\u30c11\u3067\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u3092public\u306b\u79fb\u52d5\u3059\u308b\u65b9\u304c\u308f\u304b\u308a\u3084\u3059\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<br \/>\n$ PATH=$PATH:\/usr\/local\/laravel-composer\/:~\/.config\/composer\/vendor\/bin\/ php artisan storage:link<br \/>\nThe [\/myproj\/60-nouen2\/public\/storage] link has been connected to [\/myproj\/60-nouen2\/storage\/app\/public].<br \/>\nThe links have been created.<br \/>\n$ ls -l storage\/app\/<br \/>\n\u5408\u8a08 4<br \/>\ndrwxr-xr-x 3 apache root 4096 9\u6708 11 xx:yy public<br \/>\n$ sudo mv -i storage\/product storage\/app\/public\/<br \/>\n(\u3053\u308c\u3067\u753b\u50cf\u304c\u8868\u793a\u3067\u304d\u305f)<br \/>\n$ ls -l public\/<br \/>\n\u5408\u8a08 12<br \/>\ndrwxr-xr-x 2 ore root 4096 9\u6708 10 xx:yy css<br \/>\n\\-rw-r&#8211;r&#8211; 1 ore root 0 4\u6708 12 2022 favicon.ico<br \/>\n\\-rw-r&#8211;r&#8211; 1 ore root 1710 4\u6708 12 2022 index.php<br \/>\n\\-rw-r&#8211;r&#8211; 1 ore root 24 4\u6708 12 2022 robots.txt<br \/>\nlrwxrwxrwx 1 ore root 36 9\u6708 11 xx:yy storage -&gt; \/myproj\/60-nouen2\/storage\/app\/public<br \/>\n(\u3088\u304f\u898b\u308b\u3068\u3001\u5358\u306b\u30ea\u30f3\u30af\u3092\u5f35\u3063\u3066\u3044\u308b\u3060\u3051\u3060\u3063\u305f)<\/p>\n<p>shop_product.php \u304b\u3089\u5b9f\u884c\u3057\u3066\u3044\u308b shop_cartin.php \u3092Larabel\u3078\u5909\u63db\u305b\u3088\u3002<br \/>\n(\u30b3\u30fc\u30c9\u306e\u30e1\u30e2\u306f\u7701\u7565)<br \/>\n1. \u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u8a2d\u5b9a\u30012. \u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306e\u4f5c\u6210\u30013. Blade\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u4f5c\u6210<br \/>\n4. \u30bb\u30c3\u30b7\u30e7\u30f3\u7ba1\u7406\u306e\u6539\u5584\uff08\u30aa\u30d7\u30b7\u30e7\u30f3\uff09<br \/>\nLaravel\u306e\u30bb\u30c3\u30b7\u30e7\u30f3\u306fsession()\u3092\u4f7f\u3063\u3066\u7c21\u5358\u306b\u7ba1\u7406\u3067\u304d\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001session()-&gt;regenerate()\u3067\u30bb\u30c3\u30b7\u30e7\u30f3ID\u306e\u518d\u751f\u6210\u304c\u3067\u304d\u3001session()-&gt;has()\u3067\u30bb\u30c3\u30b7\u30e7\u30f3\u306e\u6709\u7121\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u3053\u308c\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001PHP\u306esession_start()\u3084session_regenerate_id(true)\u3092\u76f4\u63a5\u547c\u3073\u51fa\u3059\u5fc5\u8981\u304c\u306a\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>shop_list.php \u304b\u3089\u5b9f\u884c\u3057\u3066\u3044\u308b shop_cartlook.php \u3092Larabel\u3078\u5909\u63db\u305b\u3088\u3002<br \/>\n1.\u30bb\u30c3\u30b7\u30e7\u30f3\u7ba1\u7406: session() \u95a2\u6570\u3067Laravel\u306e\u30bb\u30c3\u30b7\u30e7\u30f3\u7ba1\u7406\u304c\u884c\u308f\u308c\u3066\u3044\u307e\u3059\u3002cart \u3068 kazu \u306f\u30bb\u30c3\u30b7\u30e7\u30f3\u304b\u3089\u53d6\u5f97\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n2.\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u64cd\u4f5c: PDO \u3092\u76f4\u63a5\u4f7f\u7528\u3057\u3066\u3044\u305f\u90e8\u5206\u306f\u3001Laravel\u306eEloquent ORM\u3084\u30af\u30a8\u30ea\u30d3\u30eb\u30c0\u3092\u4f7f\u3063\u3066\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3068\u306e\u3084\u308a\u53d6\u308a\u3092\u884c\u3044\u307e\u3059\u3002\u30af\u30a8\u30ea\u30d3\u30eb\u30c0\u3092\u4f7f\u3063\u3066\u3001mst_product \u30c6\u30fc\u30d6\u30eb\u304b\u3089\u5546\u54c1\u60c5\u5831\u3092\u53d6\u5f97\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n3.\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u62e1\u5f35: @extends \u3068 @section \u3092\u4f7f\u3063\u3066Blade\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u62e1\u5f35\u3057\u3001\u5171\u901a\u30ec\u30a4\u30a2\u30a6\u30c8 (layouts.app) \u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>shop_cartlook.php \u304b\u3089\u547c\u3073\u51fa\u3057\u3066\u3044\u308b kazu_change.php \u3092 Laravel\u3078\u5909\u63db\u305b\u3088\u3002<br \/>\n1.\u30bb\u30c3\u30b7\u30e7\u30f3\u7ba1\u7406: Laravel \u306e\u30bb\u30c3\u30b7\u30e7\u30f3\u7ba1\u7406\u6a5f\u80fd\u3092\u4f7f\u7528\u3057\u3066\u3001session(&#8216;cart&#8217;) \u3067\u30ab\u30fc\u30c8\u306e\u5185\u5bb9\u3092\u53d6\u5f97\u3057\u3001\u66f4\u65b0\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n2.\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3: Request \u30af\u30e9\u30b9\u3067\u53d7\u3051\u53d6\u3063\u305f\u6570\u91cf (kazu) \u306b\u5bfe\u3057\u3066\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u3092\u884c\u3044\u30011\u4ee5\u4e0a10\u4ee5\u4e0b\u306e\u6574\u6570\u306b\u5236\u9650\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n3.\u524a\u9664\u51e6\u7406: \u5546\u54c1\u304c\u524a\u9664\u3055\u308c\u305f\u5834\u5408\u306b\u306f\u3001array_splice() \u3092\u4f7f\u3063\u3066 cart \u3068 kazu \u306e\u914d\u5217\u304b\u3089\u305d\u306e\u5546\u54c1\u3092\u524a\u9664\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n4.\u30ea\u30c0\u30a4\u30ec\u30af\u30c8: \u51e6\u7406\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001cartlook \u306e\u30eb\u30fc\u30c8\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3057\u3001\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u8868\u793a\u3057\u307e\u3059\u3002<\/p>\n<p>shop_cartlook.blade.php \u304b\u3089\u547c\u3073\u51fa\u3057\u3066\u3044\u308b shop_form.php \u3092 Laravel\u3078\u5909\u63db\u305b\u3088\u3002<br \/>\n1.Blade\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u4f5c\u6210: shop_form.php \u3092 Blade \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306b\u5909\u63db\u3057\u3001Laravel \u306e\u30d5\u30a9\u30fc\u30e0\u9001\u4fe1\u30e1\u30ab\u30cb\u30ba\u30e0\u3084 CSRF \u4fdd\u8b77\u3092\u8ffd\u52a0\u3057\u307e\u3057\u305f\u3002<br \/>\n2.\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3: \u540d\u524d\u3084\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3001\u90f5\u4fbf\u756a\u53f7\u3001\u96fb\u8a71\u756a\u53f7\u306b\u5bfe\u3057\u3066 Laravel \u306e Request \u30af\u30e9\u30b9\u3092\u4f7f\u3063\u305f\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u88c5\u3057\u307e\u3057\u305f\u3002<br \/>\n3.\u78ba\u8a8d\u30da\u30fc\u30b8: \u30e6\u30fc\u30b6\u30fc\u304c\u5165\u529b\u3057\u305f\u30c7\u30fc\u30bf\u3092\u78ba\u8a8d\u3059\u308b\u30da\u30fc\u30b8\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>shop_form_check.php \u304b\u3089\u5b9f\u884c\u3057\u3066\u3044\u308b shop_form_done.php \u3092Larabel\u306b\u5909\u63db\u305b\u3088\u3002<br \/>\n1.\u30e1\u30fc\u30eb\u9001\u4fe1: Laravel \u306e Mail \u30d5\u30a1\u30b5\u30fc\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u6ce8\u6587\u78ba\u8a8d\u30e1\u30fc\u30eb\u3068\u5e97\u8217\u3078\u306e\u901a\u77e5\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3057\u307e\u3059\u3002<br \/>\n2.\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u64cd\u4f5c: \u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u4f7f\u3063\u3066\u3001\u6ce8\u6587\u30c7\u30fc\u30bf\uff08dat_sales\uff09\u3068\u6ce8\u6587\u5546\u54c1\u306e\u30c7\u30fc\u30bf\uff08dat_sales_product\uff09\u3092\u5b89\u5168\u306b\u4fdd\u5b58\u3057\u307e\u3059\u3002<br \/>\n3.\u30bb\u30c3\u30b7\u30e7\u30f3\u7ba1\u7406: \u30bb\u30c3\u30b7\u30e7\u30f3\u306b\u4fdd\u5b58\u3055\u308c\u3066\u3044\u308b\u30ab\u30fc\u30c8\u60c5\u5831\u3092\u4f7f\u7528\u3057\u3066\u3001\u6ce8\u6587\u5185\u5bb9\u3092\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u4fdd\u5b58\u3057\u3001\u30e1\u30fc\u30eb\u9001\u4fe1\u5f8c\u306b\u30bb\u30c3\u30b7\u30e7\u30f3\u3092\u30af\u30ea\u30a2\u3057\u307e\u3059\u3002<\/p>\n<p>ShopController.php \u306b\u3066\u30e1\u30fc\u30eb\u9001\u4fe1\u3067\u304d\u3066\u3044\u306a\u3044\u3002\u3069\u306e\u3088\u3046\u306a\u539f\u56e0\u304c\u8003\u3048\u3089\u308c\u308b\u304b\uff1fsendmail\u30b3\u30de\u30f3\u30c9\u306b\u3066\u9001\u4fe1\u3067\u304d\u308b\u4e8b\u306f\u78ba\u8a8d\u3067\u304d\u3066\u3044\u308b\u3002<br \/>\n1. Mail\u30d5\u30a1\u30b5\u30fc\u30c9\u306e\u8a2d\u5b9a\u304c\u4e0d\u5b8c\u5168<br \/>\n\u30fbLaravel\u306eMail\u30d5\u30a1\u30b5\u30fc\u30c9\u3067\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3059\u308b\u5834\u5408\u3001config\/mail.php\u306b\u6b63\u3057\u3044\u8a2d\u5b9a\u304c\u3055\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u7279\u306b\u3001sendmail\u306e\u30d1\u30b9\u3084MAIL_MAILER\u306e\u8a2d\u5b9a\u304c\u6b63\u3057\u3044\u304b\u3069\u3046\u304b\u78ba\u8a8d\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u89e3\u6c7a\u7b56: MAIL_MAILER\u304csendmail\u306b\u306a\u3063\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u3088\u3046\u306b.env\u30d5\u30a1\u30a4\u30eb\u3067\u8a2d\u5b9a\u3092\u78ba\u8a8d\u30fb\u4fee\u6b63\u3057\u307e\u3059\u3002<br \/>\nMAIL_MAILER=sendmail<br \/>\nMAIL_HOST=localhost<br \/>\nMAIL_PORT=25<br \/>\nMAIL_USERNAME=null<br \/>\nMAIL_PASSWORD=null<br \/>\nMAIL_ENCRYPTION=null<br \/>\nMAIL_FROM_ADDRESS=abc@def.net<br \/>\nMAIL_FROM_NAME=&#8221;\u308d\u304f\u307e\u308b\u8fb2\u5712&#8221;<br \/>\n2. from\u30a2\u30c9\u30ec\u30b9\u306e\u4e0d\u4e00\u81f4<br \/>\n\u30fbMail::raw()\u306e2\u3064\u76ee\u306e\u9001\u4fe1\u3067\u3001from()\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066$email\u3092\u76f4\u63a5\u30bb\u30c3\u30c8\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u5024\u304c\u9001\u4fe1\u5143\u306e\u8a2d\u5b9a\u3068\u4e00\u81f4\u3057\u3066\u3044\u306a\u3044\u3068\u3001\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u5074\u3067\u62d2\u5426\u3055\u308c\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u30e1\u30fc\u30eb\u9001\u4fe1\u8005\uff08From\u30a2\u30c9\u30ec\u30b9\uff09\u304c\u9001\u4fe1\u3059\u308b\u30c9\u30e1\u30a4\u30f3\u3068\u4e00\u81f4\u3057\u3066\u3044\u306a\u3044\u3068\u3001\u30b9\u30d1\u30e0\u5bfe\u7b56\u3068\u3057\u3066\u30d6\u30ed\u30c3\u30af\u3055\u308c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u89e3\u6c7a\u7b56: from()\u306babc@def.net\u3092\u8a2d\u5b9a\u3057\u3001\u9001\u4fe1\u8005\u30a2\u30c9\u30ec\u30b9\u304c\u4e00\u8cab\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<br \/>\n(\u30b3\u30fc\u30c9\u306e\u30e1\u30e2\u306f\u7701\u7565)<br \/>\n3. \u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u78ba\u8a8d<br \/>\n\u30fb\u30e1\u30fc\u30eb\u9001\u4fe1\u304c\u5931\u6557\u3057\u3066\u3044\u308b\u5834\u5408\u3001Laravel\u306e\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\uff08storage\/logs\/laravel.log\uff09\u306b\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8a18\u9332\u3055\u308c\u3066\u3044\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u3053\u306e\u30ed\u30b0\u3092\u78ba\u8a8d\u3057\u3066\u3001\u4f55\u304c\u554f\u984c\u306b\u306a\u3063\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n4. \u30b5\u30fc\u30d0\u30fc\u5074\u306e\u30e1\u30fc\u30eb\u8a2d\u5b9a\u306e\u554f\u984c<br \/>\n\u30fb\u30b5\u30fc\u30d0\u30fc\u306e\u30e1\u30fc\u30eb\u8a2d\u5b9a\u304cLaravel\u306e\u30e1\u30fc\u30eb\u6a5f\u80fd\u3068\u9069\u5207\u306b\u9023\u643a\u3057\u3066\u3044\u306a\u3044\u53ef\u80fd\u6027\u3082\u3042\u308a\u307e\u3059\u3002sendmail\u30b3\u30de\u30f3\u30c9\u81ea\u4f53\u304c\u6a5f\u80fd\u3057\u3066\u3044\u3066\u3082\u3001Laravel\u304c\u5185\u90e8\u3067\u4f7f\u7528\u3057\u3066\u3044\u308b\u30e1\u30fc\u30eb\u9001\u4fe1\u30e9\u30a4\u30d6\u30e9\u30ea\uff08SwiftMailer\u306a\u3069\uff09\u304c\u6b63\u3057\u304f\u52d5\u4f5c\u3057\u3066\u3044\u306a\u3044\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u89e3\u6c7a\u7b56: \u30b5\u30fc\u30d0\u30fc\u306esendmail\u30d1\u30b9\u304c\u6b63\u3057\u3044\u304b\u3001config\/mail.php\u306esendmail\u8a2d\u5b9a\u304c\u6b63\u3057\u3044\u304b\u78ba\u8a8d\u3057\u307e\u3059\u3002<br \/>\n&#8216;sendmail&#8217; =&gt; &#8216;\/usr\/sbin\/sendmail -bs&#8217;,<br \/>\n5. \u30e1\u30fc\u30eb\u306e\u6587\u5b57\u30b3\u30fc\u30c9\u3084\u30a8\u30f3\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0<br \/>\n\u30fb\u65e5\u672c\u8a9e\u306e\u30e1\u30fc\u30eb\u9001\u4fe1\u306e\u5834\u5408\u3001mb_language\u3084mb_internal_encoding\u306e\u8a2d\u5b9a\u304c\u5fc5\u8981\u306a\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002Laravel\u306eMail\u3067\u306f\u305d\u306e\u307e\u307e\u30c6\u30ad\u30b9\u30c8\u3092\u9001\u308b\u3068\u30a8\u30f3\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u306e\u554f\u984c\u304c\u767a\u751f\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u89e3\u6c7a\u7b56: Mail\u30d5\u30a1\u30b5\u30fc\u30c9\u306e\u524d\u306b\u3001\u30e1\u30fc\u30eb\u9001\u4fe1\u306e\u969b\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u6587\u5b57\u30b3\u30fc\u30c9\u8a2d\u5b9a\u3092\u884c\u3046\u3053\u3068\u3092\u691c\u8a0e\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\nmb_language(&#8216;Japanese&#8217;);<br \/>\nmb_internal_encoding(&#8216;UTF-8&#8217;);<\/p>\n<p>https \u30a8\u30e9\u30fc\u30b3\u30fc\u30c9 419\u3001\u3067\u30b0\u30b0\u308b\u3068\u3001\u3044\u304d\u306a\u308aLaravel\u304c\u30d2\u30c3\u30c8\u3059\u308b\u4ef6\uff1a<br \/>\n[Laravel] \u6700\u3082\u7c21\u5358\u3067\u6700\u3082\u96e3\u3057\u3044419\u30a8\u30e9\u30fc\u306e\u89e3\u6c7a\u7b56<br \/>\nhttps:\/\/zenn.dev\/wadakatu\/articles\/f3948e577a3b65<\/p>\n<p>edit_check.blade.php \u3067 $staff-&gt;pass \u304c\u53d7\u3051\u53d6\u308c\u3066\u3044\u306a\u3044\u306e\u306f\u3001edit.blade.php \u304b\u3089\u30d5\u30a9\u30fc\u30e0\u30c7\u30fc\u30bf\u3092\u6b63\u3057\u304f\u6e21\u305b\u3066\u3044\u306a\u3044\u305f\u3081\u3067\u3059\u3002<br \/>\n\u307e\u305a\u3001edit_check.blade.php \u3067\u306f $staff \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u5b58\u5728\u305b\u305a\u3001\u30d5\u30a9\u30fc\u30e0\u304b\u3089\u6e21\u3055\u308c\u305f\u30c7\u30fc\u30bf\u3092\u53d7\u3051\u53d6\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002Laravel\u3067\u306f\u3001\u30d5\u30a9\u30fc\u30e0\u30c7\u30fc\u30bf\u306f request \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304b\u3089\u53d7\u3051\u53d6\u308b\u306e\u304c\u4e00\u822c\u7684\u3067\u3059\u3002\u30d5\u30a9\u30fc\u30e0\u304b\u3089\u6e21\u3055\u308c\u305f\u30c7\u30fc\u30bf\u3092\u76f4\u63a5 Blade \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3067\u78ba\u8a8d\u3057\u305f\u3044\u5834\u5408\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<br \/>\n\u8aac\u660e<br \/>\n\u30fb\u30d5\u30a9\u30fc\u30e0\u3067\u9001\u4fe1\u3055\u308c\u305f\u30c7\u30fc\u30bf\u306f\u3001request() \u3092\u4f7f\u3063\u3066\u53d7\u3051\u53d6\u308a\u307e\u3059\u3002<br \/>\n\u30fb\u30d1\u30b9\u30ef\u30fc\u30c9\u3084\u540d\u524d\u306a\u3069\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u306f request(&#8216;name&#8217;) \u3084 request(&#8216;pass&#8217;) \u3067\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002<br \/>\n\u30fb\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u4e00\u81f4\u30c1\u30a7\u30c3\u30af\u3082 request(&#8216;pass&#8217;) \u3068 request(&#8216;pass2&#8217;) \u3092\u6bd4\u8f03\u3059\u308b\u5f62\u306b\u5909\u66f4\u3057\u307e\u3057\u305f\u3002<br \/>\n\u3053\u308c\u306b\u3088\u308a\u3001edit_check.blade.php \u3067\u6b63\u3057\u304f\u30d5\u30a9\u30fc\u30e0\u30c7\u30fc\u30bf\u3092\u53d7\u3051\u53d6\u3063\u3066\u51e6\u7406\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>Laravel \u306e Hash::make() \u95a2\u6570\u306f\u3001\u901a\u5e38 60 \u6587\u5b57\u306e\u30cf\u30c3\u30b7\u30e5\u3092\u751f\u6210\u3057\u307e\u3059\u3002\u3053\u306e\u305f\u3081\u3001password \u30ab\u30e9\u30e0\u306e\u30b5\u30a4\u30ba\u304c\u5c0f\u3055\u3044\u5834\u5408\u306b\u3001\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3059\u3002<br \/>\n$ ALTER TABLE mst_staff MODIFY COLUMN password VARCHAR(255);<br \/>\n\u3053\u308c\u306b\u3088\u308a\u300160\u6587\u5b57\u4ee5\u4e0a\u306e\u30cf\u30c3\u30b7\u30e5\u5024\u3092\u683c\u7d0d\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002255 \u306a\u3069\u4f59\u88d5\u3092\u6301\u305f\u305b\u305f\u30b5\u30a4\u30ba\u306b\u8a2d\u5b9a\u3059\u308b\u306e\u304c\u4e00\u822c\u7684\u3067\u3059\u3002<br \/>\n$ SHOW COLUMNS FROM mst_staff;<br \/>\n\u3082\u3057 Laravel \u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u3001\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u30d5\u30a1\u30a4\u30eb\u3067 password \u30ab\u30e9\u30e0\u306e\u30b5\u30a4\u30ba\u3092\u5909\u66f4\u3067\u304d\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u4f8b\u3092\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\\Schema::table(&#8216;mst_staff&#8217;, function (Blueprint $table) {<br \/>\n\\ $table-&gt;string(&#8216;password&#8217;, 255)-&gt;change();<br \/>\n\\});<br \/>\n\u53c2\u8003\u66f8\u7c4d\uff14\u306b\u3066\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u8aad\u3093\u3060\u3002\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u5185\u5bb9\u3092Laravel\u306ePG\u304b\u3089\u751f\u6210\u3059\u308b\u3002(2024.11)<\/p>\n<p>Larabel\u306e\u6a5f\u80fd\u3067\u3001\u4ee5\u4e0b\u306e\uff12\u3064\u306e\u9055\u3044\u3092\u8ff0\u3079\u3088\u3002<br \/>\n&lt;a href=&#8221;{{ route(&#8216;shop.cartlook&#8217;) }}&#8221;&gt;\u30ab\u30fc\u30c8\u3092\u898b\u308b&lt;\/a&gt;&lt;br \/&gt;<br \/>\n&lt;a href=&#8221;{{ url(&#8216;shop\/cartlook&#8217;) }}&#8221;&gt;\u30ab\u30fc\u30c8\u3092\u898b\u308b&lt;\/a&gt;&lt;br \/&gt;<br \/>\n\u30fb**route()**\u306f\u3001\u540d\u524d\u4ed8\u304d\u30eb\u30fc\u30c8\u3092\u4f7f\u3063\u3066URL\u3092\u751f\u6210\u3059\u308b\u305f\u3081\u3001\u67d4\u8edf\u6027\u304c\u9ad8\u304f\u3001\u30eb\u30fc\u30c8\u304c\u5909\u66f4\u3055\u308c\u305f\u969b\u306e\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u304c\u5bb9\u6613\u3067\u3059\u3002<br \/>\n\u30fb**url()**\u306f\u3001\u6307\u5b9a\u3057\u305f\u30d1\u30b9\u3092\u57fa\u306bURL\u3092\u751f\u6210\u3059\u308b\u305f\u3081\u3001\u7c21\u5358\u3067\u3059\u304c\u3001\u30eb\u30fc\u30c8\u304c\u5909\u66f4\u3055\u308c\u305f\u969b\u306e\u7ba1\u7406\u304c\u96e3\u3057\u304f\u306a\u308a\u307e\u3059\u3002<br \/>\nroute()\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u30b3\u30fc\u30c9\u306e\u4fdd\u5b88\u6027\u304c\u5411\u4e0a\u3057\u3001\u7279\u306b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u6210\u9577\u3057\u305f\u308a\u30eb\u30fc\u30c8\u69cb\u9020\u304c\u5909\u66f4\u3055\u308c\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u5834\u5408\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002<\/p>\n<p>laravel https 302 error code\u3001\u3067\u30b0\u30b0\u3063\u305f\uff1a<br \/>\nhttps:\/\/qiita.com\/Yuzaburo\/items\/ca5a757c6ed223e0931f<br \/>\n(\u753b\u50cf\u304c\u8ee2\u9001\u3055\u308c\u3066\u306a\u304f\u3066\u3001\u53d7\u3051\u308b\u5074\u3067\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u3067\u30a8\u30e9\u3063\u305f)<br \/>\n\u7121\u6599\u5224ChatGPT\u3067\u3001pro_add.php -&gt; products\/add.blade.php \u5909\u63db\u3057\u305f\u304c\u3001<br \/>\n&lt;form method=&#8221;post&#8221; action=&#8221;pro_add_check.php&#8221; enctype=&#8221;multipart\/form-data&#8221;&gt;<br \/>\n\u304b\u3089<br \/>\n&lt;form method=&#8221;post&#8221; action=&#8221;{{ route(&#8216;products.add_check&#8217;) }}&#8221;&gt;<br \/>\n\u306b\u5909\u63db\u3055\u308c\u305f\u3002\u7121\u6599\u5224ChatGPT\u306f\u6642\u3005\u9593\u9055\u3046\u3002<br \/>\n\\<br \/>\n\u305d\u306e\u4ed6\u3001405\u3001POST\u5f85\u3061\u306bGET<br \/>\nhttps:\/\/qiita.com\/kiyc\/items\/692a53e1023ea72888d4<br \/>\nhttps:\/\/qiita.com\/aminevsky\/items\/04cdf17686e28c9847c4<br \/>\nhttps:\/\/qiita.com\/miriwo\/items\/2452b3466737cd117248<br \/>\nhttps:\/\/qiita.com\/kuroudoart\/items\/44eca2150f102ba7fdb4<\/p>\n<p>\u6b8b\u308a\u306e\u30b3\u30fc\u30c9\u3082\u540c\u69d8\u306b\u3001\u53c2\u8003\u66f8\u7c4d\uff11\u3092\u5fa9\u7fd2\u3057\u306a\u304c\u3089\u5909\u63db\u3057\u3066\u3001\u307b\u307c\u5b9f\u88c5\u3057\u305f\u3002(2024.10)<\/p>\n<p>\/*************************************************************************************\/<br \/>\n\u3088\u308a\u5b9f\u969b\u306bEC\u30b5\u30a4\u30c8\u306b\u4f7f\u3048\u305d\u3046\u306aLaravel\u306e\u30c4\u30fc\u30eb\u3092\u63a2\u3057\u305f<br \/>\nhttps:\/\/seesaawiki.jp\/lifewithslackzaurus_15_0\/d\/PHP\/Laravel\/OSS%20EC%a5%b7%a5%b9%a5%c6%a5%e0%a1%a2%cd%bd%cc%f3%a5%b7%a5%b9%a5%c6%a5%e0<br \/>\n\u304c\u3001\u4e3b\u306a\u9ad8\u30b7\u30a7\u30a2\u306a\u30bd\u30d5\u30c8\u306f\u30ed\u30fc\u30b3\u30fc\u30c9\u3084\u30af\u30e9\u30a6\u30c9\u3002OSS\u3082\u3067\u304b\u304f\u3066\u8907\u96d1\u305d\u3046\u306a\u306e\u3067\u3001<br \/>\nLaravel\u3067\u306e\u6700\u5c0f\u69cb\u6210\u306a\u3082\u306e\u3092\u4f7f\u3063\u3066\u307f\u308b\u4e8b\u306b\u3057\u305f\u3002<br \/>\nhttps:\/\/seesaawiki.jp\/lifewithslackzaurus_15_0\/d\/Laravel%20Ecommerce<\/p>\n<p>\/*************************************************************************************\/<br \/>\n\u53c2\u8003\u66f8\u7c4d\uff11\u306eLaravel\u5316\u3057\u305fshop_*.php\u3092Lunar\u306e\u30d8\u30c3\u30c9\u3068\u3057\u3066\u5165\u308c\u8fbc\u3080\u3002(2024.10)<br \/>\n\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u3092\u305d\u306e\u307e\u307e(HTML\/CSS\u306e\u307f\u3067\u9811\u5f35\u308b)\u3067\u884c\u304f\u304b\u3001\u751fJS\u304bReact\u5316\u3059\u308b\u304b\u306f\u5f8c\u304b\u3089\u691c\u8a0e\u3059\u308b\u3002<\/p>\n<p>https:\/\/seesaawiki.jp\/lifewithslackzaurus_15_0\/d\/Laravel%20Ecommerce%20%28Lunar%29%20%bb%c8%a4%a4%ca%fd<br \/>\n\u4e0a\u3067\u3001ShopController.php \u3092<br \/>\nuse Lunar\\Base\\Traits\\LunarUser;<br \/>\nuse Lunar\\Base\\LunarUser as LunarUserInterface;<br \/>\n\u3092\u8003\u616e\u3057\u3066Lunar\u3067\u52d5\u4f5c\u3059\u308b\u3088\u3046\u306b\u5909\u63db\u3057\u305f\u304c\u3001DB\u5408\u308f\u305b\u3084\u52d5\u4f5c\u78ba\u8a8d\u306f\u3053\u3053\u3067\u3084\u308b\u3002<br \/>\nLunar\u306b\u306f\u4ee5\u4e0b\u306e\u30c6\u30fc\u30d6\u30eb\u304c\u3042\u308b\u3002<br \/>\nactivity_log<br \/>\nfailed_jobs<br \/>\nlunar_addresses<br \/>\n(\u30e1\u30e2\u7701\u7565)<br \/>\n\u5148\u306eShopController.php \u306b\u3066\u4f7f\u7528\u3057\u3066\u3044\u308b\u4ee5\u4e0b\u306e\u30c6\u30fc\u30d6\u30eb\u3092\u4e0a\u306eLunar\u306e\u30c6\u30fc\u30d6\u30eb\u306b\u5272\u308a\u632f\u308a\u305f\u3044\u3002<br \/>\n\u4ee5\u4e0b\u306e\u30c6\u30fc\u30d6\u30eb\u306e gazou \u306f\u3001\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u540d\u306e\u3053\u3068\u3002<br \/>\n\u5546\u54c1\u4e00\u89a7\u30c6\u30fc\u30d6\u30eb mst_product (code,name,price,gazou)<br \/>\n\u6ce8\u6587\u60c5\u5831\u30c6\u30fc\u30d6\u30eb dat_sales (code, date, code_member, name, email, postal1, postal2, address, tel)<br \/>\n\u6ce8\u6587\u5546\u54c1\u30c6\u30fc\u30d6\u30eb dat_sales_product (code, code_sales, code_product, price, quantity)<br \/>\n\u4e0a\u8a18\u306eLunar\u306e\u30c6\u30fc\u30d6\u30eb\u3092\u3082\u3068\u306b\u3001ShopController.php\u306b\u3066\u4f7f\u7528\u3057\u3066\u3044\u308b3\u3064\u306e\u30c6\u30fc\u30d6\u30eb\u3092Lunar\u306e\u30b7\u30b9\u30c6\u30e0\u306b\u9069\u5408\u3055\u305b\u308b\u65b9\u6cd5\u3092\u8003\u3048\u308b\u3068\u3001\u305d\u308c\u305e\u308c\u306e\u5f79\u5272\u3092Lunar\u306e\u30c6\u30fc\u30d6\u30eb\u69cb\u9020\u306b\u30de\u30c3\u30d4\u30f3\u30b0\u3067\u304d\u307e\u3059\u3002(ChatGPT)<br \/>\n### 1. **\u5546\u54c1\u4e00\u89a7\u30c6\u30fc\u30d6\u30eb (mst_product)**<br \/>\n\\- **\u30c6\u30fc\u30d6\u30eb\u5185\u5bb9**: \u5546\u54c1\u30b3\u30fc\u30c9 (code), \u5546\u54c1\u540d (name), \u4fa1\u683c (price), \u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u540d (gazou)<br \/>\n\\- **\u5bfe\u5fdc\u3059\u308bLunar\u30c6\u30fc\u30d6\u30eb**:<br \/>\n\\ &#8211; `lunar_products`: \u5546\u54c1\u306e\u57fa\u672c\u60c5\u5831\uff08\u5546\u54c1\u540d\u3084SKU\u306a\u3069\uff09\u3092\u7ba1\u7406\u3057\u307e\u3059\u3002`name`\u3084`code`\u306f\u3053\u3053\u306b\u30de\u30c3\u30d4\u30f3\u30b0\u3055\u308c\u307e\u3059\u3002<br \/>\n\\ &#8211; `lunar_product_variants`: `price`\u3084\u305d\u306e\u4ed6\u306e\u30d0\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u3054\u3068\u306e\u60c5\u5831\uff08\u4f8b: SKU\u3084\u30b5\u30a4\u30ba\u3001\u5728\u5eab\uff09\u3092\u4fdd\u6301\u3057\u307e\u3059\u3002\u4fa1\u683c\u306f\u3053\u306e\u30c6\u30fc\u30d6\u30eb\u306b\u683c\u7d0d\u3055\u308c\u308b\u305f\u3081\u3001`price`\u306f\u3053\u3053\u306b\u4fdd\u5b58\u3055\u308c\u307e\u3059\u3002<br \/>\n\\ &#8211; `media`: \u5546\u54c1\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u306f`media`\u30c6\u30fc\u30d6\u30eb\u306b\u683c\u7d0d\u3055\u308c\u307e\u3059\u3002\u3053\u306e\u30c6\u30fc\u30d6\u30eb\u306e`file_name`\u30d5\u30a3\u30fc\u30eb\u30c9\u306b`gazou`\u304c\u5bfe\u5fdc\u3057\u307e\u3059\u3002<\/p>\n<p>price\u306flunar_prices\u30c6\u30fc\u30d6\u30eb\u306b\u5165\u3063\u3066\u3044\u308b\u3088\u3046\u3060\u304c\u3001product_id\u304c\u7121\u3044\u3088\u3046\u306b\u898b\u3048\u308b\u304c\u3001\u3069\u306e\u5546\u54c1\u306e\u5024\u6bb5\u304b\u3092\u3069\u3046\u3084\u3063\u3066\u7279\u5b9a\u3059\u308b\uff1f<br \/>\nhttps:\/\/seesaawiki.jp\/lifewithslackzaurus_15_0\/d\/Laravel%20Ecommerce%20%28Lunar%29%20%bb%c8%a4%a4%ca%fd<\/p>\n<p>lunar_prices\u30c6\u30fc\u30d6\u30eb\u306epriceable_id\u306b\u306f\u8907\u6570\u306eprice\u304c\u3042\u308b\u3002\u6700\u65b0\u306eprice\u3092\u53d6\u5f97\u3059\u308b\u306b\u306fSQL\u30b3\u30de\u30f3\u30c9\u3092\u3069\u3046\u66f8\u304f\uff1f<br \/>\n`lunar_prices`\u30c6\u30fc\u30d6\u30eb\u3067\u7279\u5b9a\u306e`priceable_id`\u306b\u5bfe\u3057\u3066\u6700\u65b0\u306e\u4fa1\u683c\u3092\u53d6\u5f97\u3059\u308b\u305f\u3081\u306b\u306f\u3001SQL\u306e`GROUP BY`\u3068`MAX`\u95a2\u6570\u3092\u4f7f\u3063\u3066\u6700\u65b0\u306e`created_at`\u307e\u305f\u306f`updated_at`\u3092\u6301\u3064\u884c\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\u304c\u4e00\u822c\u7684\u3067\u3059\u3002\u4ee5\u4e0b\u306f\u305d\u306eSQL\u30af\u30a8\u30ea\u306e\u4f8b\u3067\u3059\u3002<br \/>\n### \u4f8b: \u7279\u5b9a\u306e`priceable_id`\u306e\u6700\u65b0\u4fa1\u683c\u3092\u53d6\u5f97\u3059\u308b\u30af\u30a8\u30ea<br \/>\n\\SELECT lp.*<br \/>\n\\FROM lunar_prices lp<br \/>\n\\INNER JOIN (<br \/>\n\\ SELECT priceable_id, MAX(updated_at) AS latest_update<br \/>\n\\ FROM lunar_prices<br \/>\n\\ GROUP BY priceable_id<br \/>\n\\) AS latest_prices<br \/>\n\\ON lp.priceable_id = latest_prices.priceable_id<br \/>\n\\AND lp.updated_at = latest_prices.latest_update<br \/>\n\\WHERE lp.priceable_id = 1; &#8212; \u3053\u3053\u306b\u5bfe\u8c61\u306epriceable_id\u3092\u6307\u5b9a<br \/>\n### \u8aac\u660e<br \/>\n\\- **`MAX(updated_at)`**: `updated_at`\u304c\u6700\u65b0\u306e\u65e5\u4ed8\u3092\u6301\u3064\u884c\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<br \/>\n\\- **`GROUP BY priceable_id`**: \u540c\u3058`priceable_id`\u3054\u3068\u306b\u6700\u65b0\u306e\u65e5\u4ed8\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<br \/>\n\\- **`INNER JOIN`**: \u305d\u306e\u6700\u65b0\u65e5\u4ed8\u306b\u8a72\u5f53\u3059\u308b\u884c\u306e\u307f\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<br \/>\n\\- **`WHERE priceable_id = 1`**: \u7279\u5b9a\u306e`priceable_id`\uff08\u3053\u3053\u3067\u306f1\uff09\u306b\u7d5e\u308a\u8fbc\u307f\u307e\u3059\u3002<br \/>\n\u3053\u306e\u30af\u30a8\u30ea\u306b\u3088\u308a\u3001`priceable_id`\u3054\u3068\u306b\u6700\u65b0\u306e\u4fa1\u683c\u304c\u53d6\u5f97\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u4e0a\u8a18\u306eSQL\u30b3\u30de\u30f3\u30c9\u3092Laravel\u3067\u306f\u3069\u3046\u66f8\u304f\u304b\uff1f<br \/>\nLaravel\u306eEloquent\u3092\u4f7f\u3063\u3066\u3001`lunar_prices`\u30c6\u30fc\u30d6\u30eb\u304b\u3089\u6700\u65b0\u306e\u4fa1\u683c\u3092\u53d6\u5f97\u3059\u308b\u305f\u3081\u306e\u30af\u30a8\u30ea\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u66f8\u3051\u307e\u3059\u3002<br \/>\n\\use Illuminate\\Support\\Facades\\DB;<br \/>\n\\use App\\Models\\Lunar\\Price;<br \/>\n\\$latestPrice = Price::where(&#8216;priceable_id&#8217;, 1) \/\/ \u5bfe\u8c61\u306epriceable_id\u3092\u6307\u5b9a<br \/>\n\\ -&gt;orderBy(&#8216;updated_at&#8217;, &#8216;desc&#8217;) \/\/ updated_at\u3067\u6700\u65b0\u9806\u306b\u4e26\u3079\u308b<br \/>\n\\ -&gt;first(); \/\/ \u6700\u521d\u306e1\u3064\u3092\u53d6\u5f97<br \/>\n### \u8aac\u660e<br \/>\n\\- **`where(&#8216;priceable_id&#8217;, 1)`**: \u7279\u5b9a\u306e`priceable_id`\uff08\u3053\u3053\u3067\u306f1\uff09\u3092\u30d5\u30a3\u30eb\u30bf\u3057\u307e\u3059\u3002<br \/>\n\\- **`orderBy(&#8216;updated_at&#8217;, &#8216;desc&#8217;)`**: `updated_at`\u30ab\u30e9\u30e0\u3092\u964d\u9806\u306b\u4e26\u3079\u3001\u6700\u65b0\u306e\u3082\u306e\u3092\u5148\u982d\u306b\u6301\u3063\u3066\u304d\u307e\u3059\u3002<br \/>\n\\- **`first()`**: \u6700\u521d\u306e1\u3064\u3001\u3064\u307e\u308a\u6700\u65b0\u306e\u4fa1\u683c\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<br \/>\n\u3053\u308c\u306b\u3088\u308a\u3001\u6307\u5b9a\u3055\u308c\u305f`priceable_id`\u306b\u5bfe\u3057\u3066\u6700\u65b0\u306e\u4fa1\u683c\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n#### \u5225\u306e\u65b9\u6cd5\uff08\u30af\u30a8\u30ea\u30d3\u30eb\u30c0\u30fc\u3092\u4f7f\u3046\u5834\u5408\uff09<br \/>\n\\$latestPrice = DB::table(&#8216;lunar_prices&#8217;)<br \/>\n\\ -&gt;where(&#8216;priceable_id&#8217;, 1) \/\/ priceable_id\u3092\u30d5\u30a3\u30eb\u30bf<br \/>\n\\ -&gt;orderBy(&#8216;updated_at&#8217;, &#8216;desc&#8217;) \/\/ updated_at\u3067\u964d\u9806\u30bd\u30fc\u30c8<br \/>\n\\ -&gt;first(); \/\/ \u6700\u65b0\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97<br \/>\n\u3053\u306e\u65b9\u6cd5\u3067\u3082\u540c\u3058\u7d50\u679c\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\n<p>\u5546\u54c1\u540d\u306f\u3001lunar_products\u306eattribute_data\u306b\u3001{&#8220;name&#8221;:{&#8220;field_type&#8221;:&#8221;Lunar\\\\FieldTypes\\\\TranslatedText&#8221;,&#8221;value&#8221;:{&#8220;ja&#8221;:&#8221;\\u30c8\\u30de\\u30c8&#8243;}},&#8221;description&#8221;:{&#8220;field_type&#8221;:&#8221;Lunar\\\\FieldTypes\\\\TranslatedText&#8221;,&#8221;value&#8221;:{&#8220;ja&#8221;:&#8221;&lt;p&gt;\\u5c71\\u58f2\\u308a&lt;\\\/p&gt;&#8221;}}}\u3068\u3044\u3046\u5f62\u3067\u5165\u3063\u3066\u3044\u308b\u304c\u3001\u30af\u30a8\u30ea\u30d3\u30eb\u30c0\u30fc\u3092\u4f7f\u3046\u5834\u5408\u3067\u3001\u3069\u3046\u53d6\u308a\u51fa\u3059\u304b\uff1f<br \/>\n`lunar_products` \u30c6\u30fc\u30d6\u30eb\u306e `attribute_data` \u30ab\u30e9\u30e0\u306b\u306f JSON \u5f62\u5f0f\u3067\u5546\u54c1\u540d\u3084\u8aac\u660e\u304c\u4fdd\u5b58\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001Laravel\u306e\u30af\u30a8\u30ea\u30d3\u30eb\u30c0\u30fc\u3092\u4f7f\u3063\u3066\u30c7\u30fc\u30bf\u3092\u62bd\u51fa\u3057\u3001`JSON_EXTRACT` \u3092\u5229\u7528\u3057\u3066\u7279\u5b9a\u306e\u30ad\u30fc\u304b\u3089\u5024\u3092\u53d6\u308a\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\u4f8b\u3048\u3070\u3001\u5546\u54c1\u540d (`&#8221;name&#8221;`) \u3092\u65e5\u672c\u8a9e\uff08`&#8221;ja&#8221;`\uff09\u3067\u53d6\u308a\u51fa\u3059\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30af\u30a8\u30ea\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n### \u30af\u30a8\u30ea\u30d3\u30eb\u30c0\u30fc\u3092\u4f7f\u7528\u3057\u305f\u5834\u5408<br \/>\n\\use Illuminate\\Support\\Facades\\DB;<br \/>\n\\$productName = DB::table(&#8216;lunar_products&#8217;)<br \/>\n\\ -&gt;select(DB::raw(&#8220;JSON_UNQUOTE(JSON_EXTRACT(attribute_data, &#8216;$.name.value.ja&#8217;)) as product_name&#8221;))<br \/>\n\\ -&gt;where(&#8216;id&#8217;, 1) \/\/ \u5546\u54c1\u306eID\u3067\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0<br \/>\n\\ -&gt;first();<br \/>\n\\echo $productName-&gt;product_name;<br \/>\n### \u8aac\u660e<br \/>\n\\- **`DB::raw()`**: \u30af\u30a8\u30ea\u5185\u3067\u751f\u306eSQL\u6587\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u306b\u4f7f\u3044\u307e\u3059\u3002<br \/>\n\\- **`JSON_EXTRACT()`**: JSON\u30c7\u30fc\u30bf\u304b\u3089\u7279\u5b9a\u306e\u30ad\u30fc\u306e\u5024\u3092\u62bd\u51fa\u3057\u307e\u3059\u3002`$.name.value.ja` \u306f\u3001`attribute_data` \u5185\u306e `name` \u30ad\u30fc\u306e `value` \u306e\u4e2d\u306e `ja` \u3092\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\\- **`JSON_UNQUOTE()`**: JSON\u5024\u304c\u30af\u30a9\u30fc\u30c8\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u306b\u3001\u30af\u30a9\u30fc\u30c8\u3092\u9664\u53bb\u3057\u3066\u5b9f\u969b\u306e\u6587\u5b57\u5217\u3092\u8fd4\u3057\u307e\u3059\u3002<br \/>\n\\- **`where(&#8216;id&#8217;, 1)`**: \u5546\u54c1ID\u306b\u57fa\u3065\u3044\u3066\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n### \u4f8b: \u5546\u54c1\u540d\u3068\u8aac\u660e\u3092\u540c\u6642\u306b\u53d6\u5f97\u3059\u308b\u5834\u5408<br \/>\n\\$productInfo = DB::table(&#8216;lunar_products&#8217;)<br \/>\n\\ -&gt;select(DB::raw(&#8221;<br \/>\n\\ JSON_UNQUOTE(JSON_EXTRACT(attribute_data, &#8216;$.name.value.ja&#8217;)) as product_name,<br \/>\n\\ JSON_UNQUOTE(JSON_EXTRACT(attribute_data, &#8216;$.description.value.ja&#8217;)) as product_description<br \/>\n\\ &#8220;))<br \/>\n\\ -&gt;where(&#8216;id&#8217;, 1) \/\/ \u5546\u54c1\u306eID\u3067\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0<br \/>\n\\ -&gt;first();<br \/>\n\\echo $productInfo-&gt;product_name;<br \/>\n\\echo $productInfo-&gt;product_description;<br \/>\n\u3053\u306e\u65b9\u6cd5\u3067\u3001\u5546\u54c1\u540d\u3084\u8aac\u660e\u306a\u3069\u3001JSON\u5f62\u5f0f\u3067\u4fdd\u5b58\u3055\u308c\u3066\u3044\u308b\u30c7\u30fc\u30bf\u3092\u7c21\u5358\u306b\u62bd\u51fa\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u914d\u5217\u306b\u5bfe\u3057\u3066 @foreach ($product[] as $product) \u3068\u3044\u3046\u8a18\u8ff0\u306f\u3001\u6b63\u3057\u304f\u6a5f\u80fd\u3057\u307e\u305b\u3093\u3002$product[] \u306e\u3088\u3046\u306a\u8a18\u8ff0\u306f\u65b0\u3057\u3044\u8981\u7d20\u3092\u914d\u5217\u306b\u8ffd\u52a0\u3059\u308b\u305f\u3081\u306e\u3082\u306e\u3067\u3001foreach \u3067\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u3059\u308b\u305f\u3081\u306e\u69cb\u6587\u3068\u3057\u3066\u306f\u4e0d\u9069\u5207\u3067\u3059\u3002<br \/>\n\u914d\u5217\u306b\u5bfe\u3057\u3066\u30eb\u30fc\u30d7\u51e6\u7406\u3092\u884c\u3044\u305f\u3044\u5834\u5408\u3001@foreach \u306f\u6b21\u306e\u3088\u3046\u306b\u4f7f\u3044\u307e\u3059\uff1a<br \/>\n\\@foreach ($products as $product)<br \/>\n\\&lt;p&gt;<br \/>\n\\ &lt;a href=&#8221;{{ url(&#8216;shop\/product&#8217;, [&#8216;procode&#8217; =&gt; $product[&#8216;code&#8217;]]) }}&#8221;&gt;<br \/>\n\\ {{ htmlspecialchars($product[&#8216;name&#8217;], ENT_QUOTES, &#8216;UTF-8&#8217;) }} &#8212;<br \/>\n\\ {{ htmlspecialchars($product[&#8216;price&#8217;], ENT_QUOTES, &#8216;UTF-8&#8217;) }}\u5186<br \/>\n\\ &lt;\/a&gt;<br \/>\n\\&lt;\/p&gt;<br \/>\n\\@endforeach<br \/>\n\u4fee\u6b63\u306e\u30dd\u30a4\u30f3\u30c8<br \/>\n\u30fb@foreach \u69cb\u6587\u306f\u3001\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u307e\u305f\u306f\u914d\u5217\u306b\u5bfe\u3057\u3066\u4f7f\u3044\u307e\u3059\u3002\u3057\u305f\u304c\u3063\u3066\u3001$products \u306f\u914d\u5217\u3067\u3042\u308a\u3001\u305d\u306e\u4e2d\u8eab\u3092 foreach \u3067\u30eb\u30fc\u30d7\u3059\u308b\u306e\u304c\u6b63\u3057\u3044\u4f7f\u3044\u65b9\u3067\u3059\u3002<br \/>\n\u30fb$product[] \u306f\u65b0\u3057\u3044\u8981\u7d20\u3092\u914d\u5217\u306b\u8ffd\u52a0\u3059\u308b\u8a18\u8ff0\u3067\u3042\u308a\u3001\u30eb\u30fc\u30d7\u51e6\u7406\u3092\u884c\u3046\u305f\u3081\u306e\u3082\u306e\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u30eb\u30fc\u30c8\u30d1\u30e9\u30e1\u30fc\u30bf\u3001\u30af\u30a8\u30ea\u30d1\u30e9\u30e1\u30fc\u30bf\u3001\u30d5\u30a9\u30fc\u30e0\u30c7\u30fc\u30bf\u3001JSON\u30c7\u30fc\u30bf\uff1a<br \/>\n`$request` \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u3001**GET**\u30ea\u30af\u30a8\u30b9\u30c8\u3067\u3082**POST**\u30ea\u30af\u30a8\u30b9\u30c8\u3067\u3082\u5229\u7528\u3067\u304d\u307e\u3059\u3002Laravel\u306e`Request`\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u3001HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u5168\u4f53\u3092\u7ba1\u7406\u3057\u3066\u304a\u308a\u3001GET\u30d1\u30e9\u30e1\u30fc\u30bf\uff08\u30af\u30a8\u30ea\u30d1\u30e9\u30e1\u30fc\u30bf\uff09\u3084POST\u30c7\u30fc\u30bf\uff08\u30d5\u30a9\u30fc\u30e0\u30c7\u30fc\u30bf\uff09\u3001\u30eb\u30fc\u30c8\u30d1\u30e9\u30e1\u30fc\u30bf\u306a\u3069\u3001\u3059\u3079\u3066\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u30c7\u30fc\u30bf\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<br \/>\n### GET\u30ea\u30af\u30a8\u30b9\u30c8\u3067\u306e `$request` \u306e\u4f7f\u7528<br \/>\n`GET`\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u5834\u5408\u3001URL\u30af\u30a8\u30ea\u30d1\u30e9\u30e1\u30fc\u30bf\u3084\u30eb\u30fc\u30c8\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n#### 1. **\u30af\u30a8\u30ea\u30d1\u30e9\u30e1\u30fc\u30bf** \u306e\u53d6\u5f97<br \/>\n\u30af\u30a8\u30ea\u30d1\u30e9\u30e1\u30fc\u30bf\u306f\u3001URL\u306e\u300c`?`\u300d\u4ee5\u964d\u306b\u6307\u5b9a\u3055\u308c\u308b\u5024\u3067\u3059\u3002\u4f8b\u3048\u3070\u3001`\/shop\/product?category=1` \u3068\u3044\u3046URL\u306b\u5bfe\u3057\u3066\u3001\u30af\u30a8\u30ea\u30d1\u30e9\u30e1\u30fc\u30bf `category` \u3092 `$request` \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002<br \/>\n\\public function showProduct(Request $request)<br \/>\n\\{<br \/>\n\\ \/\/ \u30af\u30a8\u30ea\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u53d6\u5f97<br \/>\n\\ $category = $request-&gt;query(&#8216;category&#8217;); \/\/ &#8216;category&#8217; \u30d1\u30e9\u30e1\u30fc\u30bf\u304c\u53d6\u5f97\u3067\u304d\u308b<br \/>\n\\ \/\/ \u3082\u3057\u304f\u306f\u3001all()\u3067\u5168\u30af\u30a8\u30ea\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u53d6\u5f97<br \/>\n\\ $allParams = $request-&gt;all(); \/\/ \u3059\u3079\u3066\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u30c7\u30fc\u30bf\u3092\u53d6\u5f97<br \/>\n\\}<br \/>\n#### 2. **\u30eb\u30fc\u30c8\u30d1\u30e9\u30e1\u30fc\u30bf** \u306e\u53d6\u5f97<br \/>\n\u30eb\u30fc\u30c8\u306b\u6307\u5b9a\u3055\u308c\u305f\u30d1\u30e9\u30e1\u30fc\u30bf\u306f\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306e\u30e1\u30bd\u30c3\u30c9\u5f15\u6570\u3068\u3057\u3066\u53d6\u5f97\u3059\u308b\u304b\u3001`$request` \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304b\u3089\u3082\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002<br \/>\n\\Route::get(&#8216;\/shop\/product\/{procode}&#8217;, [ShopController::class, &#8216;showProduct&#8217;])-&gt;name(&#8216;shop.product&#8217;);<br \/>\n\\public function showProduct(Request $request, $procode)<br \/>\n\\{<br \/>\n\\ \/\/ \u30eb\u30fc\u30c8\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u53d6\u5f97\uff08\u5f15\u6570\uff09<br \/>\n\\ \/\/ $procode\u306b\u306fURL\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u304c\u5165\u308a\u307e\u3059: \/shop\/product\/123 -&gt; $procode = 123<br \/>\n\\ \/\/ \u30eb\u30fc\u30c8\u30d1\u30e9\u30e1\u30fc\u30bf\u3092$request\u304b\u3089\u3082\u53d6\u5f97\u53ef\u80fd<br \/>\n\\ $procodeFromRequest = $request-&gt;route(&#8216;procode&#8217;);<br \/>\n\\}<br \/>\n### POST\u30ea\u30af\u30a8\u30b9\u30c8\u3067\u306e `$request` \u306e\u4f7f\u7528<br \/>\n`POST`\u30ea\u30af\u30a8\u30b9\u30c8\u3067\u306f\u3001\u30d5\u30a9\u30fc\u30e0\u30c7\u30fc\u30bf\u3084JSON\u30c7\u30fc\u30bf\u306a\u3069\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u672c\u6587\u306b\u542b\u307e\u308c\u308b\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002<br \/>\n\\public function submitProduct(Request $request)<br \/>\n\\{<br \/>\n\\ \/\/ POST\u30c7\u30fc\u30bf\u306e\u53d6\u5f97<br \/>\n\\ $productName = $request-&gt;input(&#8216;name&#8217;); \/\/ &#8216;name&#8217; \u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u5024\u3092\u53d6\u5f97<br \/>\n\\}<br \/>\n### \u307e\u3068\u3081<br \/>\n\\- `$request` \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f **GET** \u30ea\u30af\u30a8\u30b9\u30c8\u3067\u3082 **POST** \u30ea\u30af\u30a8\u30b9\u30c8\u3067\u3082\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<br \/>\n\\- **GET**\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u5834\u5408\u3001\u30af\u30a8\u30ea\u30d1\u30e9\u30e1\u30fc\u30bf\u3084\u30eb\u30fc\u30c8\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u53d6\u5f97\u53ef\u80fd\u3002<br \/>\n\\- **POST**\u30ea\u30af\u30a8\u30b9\u30c8\u3067\u306f\u3001\u30d5\u30a9\u30fc\u30e0\u30c7\u30fc\u30bf\u3084JSON\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u53ef\u80fd\u3002<br \/>\n\u3069\u3061\u3089\u306e\u5834\u5408\u3067\u3082\u3001`$request` \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f7f\u3063\u3066\u5fc5\u8981\u306a\u30ea\u30af\u30a8\u30b9\u30c8\u30c7\u30fc\u30bf\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u3059\u3002<br \/>\n\u30fburl() \u306f\u57fa\u672c\u7684\u306b\u7b2c2\u5f15\u6570\u3092URL\u30d1\u30b9\u30d1\u30e9\u30e1\u30fc\u30bf\u3068\u3057\u3066\u6271\u3046\u305f\u3081\u3001url(&#8216;shop\/product&#8217;, [&#8216;procode&#8217; =&gt; $product-&gt;code]) \u306e\u3088\u3046\u306b\u4f7f\u3046\u3068\u3001\/shop\/product\/1 \u306e\u3088\u3046\u306a\u7d50\u679c\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u30fbroute() \u306f\u30eb\u30fc\u30c8\u30d1\u30e9\u30e1\u30fc\u30bf\u3084\u30af\u30a8\u30ea\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u4e21\u65b9\u306b\u5bfe\u5fdc\u3057\u3066\u304a\u308a\u3001\u540d\u524d\u4ed8\u304d\u30eb\u30fc\u30c8\uff08Route::name() \u3067\u6307\u5b9a\u3057\u305f\u30eb\u30fc\u30c8\uff09\u3092\u4f7f\u3046\u5834\u5408\u3001\u30af\u30a8\u30ea\u30d1\u30e9\u30e1\u30fc\u30bf\u3068\u3057\u3066\u6b63\u3057\u304f\u8ffd\u52a0\u3067\u304d\u307e\u3059\u3002route(&#8216;shop.product&#8217;, [&#8216;procode&#8217; =&gt; $product-&gt;code]) \u3092\u4f7f\u3046\u3068\u3001\/shop\/product?procode=1 \u306e\u3088\u3046\u306b\u30af\u30a8\u30ea\u30d1\u30e9\u30e1\u30fc\u30bf\u304c\u751f\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>### 2. **\u6ce8\u6587\u60c5\u5831\u30c6\u30fc\u30d6\u30eb (dat_sales)**<br \/>\n\\- **\u30c6\u30fc\u30d6\u30eb\u5185\u5bb9**: \u6ce8\u6587\u30b3\u30fc\u30c9 (code), \u6ce8\u6587\u65e5 (date), \u4f1a\u54e1\u30b3\u30fc\u30c9 (code_member), \u540d\u524d (name), \u30e1\u30fc\u30eb (email), \u90f5\u4fbf\u756a\u53f7 (postal1, postal2), \u4f4f\u6240 (address), \u96fb\u8a71\u756a\u53f7 (tel)<br \/>\n\\- **\u5bfe\u5fdc\u3059\u308bLunar\u30c6\u30fc\u30d6\u30eb**:<br \/>\n\\ &#8211; `lunar_orders`: \u6ce8\u6587\u306b\u95a2\u3059\u308b\u57fa\u672c\u7684\u306a\u60c5\u5831\uff08\u6ce8\u6587\u65e5\u3001\u9867\u5ba2\u60c5\u5831\uff09\u3092\u4fdd\u6301\u3057\u307e\u3059\u3002`date`\u3084`code`\uff08\u6ce8\u6587\u30b3\u30fc\u30c9\uff09\u306a\u3069\u304c\u30de\u30c3\u30d4\u30f3\u30b0\u3055\u308c\u307e\u3059\u3002<br \/>\n\\ &#8211; `lunar_customers`: \u9867\u5ba2\u306e\u57fa\u672c\u60c5\u5831\u3092\u4fdd\u5b58\u3057\u307e\u3059\u3002`code_member`\u3001`name`\u3001`email`\u306a\u3069\u306f\u3053\u306e\u30c6\u30fc\u30d6\u30eb\u306b\u4fdd\u5b58\u3055\u308c\u307e\u3059\u3002<br \/>\n\\ &#8211; `lunar_order_addresses`: \u4f4f\u6240\u3084\u9023\u7d61\u5148\uff08\u90f5\u4fbf\u756a\u53f7\u3001\u4f4f\u6240\u3001\u96fb\u8a71\u756a\u53f7\uff09\u306f\u3053\u306e\u30c6\u30fc\u30d6\u30eb\u306b\u4fdd\u5b58\u3055\u308c\u307e\u3059\u3002<br \/>\n### 3. **\u6ce8\u6587\u5546\u54c1\u30c6\u30fc\u30d6\u30eb (dat_sales_product)**<br \/>\n\\- **\u30c6\u30fc\u30d6\u30eb\u5185\u5bb9**: \u6ce8\u6587\u5546\u54c1\u30b3\u30fc\u30c9 (code), \u6ce8\u6587\u30b3\u30fc\u30c9 (code_sales), \u5546\u54c1\u30b3\u30fc\u30c9 (code_product), \u4fa1\u683c (price), \u6570\u91cf (quantity)<br \/>\n\\- **\u5bfe\u5fdc\u3059\u308bLunar\u30c6\u30fc\u30d6\u30eb**:<br \/>\n\\ &#8211; `lunar_order_lines`: \u6ce8\u6587\u5185\u306e\u5546\u54c1\u3092\u4fdd\u5b58\u3057\u307e\u3059\u3002\u3053\u3053\u306b\u5546\u54c1\u30b3\u30fc\u30c9 (`code_product`)\u3001\u4fa1\u683c (`price`)\u3001\u6570\u91cf (`quantity`)\u304c\u4fdd\u5b58\u3055\u308c\u307e\u3059\u3002<br \/>\n\\ &#8211; `lunar_products`: \u5546\u54c1\u30b3\u30fc\u30c9 (`code_product`)\u306f`lunar_products`\u30c6\u30fc\u30d6\u30eb\u306eID\u306b\u5bfe\u5fdc\u3057\u307e\u3059\u3002<br \/>\n\u3053\u306e\u3088\u3046\u306b\u3001Lunar\u306e\u30c6\u30fc\u30d6\u30eb\u69cb\u9020\u306b\u5408\u308f\u305b\u3066\u3001\u5f93\u6765\u306e\u30c6\u30fc\u30d6\u30eb\u3092\u30de\u30c3\u30d4\u30f3\u30b0\u3059\u308b\u3053\u3068\u3067\u3001Lunar\u306e\u6a5f\u80fd\u3092\u6d3b\u7528\u3057\u306a\u304c\u3089\u65e2\u5b58\u306e\u6a5f\u80fd\u3092\u9069\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>ecommerce-app\/app\/Http\/Controllers\/ShopController.php \u306e\u307fLunar\u3067\u8868\u793a\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3002<br \/>\n\u304c\u3001\u3084\u3063\u3071\u308a\u5b9f\u8df5\u7684\u306a\u30d8\u30c3\u30c9(UI\/UX)\u3092\u3061\u3083\u3093\u3068\u4f5c\u3089\u306a\u3044\u3068\u3001\u304a\u8a71\u306b\u306a\u3089\u306a\u3044\u3002<\/p>\n<p>\/*************************************************************************************\/<br \/>\n\u4ee5\u4e0b\u3067 EC-CUBE\u3092Inst\u3057\u3066\u30a4\u30ed\u30a4\u30ed\u8abf\u3079\u3066\u3044\u308b\u304c\u3001Symfony\u30d9\u30fc\u30b9\u3089\u3057\u3044\u3002\u4ee5\u4e0b\u306b\u30e1\u30e2\u3059\u308b\u4e8b\u306b\u3057\u305f\u3002<br \/>\nInst\u3001\u8a2d\u5b9a\u3001\u8d77\u52d5\u65b9\u6cd5 (2024.10)<br \/>\nhttps:\/\/seesaawiki.jp\/lifewithslackzaurus_15_0\/d\/EC%2dCUBE<br \/>\n\u4f7f\u3044\u65b9\u3001\u3068\u8a00\u3046\u3088\u308aLaravel\u5316 (2024.11-2024.12)<br \/>\nhttps:\/\/seesaawiki.jp\/lifewithslackzaurus_15_0\/d\/EC%2dCUBE%20%bb%c8%a4%a4%ca%fd<\/p>\n<p>\u4ee5\u4e0b\u306b\u3001Symfony\u306e `ProductStock` \u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u3092Laravel\u306e\u30e2\u30c7\u30eb\u3068\u3057\u3066\u5909\u63db\u3057\u305f\u969b\u306e\u30dd\u30a4\u30f3\u30c8\u3092\u8aac\u660e\u3057\u307e\u3059\u3002(ChatGPT)<br \/>\n### **1. \u30d5\u30a1\u30a4\u30eb\u69cb\u9020**<br \/>\n\\- Symfony\u306e\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u306f `Eccube\\Entity\\ProductStock` \u3068\u3044\u3046\u540d\u524d\u7a7a\u9593\u306b\u683c\u7d0d\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\n\\- Laravel\u3067\u306f\u3001\u3053\u306e\u30e2\u30c7\u30eb\u306f `app\/Models\/ProductStock.php` \u306b\u914d\u7f6e\u3059\u308b\u306e\u304c\u4e00\u822c\u7684\u3067\u3059\u3002<br \/>\n### **2. \u30af\u30e9\u30b9\u3068\u30d7\u30ed\u30d1\u30c6\u30a3**<br \/>\n\\- Symfony\u3067\u306f\u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u5bfe\u3057\u3066Doctrine\u306e\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\uff08`@ORM\\Column` \u306a\u3069\uff09\u3092\u4f7f\u7528\u3057\u3066\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u69cb\u9020\u3092\u5b9a\u7fa9\u3057\u3066\u3044\u307e\u3057\u305f\u3002<br \/>\n\\- Laravel\u3067\u306f\u3001\u3053\u308c\u3089\u3092\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3067\u7ba1\u7406\u3057\u3001\u30e2\u30c7\u30eb\u5185\u3067 `$fillable` \u30d7\u30ed\u30d1\u30c6\u30a3\u3084\u30ea\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<br \/>\n### **3. \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30ea\u30ec\u30fc\u30b7\u30e7\u30f3**<br \/>\n\\- Symfony\u3067\u306f\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\uff08`@ORM\\OneToOne` \u3084 `@ORM\\ManyToOne`\uff09\u3092\u4f7f\u7528\u3057\u3066\u30ea\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u5b9a\u7fa9\u3057\u3066\u3044\u307e\u3057\u305f\u3002<br \/>\n\\- Laravel\u3067\u306f\u3001Eloquent ORM\u306e\u30e1\u30bd\u30c3\u30c9\uff08`hasOne`, `belongsTo` \u306a\u3069\uff09\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<br \/>\n\\ &#8211; `ProductClass` \u3068\u306e\u30ea\u30ec\u30fc\u30b7\u30e7\u30f3\u306f `belongsTo`\u3002<br \/>\n\\ &#8211; `Creator` \u3068\u306e\u30ea\u30ec\u30fc\u30b7\u30e7\u30f3\u3082\u540c\u69d8\u306b `belongsTo` \u3067\u5b9a\u7fa9\u3057\u307e\u3059\u3002<br \/>\n### **4. \u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7**<br \/>\n\\- Symfony\u3067\u306f `create_date` \u3068 `update_date` \u304c\u500b\u5225\u306b\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u307e\u3057\u305f\u3002<br \/>\n\\- Laravel\u3067\u306f `timestamps` \u3092\u6709\u52b9\u306b\u3059\u308b\u3068\u3001\u81ea\u52d5\u3067 `created_at` \u3068 `updated_at` \u304c\u7ba1\u7406\u3055\u308c\u307e\u3059\u3002<br \/>\n\\ &#8211; `timestamps = false` \u3092\u8a2d\u5b9a\u3059\u308b\u5834\u5408\u3001\u624b\u52d5\u3067\u30ab\u30e9\u30e0\u3092\u7ba1\u7406\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n### **5. \u305d\u306e\u4ed6\u306e\u5909\u66f4\u70b9**<br \/>\n\\- **\u5b9a\u6570\u306e\u5b9a\u7fa9**<br \/>\n\\ &#8211; Symfony\u306e\u5b9a\u6570\uff08`IN_STOCK` \u3068 `OUT_OF_STOCK`\uff09\u306f\u305d\u306e\u307e\u307e `const` \u3092\u4f7f\u3063\u3066Laravel\u30e2\u30c7\u30eb\u306b\u5b9a\u7fa9\u3057\u307e\u3057\u305f\u3002<br \/>\n\\- **\u30e1\u30bd\u30c3\u30c9\u540d**<br \/>\n\\ &#8211; Symfony\u306e `get` \u3084 `set` \u30e1\u30bd\u30c3\u30c9\u306f\u3001Laravel\u306e\u30a2\u30af\u30bb\u30b5\u30fb\u30df\u30e5\u30fc\u30c6\u30fc\u30bf\u306b\u7f6e\u304d\u63db\u3048\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<br \/>\n\\ &#8211; \u30b7\u30f3\u30d7\u30eb\u306a\u5b9f\u88c5\u306e\u305f\u3081\u3001\u307e\u305a\u306f\u305d\u306e\u307e\u307e\u30e1\u30bd\u30c3\u30c9\u3092\u79fb\u690d\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n### **6. \u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u306e\u4f5c\u6210**<br \/>\n\\- Laravel\u3067\u306f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b9\u30ad\u30fc\u30de\u3092\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3067\u5b9a\u7fa9\u3057\u307e\u3059\u3002`dtb_product_stock` \u30c6\u30fc\u30d6\u30eb\u3092\u518d\u73fe\u3059\u308b\u305f\u3081\u306e\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u5225\u9014\u4f5c\u6210\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u4f8b:<br \/>\n\\&#8220;`php<br \/>\n\\Schema::create(&#8216;dtb_product_stock&#8217;, function (Blueprint $table) {<br \/>\n\\ $table-&gt;id();<br \/>\n\\ $table-&gt;unsignedBigInteger(&#8216;product_class_id&#8217;)-&gt;nullable();<br \/>\n\\ $table-&gt;decimal(&#8216;stock&#8217;, 10, 0)-&gt;nullable();<br \/>\n\\ $table-&gt;unsignedBigInteger(&#8216;creator_id&#8217;)-&gt;nullable();<br \/>\n\\ $table-&gt;timestamps();<br \/>\n\\});<br \/>\n(DB\u306fEC-CUBE\u306e\u3092\u76f4\u63a5\u30b3\u30d4\u30fc\u3057\u3066\u308b\u304b\u3089\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u306f\u3044\u3044\u304b?\u3001\u5ff5\u306e\u305f\u3081\u4ee5\u4e0b\u306f\u5b9f\u884c)<br \/>\n$ PATH=$PATH:\/usr\/local\/laravel-composer\/:~\/.config\/composer\/vendor\/bin\/ php artisan migrate<br \/>\n### **7. \u88dc\u8db3**<br \/>\n\\- \u4f9d\u5b58\u95a2\u4fc2\u306b\u3042\u308b `ProductClass` \u3084 `Member` \u3082\u540c\u69d8\u306bLaravel\u30e2\u30c7\u30eb\u3068\u3057\u3066\u5b9f\u88c5\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\\- Symfony\u304b\u3089Laravel\u3078\u306e\u79fb\u884c\u4f5c\u696d\u306f\u3001\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u4ee5\u5916\u306b\u30ea\u30dd\u30b8\u30c8\u30ea\u3084\u30b5\u30fc\u30d3\u30b9\u306e\u5b9f\u88c5\u3082\u542b\u3080\u5834\u5408\u304c\u591a\u3044\u3067\u3059\u3002\u305d\u308c\u3089\u3082\u9069\u5b9c\u5909\u63db\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u5909\u63db\u5f8c\u306eLaravel\u30e2\u30c7\u30eb\u304c\u6b63\u3057\u304f\u52d5\u4f5c\u3059\u308b\u3088\u3046\u306b\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3084\u30ea\u30ec\u30fc\u30b7\u30e7\u30f3\u306e\u8a2d\u5b9a\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\\<br \/>\n### **8. View\u306e\u9055\u3044** (\u81ea\u5206\u3067\u8ffd\u52a0\u3001\u3042\u308b\u3044\u306f\u305d\u306e\u3046\u3061\u5225\u9014\u7528\u610f\u3059\u308b)<br \/>\n\\- **\u672c\u4ef6(\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3)\u3067\u306f\u306a\u304f\u3001view\u306b\u3064\u3044\u3066**<br \/>\n\\ &#8211; Symfony\u3067\u306f\u3001*.twig\u3001Laravel\u3067\u306f\u3001*.blade.php\u3002Symfony\u3067\u306f\u3001{% if\u3001Laravel\u3067\u306f\u3001@if\u3002<\/p>\n<p>\/*************************************************************************************\/<br \/>\n\u4f53\u7cfb\u7684\u306b\u5b66\u3076 \u5b89\u5168\u306aWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u4f5c\u308a\u65b9(\u53c2\u8003\u66f8\u7c4d\uff16)<br \/>\n\u4ee5\u4e0b\u3067 \u5b89\u5168\u306aWeb\u30a2\u30d7\u30ea\u306e\u4f5c\u308a\u65b9\u3092\u8abf\u3079\u3066\u3044\u308b\u304c\u3001(2025.06)<br \/>\n<a href=\"https:\/\/shirakawa.weblike.jp\/blog-page\/2024\/01\/27\/%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%81%ae%e3%82%bb%e3%82%ad%e3%83%a5%e3%83%aa%e3%83%86%e3%82%a3%e3%83%bc\/\">https:\/\/shirakawa.weblike.jp\/blog-page\/2024\/01\/27&#8230;<\/a><br \/>\n33-001a.html\u306eJS\u306e\u30b3\u30fc\u30c9\u306b\u5bfe\u3057\u3066\u3001PHP\u306e\u30b3\u30fc\u30c9\u304c33-002a.php\u306e\u5834\u5408(PHP\u6587\u306f\u7701\u7565)\u3001<br \/>\n`?&gt;`\u3067\u9589\u3058\u3066\u3044\u306a\u3044\u304c \u3001\u554f\u984c\u306a\u304f\u6a5f\u80fd\u3059\u308b\u306e\u304b\uff1f (-&gt;ChatGPT)<\/p>\n<p>\u306f\u3044\u3001PHP\u30d5\u30a1\u30a4\u30eb\u306e\u672b\u5c3e\u306b`?&gt;`\u3092\u66f8\u304b\u306a\u304f\u3066\u3082\u554f\u984c\u306a\u304f\u52d5\u4f5c\u3057\u307e\u3059\u3002\u5b9f\u969b\u3001\u591a\u304f\u306ePHP\u958b\u767a\u8005\u306f\u3042\u3048\u3066`?&gt;`\u3092\u66f8\u304b\u306a\u3044\u30b9\u30bf\u30a4\u30eb\u3092\u63a1\u7528\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n### \u2705 \u306a\u305c`?&gt;`\u3092\u7701\u7565\u3057\u3066\u3082\u554f\u984c\u306a\u3044\u306e\u304b\uff1f<br \/>\nPHP\u306e\u516c\u5f0f\u4ed5\u69d8\u3067\u306f\u3001`?&gt;`\u306f PHP\u30b3\u30fc\u30c9\u3092\u7d42\u4e86\u3057\u3066 HTML\u306a\u3069\u306b\u623b\u3059\u305f\u3081\u306e\u3082\u306e\u3067\u3042\u308a\u3001\u30d5\u30a1\u30a4\u30eb\u306e\u6700\u5f8c\u304c\u3059\u3079\u3066PHP\u30b3\u30fc\u30c9\u306e\u5834\u5408\u306f\u7701\u7565\u3057\u3066\u3082\u69cb\u6587\u7684\u306b\u6b63\u3057\u3044\u3067\u3059\u3002<br \/>\n&lt;?php<br \/>\n  (PHP\u6587\u306f\u7701\u7565)<br \/>\n  \/\/ \u3053\u3053\u3067\u30d5\u30a1\u30a4\u30eb\u7d42\u4e86 \u2192 OK<br \/>\n`?&gt;`\u306e\u5f8c\u306b\u7a7a\u767d\u3084\u6539\u884c\u304c\u3042\u308b\u3068\u3001\u610f\u56f3\u305b\u305a\u51fa\u529b\u3055\u308c\u308b\u3053\u3068\u304c\u3042\u308a\u3001\u7279\u306b `header()` \u3084 `setcookie()` \u306e\u3088\u3046\u306a\u30d8\u30c3\u30c0\u51fa\u529b\u95a2\u6570\u304c\u30a8\u30e9\u30fc\u3092\u8d77\u3053\u3059\u539f\u56e0\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n* \u3053\u308c\u3092\u9632\u3050\u305f\u3081\u306b\u3001\u300c\u30d5\u30a1\u30a4\u30eb\u306e\u672b\u5c3e\u306b`?&gt;`\u3092\u66f8\u304b\u306a\u3044\u300d\u30b9\u30bf\u30a4\u30eb\u304c\u63a8\u5968\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\n### \ud83d\udccc \u7d50\u8ad6<br \/>\n* **\u554f\u984c\u306a\u304f\u6a5f\u80fd\u3057\u307e\u3059\u3002**<br \/>\n* **\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u3068\u3057\u3066`?&gt;`\u306f\u7701\u7565\u3057\u3066\u304a\u304f\u65b9\u304c\u5b89\u5168\u3067\u3059\u3002**<br \/>\n\u5fc5\u8981\u3067\u3042\u308c\u3070\u3001PHP\u516c\u5f0f\u306e\u8a72\u5f53\u8aac\u660e\u30ea\u30f3\u30af\u3082\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>\/*****************************************\/<br \/>\n4b-002e.php\u306e$descriptorspec\u3068\u306f\u4f55\u304b\uff1f (-&gt;DeepSeek) (2025.10)<br \/>\n\u30fb\u5916\u90e8\u30d7\u30ed\u30bb\u30b9\u3092\u5b9f\u884c\u3059\u308b\u969b\u306e\u6a19\u6e96\u5165\u51fa\u529b\uff08stdin, stdout, stderr\uff09\u306e\u6271\u3044\u65b9\u3092\u6307\u5b9a\u3059\u308b\u914d\u5217<br \/>\n\u30fbproc_open() \u95a2\u6570\u3067\u4f7f\u7528\u3055\u308c\u307e\u3059<br \/>\n\\<br \/>\n\/\/ \u3053\u308c\u3092\u5b9f\u884c\u3057\u3066\u3044\u308b\u306e\u306f\u89aa\u30d7\u30ed\u30bb\u30b9<br \/>\n$descriptorspec = array(<br \/>\n    0 =&gt; array(&#8220;pipe&#8221;, &#8220;r&#8221;),  \/\/ \u5b50\u30d7\u30ed\u30bb\u30b9\u306estdin<br \/>\n    1 =&gt; array(&#8220;pipe&#8221;, &#8220;w&#8221;),  \/\/ \u5b50\u30d7\u30ed\u30bb\u30b9\u306estdout<br \/>\n    2 =&gt; array(&#8220;pipe&#8221;, &#8220;w&#8221;)   \/\/ \u5b50\u30d7\u30ed\u30bb\u30b9\u306estderr<br \/>\n);<br \/>\n\/\/ \u89aa\u30d7\u30ed\u30bb\u30b9\u304c\u5b50\u30d7\u30ed\u30bb\u30b9(some_command)\u3092\u8d77\u52d5<br \/>\n$process = proc_open(&#8216;some_command&#8217;, $descriptorspec, $pipes);<br \/>\nif (is_resource($process)) {<br \/>\n    \/\/ \u89aa\u30d7\u30ed\u30bb\u30b9\u304c\u5b50\u30d7\u30ed\u30bb\u30b9\u306estdin\u306b\u66f8\u304d\u8fbc\u307f<br \/>\n    fwrite($pipes[0], &#8220;\u5165\u529b\u30c7\u30fc\u30bf&#8221;);<br \/>\n    fclose($pipes[0]);<br \/>\n    \/\/ \u89aa\u30d7\u30ed\u30bb\u30b9\u304c\u5b50\u30d7\u30ed\u30bb\u30b9\u306estdout\u304b\u3089\u8aad\u307f\u53d6\u308a<br \/>\n    $output = stream_get_contents($pipes[1]);<br \/>\n    fclose($pipes[1]);<br \/>\n    proc_close($process);<br \/>\n}<br \/>\n\u901a\u4fe1\u306e\u6d41\u308c<br \/>\n  \u89aa\u30d7\u30ed\u30bb\u30b9\u304c proc_open() \u3067\u5b50\u30d7\u30ed\u30bb\u30b9\u3092\u8d77\u52d5<br \/>\n  \u89aa\u30d7\u30ed\u30bb\u30b9 \u2192 $pipes[0]\u306b\u66f8\u304d\u8fbc\u307f \u2192 \u5b50\u30d7\u30ed\u30bb\u30b9\u306e\u6a19\u6e96\u5165\u529b<br \/>\n  \u5b50\u30d7\u30ed\u30bb\u30b9 \u2192 \u6a19\u6e96\u51fa\u529b \u2192 $pipes[1] \u2192 \u89aa\u30d7\u30ed\u30bb\u30b9\u304c\u8aad\u307f\u53d6\u308a<\/p>\n<p>\/*****************************************\/<br \/>\n4c-002a.php\u306e@(\u30a8\u30e9\u30fc\u5236\u5fa1\u6f14\u7b97\u5b50)\u4ee5\u5916\u306b\u3082C\u8a00\u8a9e\u306b\u306f\u306a\u3044\u6f14\u7b97\u5b50\u306f\u4ed6\u306b\u3042\u308b\u304b\uff1f (2025.10)<br \/>\n<a href=\"https:\/\/shirakawa.weblike.jp\/blog-page\/2025\/10\/12\/php%e7%89%b9%e6%9c%89%e3%81%aec%e8%a8%80%e8%aa%9e%e3%81%ab%e3%81%af%e7%84%a1%e3%81%84%e3%82%88%e3%81%86%e3%81%aa%e6%bc%94%e7%ae%97%e5%ad%90\/\">https:\/\/shirakawa.weblike.jp\/blog-page\/2025\/10\/12&#8230;<\/a><\/p>\n<p>\/*****************************************\/<br \/>\n4g-021b.php\u306e $_COOKIE,$_SESSION,$_SERVER \u306e\u9055\u3044 (-&gt;DeepSeek) (2025.12)<br \/>\n<a href=\"https:\/\/www.php.net\/manual\/ja\/reserved.variables.server.php\">https:\/\/www.php.net\/manual\/ja\/reserved.variables.server.php<\/a><br \/>\n\\<\/p>\n<pre># PHP\u306e\u30b9\u30fc\u30d1\u30fc\u30b0\u30ed\u30fc\u30d0\u30eb\u5909\u6570\u6bd4\u8f03\u8868\r\n| \u9805\u76ee           | `$_COOKIE`                  | `$_SESSION`                   | `$_SERVER`                  |\r\n|----------------|-----------------------------|-------------------------------|-----------------------------|\r\n| \u4fdd\u5b58\u5834\u6240       | \u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u5074(\u30d6\u30e9\u30a6\u30b6)    | \u30b5\u30fc\u30d0\u30fc\u5074                    |\u30b5\u30fc\u30d0\u30fc\u5074\uff08\u30ea\u30af\u30a8\u30b9\u30c8\u6642\u751f\u6210)|\r\n| \u30c7\u30fc\u30bf\u306e\u6027\u8cea   | Cookie\u30c7\u30fc\u30bf(\u30e6\u30fc\u30b6\u30fc\u3054\u3068\uff09 |\u30bb\u30c3\u30b7\u30e7\u30f3\u30c7\u30fc\u30bf(\u30e6\u30fc\u30b6\u30fc\u3054\u3068) | \u30b5\u30fc\u30d0\u30fc\/\u30ea\u30af\u30a8\u30b9\u30c8\u60c5\u5831     |\r\n| \u30c7\u30fc\u30bf\u306e\u5b89\u5168\u6027 |\u4f4e\u3044(\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u5074\u3067\u6539\u3056\u3093\u53ef\u80fd)| \u6bd4\u8f03\u7684\u9ad8\u3044(\u30b5\u30fc\u30d0\u30fc\u5185)     | \u4e2d(\u4e00\u90e8\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304b\u3089\u63d0\u4f9b)|\r\n| \u30c7\u30fc\u30bf\u578b       | \u6587\u5b57\u5217\u306e\u307f                  |\u914d\u5217\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306a\u3069\u8907\u96d1\u306a\u30c7\u30fc\u30bf| \u6587\u5b57\u5217(\u4e00\u90e8\u306f\u914d\u5217\uff09      |\r\n| \u30c7\u30fc\u30bf\u5bb9\u91cf     | \u5236\u9650\u3042\u308a(\u7d044KB\/\u30c9\u30e1\u30a4\u30f3)    | \u30b5\u30fc\u30d0\u30fc\u306e\u8a2d\u5b9a\u306b\u3088\u308b(\u5927\u304d\u3044)  | \u30ea\u30af\u30a8\u30b9\u30c8\u60c5\u5831\u306b\u3088\u308b        |\r\n| \u5bff\u547d           | \u8a2d\u5b9a\u3057\u305f\u6709\u52b9\u671f\u9650\u307e\u3067        | \u30bb\u30c3\u30b7\u30e7\u30f3\u7d42\u4e86\u307e\u3067(\u30c7\u30d5\u30a9\u30eb\u30c8)| \u30ea\u30af\u30a8\u30b9\u30c8\u4e2d\u306e\u307f            |\r\n| \u660e\u793a\u7684\u306a\u958b\u59cb   | \u81ea\u52d5\u3067\u4f7f\u7528\u53ef\u80fd              | `session_start()`\u304c\u5fc5\u8981       | \u81ea\u52d5\u3067\u4f7f\u7528\u53ef\u80fd              |\r\n| \u4e3b\u306a\u7528\u9014       | \u30e6\u30fc\u30b6\u30fc\u8a2d\u5b9a\u3001\u30c8\u30e9\u30c3\u30ad\u30f3\u30b0  |\u30ed\u30b0\u30a4\u30f3\u72b6\u614b\u3001\u30b7\u30e7\u30c3\u30d4\u30f3\u30b0\u30ab\u30fc\u30c8| \u74b0\u5883\u60c5\u5831\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u60c5\u5831   |<\/pre>\n<p>\\<\/p>\n<pre>### 2. \u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\u306e\u9055\u3044\r\n|              | \u751f\u6210\u30bf\u30a4\u30df\u30f3\u30b0      | \u6d88\u6ec5\u30bf\u30a4\u30df\u30f3\u30b0         | \u6c38\u7d9a\u6027           |\r\n|--------------|---------------------|------------------------|------------------|\r\n| `$_COOKIE`   | `setcookie()`\u6642     | \u6709\u52b9\u671f\u9650\u5207\u308c           | \u8907\u6570\u30bb\u30c3\u30b7\u30e7\u30f3\u9593 |\r\n| `$_SESSION`  | `session_start()`\u6642 | \u30bb\u30c3\u30b7\u30e7\u30f3\u7d42\u4e86\u30fb\u7834\u68c4\u6642 | \u8907\u6570\u30ea\u30af\u30a8\u30b9\u30c8\u9593 |\r\n| `$_SERVER`   | \u30ea\u30af\u30a8\u30b9\u30c8\u6bce        | \u30ea\u30af\u30a8\u30b9\u30c8\u7d42\u4e86\u6642       | \u5358\u4e00\u30ea\u30af\u30a8\u30b9\u30c8\u5185 |<\/pre>\n<p>\\<\/p>\n<pre>### 3. \u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u6bd4\u8f03\r\n| \u30ea\u30b9\u30af   | `$_COOKIE`            | `$_SESSION`            | `$_SERVER`             |\r\n|----------|-----------------------|------------------------|------------------------|\r\n| \u6539\u3056\u3093   | \u53ef\u80fd(\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u5074)  | \u307b\u307c\u4e0d\u53ef\u80fd(\u30b5\u30fc\u30d0\u30fc\u5074) | \u4e00\u90e8\u53ef\u80fd(\u30d8\u30c3\u30c0\u30fc\u507d\u88c5) |\r\n| \u76d7\u8074     | \u5168\u3066\u306e\u30c7\u30fc\u30bf\u304c\u901a\u4fe1    | \u30bb\u30c3\u30b7\u30e7\u30f3ID\u306e\u307f\u901a\u4fe1   | \u901a\u4fe1\u4e2d\u306e\u60c5\u5831           |\r\n| \u63a8\u5968\u7528\u9014 | \u975e\u6a5f\u5bc6\u306a\u8a2d\u5b9a          | \u8a8d\u8a3c\u60c5\u5831\u3001\u91cd\u8981\u306a\u30c7\u30fc\u30bf | \u53c2\u7167\u306e\u307f               |<\/pre>\n<p>\\<br \/>\n### 5. \u5404\u5909\u6570\u306e\u4e3b\u306a\u30ad\u30fc\u4f8b<br \/>\n#### `$_COOKIE` \u306e\u4f8b<br \/>\n$_COOKIE[&#8216;PHPSESSID&#8217;]  \/\/ \u30bb\u30c3\u30b7\u30e7\u30f3ID\uff08\u30c7\u30d5\u30a9\u30eb\u30c8\u540d\uff09<br \/>\n$_COOKIE[&#8216;preferred_lang&#8217;]\u3001$_COOKIE[&#8216;theme_color&#8217;]\u3001$_COOKIE[&#8216;tracking_id&#8217;]<br \/>\n\\<br \/>\n#### `$_SESSION` \u306e\u4f8b<br \/>\n$_SESSION[&#8216;user_id&#8217;]\u3001$_SESSION[&#8216;username&#8217;]\u3001$_SESSION[&#8216;cart&#8217;]\u3001$_SESSION[&#8216;last_activity&#8217;]<br \/>\n\\<\/p>\n<pre>#### `$_SERVER` \u306e\u4e3b\u306a\u30ad\u30fc\r\n| \u30ad\u30fc              | \u8aac\u660e                 | \u4f8b                     |\r\n|-------------------|----------------------|------------------------|\r\n| `REQUEST_METHOD`  | HTTP\u30e1\u30bd\u30c3\u30c9         | GET, POST              |\r\n| `REQUEST_URI`     | \u30ea\u30af\u30a8\u30b9\u30c8URI        | `\/index.php?page=home` |\r\n| `REMOTE_ADDR`     | \u30af\u30e9\u30a4\u30a2\u30f3\u30c8IP       | `192.168.1.100`        |\r\n| `HTTP_USER_AGENT` | \u30e6\u30fc\u30b6\u30fc\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8 | `Mozilla\/5.0...`       |\r\n| `HTTP_REFERER`    | \u53c2\u7167\u5143URL            | `https:\/\/example.com\/` |\r\n| `SERVER_NAME`     | \u30b5\u30fc\u30d0\u30fc\u540d           | `www.example.com`      |\r\n| `SCRIPT_NAME`     | \u5b9f\u884c\u30b9\u30af\u30ea\u30d7\u30c8       | `\/index.php`           |<\/pre>\n<p>|<br \/>\nPHP\u306fHTTP\u30d8\u30c3\u30c0\u30fc\u540d\u3092 $_SERVER \u306e\u30ad\u30fc\u306b\u5909\u63db\u3059\u308b\u969b\u3001\u4ee5\u4e0b\u306e\u30eb\u30fc\u30eb\u3092\u9069\u7528\u3057\u307e\u3059\uff1a<br \/>\nX-CSRF-Token          \u2192 HTTP_X_CSRF_TOKEN<br \/>\nX-Requested-With      \u2192 HTTP_X_REQUESTED_WITH<br \/>\nContent-Type          \u2192 HTTP_CONTENT_TYPE<br \/>\nUser-Agent            \u2192 HTTP_USER_AGENT<br \/>\n\\<\/p>\n<pre>### 7.\u91cd\u8981\u306a\u6ce8\u610f\u70b9\r\n|             | \u6ce8\u610f\u3059\u3079\u304d\u70b9                                                    |\r\n|-------------|-----------------------------------------------------------------|\r\n| `$_COOKIE`  | \u91cd\u8981\u306a\u30c7\u30fc\u30bf\u306f\u4fdd\u5b58\u3057\u306a\u3044\u3002HTTP Only, Secure, SameSite\u5c5e\u6027\u3092\u8a2d\u5b9a |\r\n| `$_SESSION` | \u30bb\u30c3\u30b7\u30e7\u30f3\u56fa\u5b9a\u5316\u653b\u6483\u5bfe\u7b56\u304c\u5fc5\u8981\u3002\u30bb\u30c3\u30b7\u30e7\u30f3ID\u306f\u63a8\u6e2c\u56f0\u96e3\u306a\u3082\u306e\u306b  |\r\n| `$_SERVER`  | \u4fe1\u983c\u3067\u304d\u306a\u3044\u5165\u529b\u3068\u3057\u3066\u6271\u3046\u3002\u507d\u88c5\u53ef\u80fd\u306a\u30d8\u30c3\u30c0\u30fc\u306b\u6ce8\u610f            |<\/pre>\n<\/p>\n<p>\/*****************************************\/<br \/>\nOrigin \u30d8\u30c3\u30c0\u30fc\u304c\u9001\u4fe1\u3055\u308c\u308b\u306e\u306f\u3001\u4ee5\u4e0b\u306e CORS\uff08Cross-Origin Resource Sharing\uff09\u30ea\u30af\u30a8\u30b9\u30c8 \u306e\u5834\u5408\u3067\u3059\uff1a (-&gt;DeepSeek) (2025.12)<br \/>\n## \u9001\u4fe1\u3055\u308c\u308b\u6761\u4ef6<br \/>\n1. \u30af\u30ed\u30b9\u30aa\u30ea\u30b8\u30f3\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u5834\u5408<br \/>\n   &#8211; \u73fe\u5728\u306e\u30da\u30fc\u30b8\u306e\u30aa\u30ea\u30b8\u30f3\uff08\u30b9\u30ad\u30fc\u30e0\uff0b\u30db\u30b9\u30c8\uff0b\u30dd\u30fc\u30c8\uff09\u3068\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u5148\u306e\u30aa\u30ea\u30b8\u30f3\u304c\u7570\u306a\u308b\u5834\u5408<br \/>\n   &#8211; \u4f8b\uff1a`https:\/\/example.com` \u304b\u3089 `https:\/\/api.example.com` \u3078\u306e\u30ea\u30af\u30a8\u30b9\u30c8<br \/>\n2. POST\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u5834\u5408\uff08\u3042\u306a\u305f\u306e\u4f8b\u306e\u3088\u3046\u306b\uff09<br \/>\n   &#8211; \u30af\u30ed\u30b9\u30aa\u30ea\u30b8\u30f3POST\u30ea\u30af\u30a8\u30b9\u30c8\u3067\u306f\u307b\u307c\u5e38\u306b\u9001\u4fe1\u3055\u308c\u308b<br \/>\n   &#8211; \u7279\u306b`Content-Type`\u304c\u4ee5\u4e0b\u306e\u5834\u5408\uff1a<br \/>\n     &#8211; `application\/x-www-form-urlencoded`<br \/>\n     &#8211; `multipart\/form-data`<br \/>\n     &#8211; `text\/plain`\uff08\u3042\u306a\u305f\u306e\u4f8b\u3067\u306f\u3053\u308c\uff09<br \/>\n     &#8211; `application\/json`\u306a\u3069<br \/>\n3. \u4e00\u90e8\u306eGET\u30ea\u30af\u30a8\u30b9\u30c8\u3067\u3082\u9001\u4fe1\u3055\u308c\u308b<br \/>\n   &#8211; \u30af\u30ed\u30b9\u30aa\u30ea\u30b8\u30f3\u3067\u8a8d\u8a3c\u60c5\u5831\uff08Cookie\u306a\u3069\uff09\u3092\u542b\u3080\u5834\u5408<br \/>\n   &#8211; \u305f\u3060\u3057\u3001\u30b7\u30f3\u30d7\u30eb\u306a\u30af\u30ed\u30b9\u30aa\u30ea\u30b8\u30f3GET\u30ea\u30af\u30a8\u30b9\u30c8\u3067\u306f\u9001\u4fe1\u3055\u308c\u306a\u3044\u3053\u3068\u3082<\/p>\n<p>POST https:\/\/example.jp\/4g\/4g-021.php HTTP\/1.1<br \/>\nOrigin: https:\/\/example.jp\uff1a<br \/>\n&#8211; \u306a\u305cOrigin\u304c\u9001\u4fe1\u3055\u308c\u3066\u3044\u308b\u304b\uff1f<br \/>\n  &#8211; `Referer: https:\/\/example.jp\/4g\/4g-022.html`\u3068\u540c\u4e00\u30aa\u30ea\u30b8\u30f3\u306a\u306e\u3067\u3001\u901a\u5e38\u306f\u9001\u4fe1\u4e0d\u8981<br \/>\n  &#8211; \u3057\u304b\u3057\u3001`Content-Type: text\/plain`\u3084`application\/json`\u306a\u3069\u306e\u300c\u30d7\u30ea\u30d5\u30e9\u30a4\u30c8\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u5f15\u304d\u8d77\u3053\u3059\u53ef\u80fd\u6027\u306e\u3042\u308bContent-Type\u300d\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u30d6\u30e9\u30a6\u30b6\u304c\u5b89\u5168\u306e\u305f\u3081\u306b\u9001\u4fe1\u3057\u3066\u3044\u308b<br \/>\nGET https:\/\/example.jp\/4g\/4g-020.php HTTP\/1.1\uff1a<br \/>\n\uff08Origin\u30d8\u30c3\u30c0\u30fc\u306a\u3057\uff09<br \/>\n&#8211; \u3053\u3061\u3089\u306f\u540c\u4e00\u30aa\u30ea\u30b8\u30f3\u5185\u3067\u306e\u30b7\u30f3\u30d7\u30eb\u306aGET\u30ea\u30af\u30a8\u30b9\u30c8\u306a\u306e\u3067\u3001`Origin`\u30d8\u30c3\u30c0\u30fc\u306f\u9001\u4fe1\u3055\u308c\u3066\u3044\u306a\u3044<\/p>\n<p>## \u6280\u8853\u7684\u8a73\u7d30<br \/>\n&#8211; `Origin`\u30d8\u30c3\u30c0\u30fc\u306f\u30e6\u30fc\u30b6\u30fc\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\uff08\u30d6\u30e9\u30a6\u30b6\uff09\u304c\u81ea\u52d5\u7684\u306b\u8ffd\u52a0\u3059\u308b<br \/>\n&#8211; \u958b\u767a\u8005\u304c\u624b\u52d5\u3067\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u306a\u3044\uff08\u5236\u9650\u3055\u308c\u3066\u3044\u308b\uff09<br \/>\n&#8211; CORS\u306e\u30d7\u30ea\u30d5\u30e9\u30a4\u30c8\u30ea\u30af\u30a8\u30b9\u30c8\uff08OPTIONS\uff09\u3067\u3082\u9001\u4fe1\u3055\u308c\u308b<br \/>\n&#8211; \u30b5\u30fc\u30d0\u30fc\u5074\u3067CORS\u30dd\u30ea\u30b7\u30fc\u3092\u691c\u8a3c\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u308b<br \/>\n\u3064\u307e\u308a\u3001\u3042\u306a\u305f\u306e\u4f8b\u3067\u306fPOST\u30ea\u30af\u30a8\u30b9\u30c8\u3067`Content-Type: text\/plain`\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u30d6\u30e9\u30a6\u30b6\u304cCORS\u95a2\u9023\u306e\u30c1\u30a7\u30c3\u30af\u3092\u884c\u3046\u4e00\u74b0\u3068\u3057\u3066`Origin`\u30d8\u30c3\u30c0\u30fc\u3092\u81ea\u52d5\u7684\u306b\u8ffd\u52a0\u3057\u3066\u3044\u308b\u306e\u3067\u3059\u3002<\/p>\n<p>\/*************************************************************************************\/<\/p>\n<p>&nbsp;<\/p>\n<p>\u4e3b\u306a\u53c2\u8003\u66f8\u7c4d\/\u53c2\u8003URL\u3001\u30de\u30cb\u30e5\u30a2\u30eb\uff1a<br \/>\n\u6c17\u3065\u3051\u3070\u30d7\u30ed\u4e26\u307fPHP \u6539\u8a02\u7248 2017.03<br \/>\nhttps:\/\/www.ric.co.jp\/book\/programming\/detail\/192<br \/>\n\u57fa\u790e\u304b\u3089\u306eMySQL \u7b2c3\u7248 2017.09<br \/>\n<a href=\"https:\/\/www.sbcr.jp\/product\/4797393118\/\">https:\/\/www.sbcr.jp\/product\/4797393118\/<\/a><br \/>\n(\u6301\u3063\u3066\u3044\u308b\u306e\u306f\uff11\u3064\u524d\u306e\u7269)<br \/>\nSoftware Design 2019\u5e7412\u6708\u53f7 \u7b2c2\u7279\u96c6 PHP\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30fb\u30a2\u30e9\u30ab\u30eb\u30c8 \u306a\u305c\u611b\u3055\u308c\uff0c\u306a\u305c\u9032\u5316\u3059\u308b\u306e\u304b\uff1f<br \/>\nhttps:\/\/gihyo.jp\/magazine\/SD\/archive\/2019\/201912<br \/>\nPHP\u8a00\u8a9e\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9<br \/>\nhttps:\/\/www.php.net\/manual\/ja\/langref.php<br \/>\nLaravel\uff08\u30e9\u30e9\u30d9\u30eb\uff09\u3068\u306f\uff1f\u57fa\u790e\u77e5\u8b58\u3084\u3067\u304d\u308b\u3053\u3068\u3092\u89e3\u8aac<br \/>\n<a href=\"https:\/\/techmania.jp\/blog\/php0004\/\">https:\/\/techmania.jp\/blog\/php0004\/<\/a><br \/>\nLaravel\u5b66\u7fd2\u5e33 &#8211; \u306f\u3058\u3081\u3066\u306eLaravel\u5165\u9580\u30b5\u30a4\u30c8 &#8211;<br \/>\n<a href=\"https:\/\/laraweb.net\/\">https:\/\/laraweb.net\/<\/a><br \/>\nPHP\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af Laravel\u5165\u9580 \u7b2c2\u7248 2019.12<br \/>\nhttps:\/\/www.shuwasystem.co.jp\/book\/9784798060996.html<br \/>\nfunc (mux *ServeMux) ServeHTTP(w ResponseWriter, r *Request) \/\/Go<br \/>\nfunction handler(req, res) { \/\/Node.js\u3082Go\u3068\u4f3c\u305f\u3088\u3046\u306a\u611f\u3058\u306b\u30cf\u30f3\u30c9\u30e9\u95a2\u6570\u5316<br \/>\napp.post(&#8216;\/body&#8217;, (req, res) =&gt; { \/\/express.js<br \/>\nRoute::get(&#8216;\/&#8217;, [HogeController::class, &#8216;index&#8217;])-&gt;name(&#8216;index&#8217;); \/\/PHP<br \/>\npublic function index(Request $request, Response $response){&#8230; \/\/PHP<br \/>\n(\u3069\u308c\u3092\u4f7f\u3063\u3066\u3082\u30b5\u30fc\u30d0\u30b5\u30a4\u30c9\u304c\u5b9f\u73fe\u3067\u304d\u308b)<br \/>\nSoftware Design 2021\u5e745\u6708\u53f7 PHP 8\u79fb\u884c\u306e\u30bf\u30a4\u30df\u30f3\u30b0\u3068\u30b3\u30c4 \u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\uff0cJIT\u30b3\u30f3\u30d1\u30a4\u30e9\uff0c\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306e3\u70b9\u3067\u8003\u3048\u308b<br \/>\nhttps:\/\/gihyo.jp\/magazine\/SD\/archive\/2021\/202105<br \/>\n\u4f53\u7cfb\u7684\u306b\u5b66\u3076 \u5b89\u5168\u306aWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u4f5c\u308a\u65b9 \u7b2c2\u7248 2018.6<br \/>\nhttps:\/\/www.sbcr.jp\/product\/4797393163\/<\/p>\n<p>\u305d\u306e\u4ed6\u306e\u53c2\u8003URL\uff1a<br \/>\nEC\u30b5\u30a4\u30c8 Laravel\u3001\u3067\u30b0\u30b0\u3063\u305f\uff1a<br \/>\nhttps:\/\/qiita.com\/neneta0921\/items\/f99fc0d2c6e9600604e7<br \/>\nhttps:\/\/qiita.com\/motuo\/items\/08b7d6ef92498034b58d<br \/>\nhttps:\/\/www.udemy.com\/course\/laravel-multi-ec\/?couponCode=ST11MT91624B<br \/>\n(BladeComponent\u3092\u6d3b\u7528\u3057\u305fView\u753b\u9762\u4f5c\u6210\u65b9\u6cd5\u3001LaravelBreeze\u3092\u6d3b\u7528\u3057\u305f\u8a8d\u8a3c\u6a5f\u80fd\u3001Laravel\u3067\u306e\u30de\u30eb\u30c1\u30ed\u30b0\u30a4\u30f3\u74b0\u5883\u69cb\u7bc9\u3001Tailwindcss\u3092\u4f7f\u3063\u305f\u30e2\u30c0\u30f3\u306a\u753b\u9762\u4f5c\u6210\u65b9\u6cd5\u3001\u753b\u50cf\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9, \u30ea\u30ec\u30fc\u30b7\u30e7\u30f3\u306a\u3069\u3001\u30c0\u30df\u30fc\u30c7\u30fc\u30bf\u8a2d\u5b9a\u3001stripe\u3092\u4f7f\u3063\u305f\u6c7a\u6e08\u65b9\u6cd5\u3001MicromodalJs\u3084SwiperJs\u306a\u3069\u306eJS\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u8a2d\u5b9a)<br \/>\n\\<br \/>\nEC-CUBE\u5165\u308c\u305f\u65b9\u304c\u8272\u3005\u3068\u90fd\u5408\u304c\u3088\u3044\u3063\u3066\u306a\u308b\u304b\u3082\u3057\u308c\u306a\u3044\u306e\u3067\u3001EC-CUBE\u3082\u53c2\u8003\u306b\u3059\u308b\u3002(\u5f8c\u56de\u3057)<br \/>\nec-cube \u30c7\u30b6\u30a4\u30f3\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8 \u7121\u6599\u3001\u3067\u30b0\u30b0\u3063\u305f\uff1a<br \/>\n<a href=\"https:\/\/shuukyakudesign.com\/content64\">https:\/\/shuukyakudesign.com\/content64<\/a><br \/>\nhttps:\/\/designup.jp\/eccube4-theme-develop.html<br \/>\nhttps:\/\/qiita.com\/xinome\/items\/35ae5237e5dd94c9fa2b<br \/>\n\\<br \/>\n.htaccess php\u3001\u3067\u30b0\u30b0\u3063\u305f\uff1a<br \/>\n.htaccess\u3067PHP\u306e\u8a2d\u5b9a &#8211; PHP \u3067 WEB\u4f5c\u6210<br \/>\nhttps:\/\/php-web.net\/web\/php-htaccess.html<br \/>\n(FC2\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u3067\u7121\u6599\u3067WordPress\u304c\u4f7f\u3048\u308b\u3068\u3044\u3046\u306e\u3067\u3001PHP\u4f7f\u3048\u308b\u304b\u8a66\u3059\u306e\u306b\u53c2\u8003\u306b\u3057\u305f)<br \/>\nhtml form method dialog\u3001\u3067\u30b0\u30b0\u3063\u305f\uff1a<br \/>\n\u305f\u307e\u305f\u307eform\u306emethod\u306e\u5165\u529b\u3092\u3057\u3066\u3044\u305f\u3089VSCode\u306e\u88dc\u5b8c\u6a5f\u80fd\u3067dialog\u3068\u51fa\u305f\u304c\u3001https:\/\/html-coding.co.jp\/annex\/dictionary\/html\/form\/ \u306b\u7121\u3044\u3001html5\u304b?<br \/>\nhttps:\/\/developer.mozilla.org\/ja\/docs\/Web\/HTML\/Element\/dialog global\u5c5e\u6027\u3060\u3063\u305f\u3002https:\/\/developer.mozilla.org\/ja\/docs\/Web\/HTML\/Global_attributes \u3084\u3063\u3071\u88dc\u5b8c\u6a5f\u80fd\u3042\u308b\u3068\u52a9\u304b\u308b\u3002<br \/>\nphp \u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3 \u3068\u306f\u3001\u3067\u30b0\u30b0\u3063\u305f\uff1a<br \/>\nhttps:\/\/techacademy.jp\/magazine\/49322<br \/>\n\u305d\u3053\u3067PHP\u7b49\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3092\u4f7f\u3063\u3066\u30c7\u30fc\u30bf\u3092\u51e6\u7406\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u304c\u3001\u9001\u4fe1\u30c7\u30fc\u30bf\u304c\u6b63\u3057\u3044\u5f62\u5f0f\u306e\u30c7\u30fc\u30bf\u3067\u3042\u308b\u304b\u3069\u3046\u304b\u3084\u60f3\u5b9a\u3057\u305f\u6587\u5b57\u6570\u306e\u7bc4\u56f2\u304b\u3001\u9069\u5207\u306a\u30c7\u30fc\u30bf\u578b\u306a\u306e\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u306e\u304c\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u6a5f\u80fd\u3067\u3059\u30022019\/12\/05<br \/>\nmysql utf8mb4_unicode_ci vs utf8_unicode_ci\u3001\u3067\u30b0\u30b0\u3063\u305f\uff1a<br \/>\n<a href=\"https:\/\/gomiba.co\/archives\/2017\/08\/938\/\">https:\/\/gomiba.co\/archives\/2017\/08\/938\/<\/a><br \/>\nMySQL \u306e UTF-8 \u306f 3 \u30d0\u30a4\u30c8\u306e\u5e45\u3057\u304b\u306a\u304f\u3001\u7d75\u6587\u5b57\u306a\u3069\u3092\u8868\u73fe\u3059\u308b\u305f\u3081\u306b\u306f 4 \u30d0\u30a4\u30c8\u304c\u5fc5\u8981\u3002\u304d\u3063\u3068\u6b74\u53f2\u7684\u306a\u80cc\u666f\u304b\u3089 utf8 \u3068 utf8mb4 \u304c\u5206\u88c2\u3057\u3066\u3044\u308b\u3002<br \/>\nhttps:\/\/qiita.com\/tfunato\/items\/e48ad0a37b8244a788f6<br \/>\nMySQL\u306e\u6587\u5b57\u30b3\u30fc\u30c9\u306f\u3053\u308c\u304b\u3089\u306futf8mb4\u4e00\u629e\u306e\u3088\u3046\u3067\u3059\u3002<br \/>\n\\<br \/>\nPHP\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306e\u307e\u3068\u3081\u30102023\u5e74\u7248\u3011 (2023.09)<br \/>\nhttps:\/\/freelance-start.com\/articles\/70#title9<br \/>\nCakePHP\u306f\u3001Ruby on Rails\u306e\u5f71\u97ff\u3092\u5f37\u304f\u53d7\u3051\u3066\u304a\u308a\uff0cWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u9ad8\u901f\u306b\u958b\u767a\u51fa\u6765\u307e\u3059\u3002<br \/>\nCakePHP\u3068Laravel\u306f\u3069\u3063\u3061\u304c\u304a\u3059\u3059\u3081\uff1f\u9055\u3044\u3084\u30e1\u30ea\u30c3\u30c8\u30c7\u30e1\u30ea\u30c3\u30c8\u3092\u6bd4\u8f03<br \/>\nhttps:\/\/www.sejuku.net\/blog\/126976<br \/>\n\u5fb9\u5e95\u6bd4\u8f03\uff01\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af5\u9078\uff08Web\u958b\u767a\uff09<br \/>\nhttps:\/\/www.crunchtimer.jp\/blog\/16586#%E3%83%90%E3%83%83%E3%82%AF%E3%82%A8%E3%83%B3%E3%83%89%E3%83%95%E3%83%AC%E3%83%BC%E3%83%A0%E3%83%AF%E3%83%BC%E3%82%AF_%E4%BA%BA%E6%B0%97%E3%83%A9%E3%83%B3%E3%82%AD%E3%83%B3%E3%82%B0<br \/>\n(Laravel\u306f\u5c0f\u898f\u6a21\u5411\u3051\u3089\u3057\u3044\u3002Express\u3001Laravel\u3001Flask)<br \/>\n\\<br \/>\nPEAR\u3068\u306f\uff1f\uff1a(2024.09)<br \/>\nPEAR (PHP Extension and Application Repository) \u3068\u306f\u3001PHP\u306e\u305f\u3081\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u304a\u3088\u3073\u518d\u5229\u7528\u53ef\u80fd\u306a\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3067\u3059\u3002PEAR\u306f\u3001PHP\u3067\u306e\u958b\u767a\u3092\u52b9\u7387\u5316\u3059\u308b\u305f\u3081\u306b\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\uff08\u30e2\u30b8\u30e5\u30fc\u30eb\uff09\u3092\u63d0\u4f9b\u3057\u3001\u958b\u767a\u8005\u304c\u5171\u901a\u306e\u6a5f\u80fd\u3092\u7c21\u5358\u306b\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u306e\u4ed5\u7d44\u307f\u3067\u3059\u3002<br \/>\npear\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3063\u3066\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3001\u66f4\u65b0\u3001\u524a\u9664\u304c\u3067\u304d\u307e\u3059\u3002Composer\u304c\u666e\u53ca\u3059\u308b\u4ee5\u524d\u3001PHP\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u4f9d\u5b58\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u7ba1\u7406\u3059\u308b\u305f\u3081\u306b\u4e00\u822c\u7684\u306b\u4f7f\u308f\u308c\u3066\u3044\u307e\u3057\u305f\u3002<br \/>\n\u73fe\u5728\u3067\u306fPHP\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u3068\u3057\u3066\u306fComposer\u304c\u4e3b\u6d41\u306b\u306a\u3063\u3066\u304a\u308a\u3001PEAR\u306e\u5229\u7528\u306f\u6e1b\u5c11\u3057\u3066\u3044\u307e\u3059\u3002\u3057\u304b\u3057\u3001PEAR\u306f\u4e00\u90e8\u306e\u30ec\u30ac\u30b7\u30fc\u30b7\u30b9\u30c6\u30e0\u3084\u53e4\u3044PHP\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u4f9d\u7136\u3068\u3057\u3066\u4f7f\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\n\\<br \/>\nphp \u30d5\u30a1\u30a4\u30eb\u30b5\u30fc\u30d0 \u4f5c\u308a\u65b9\u3001\u3067\u30b0\u30b0\u3063\u305f\uff1a(2023.11)<br \/>\nhttps:\/\/blow-in.net\/blog\/entry-1246.html<br \/>\n\\<br \/>\nPHP\u3092\u30b3\u30de\u30f3\u30c9\u5b9f\u884c\uff1a(2025.10)<br \/>\n<a href=\"https:\/\/shirakawa.weblike.jp\/blog-page\/2022\/01\/30\/html-css-php%e3%81%ae%e7%b7%b4%e7%bf%92-%e5%ae%9f%e8%b7%b5-%e9%9b%91%e5%a4%9a%e3%81%aa%e8%a8%98%e9%8c%b2-%e5%9f%ba%e6%9c%ac\/\">https:\/\/shirakawa.weblike.jp\/blog-page\/2022\/01\/30&#8230;<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>CSS\u306f\u7121\u304f\u3068\u3082\u3088\u3044\u5834\u5408\u3082(\u30b5\u30fc\u30d0\u5074\u3060\u3057)\u3002WordPress\u3092\u4f7f\u3063\u3066\u30d6\u30ed\u30b0\u3084EC\u30b5\u30a4\u30c8\u4f5c\u6210\u3082\u3044\u3044\u304c\u3001 \u3053\u308c\u306f\u3053\u308c\u3067\u57fa\u672c\u3060\u3051\u3067\u3082\u5e73\u884c\u3057\u3066\u3084\u3063\u3066\u304a\u304f\u304b\u306a\u3002WordPress\u306e\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u306b\u306fJavaScript \u3088\u308a\u3082\u5fc5\u8981 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-69","post","type-post","status-publish","format-standard","hentry","category-web-practice"],"_links":{"self":[{"href":"https:\/\/shirakawa.weblike.jp\/blog-page\/wp-json\/wp\/v2\/posts\/69","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shirakawa.weblike.jp\/blog-page\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shirakawa.weblike.jp\/blog-page\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shirakawa.weblike.jp\/blog-page\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/shirakawa.weblike.jp\/blog-page\/wp-json\/wp\/v2\/comments?post=69"}],"version-history":[{"count":45,"href":"https:\/\/shirakawa.weblike.jp\/blog-page\/wp-json\/wp\/v2\/posts\/69\/revisions"}],"predecessor-version":[{"id":1910,"href":"https:\/\/shirakawa.weblike.jp\/blog-page\/wp-json\/wp\/v2\/posts\/69\/revisions\/1910"}],"wp:attachment":[{"href":"https:\/\/shirakawa.weblike.jp\/blog-page\/wp-json\/wp\/v2\/media?parent=69"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shirakawa.weblike.jp\/blog-page\/wp-json\/wp\/v2\/categories?post=69"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shirakawa.weblike.jp\/blog-page\/wp-json\/wp\/v2\/tags?post=69"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}