{"id":889,"date":"2023-05-17T15:25:32","date_gmt":"2023-05-17T06:25:32","guid":{"rendered":"https:\/\/shinke1987.net\/?p=889"},"modified":"2023-09-17T15:25:45","modified_gmt":"2023-09-17T06:25:45","slug":"laravel-%e3%81%ae%e3%83%87%e3%82%a3%e3%83%ac%e3%82%af%e3%83%88%e3%83%aa%e6%a7%8b%e9%80%a0","status":"publish","type":"post","link":"https:\/\/shinke1987.net\/?p=889","title":{"rendered":"Laravel \u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u69cb\u9020"},"content":{"rendered":"\n<h2 id=\"toc0\" class=\"wp-block-heading\">\u53c2\u8003Web\u30da\u30fc\u30b8<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u69cb\u9020 10.x Laravel<br><a href=\"https:\/\/readouble.com\/laravel\/10.x\/ja\/structure.html\" data-type=\"URL\" data-id=\"https:\/\/readouble.com\/laravel\/10.x\/ja\/structure.html\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/readouble.com\/laravel\/10.x\/ja\/structure.html<\/a><\/li>\n<\/ul>\n\n\n\n<h2 id=\"toc1\" class=\"wp-block-heading\">MVC\u3068\u30eb\u30fc\u30c8\u306e\u5834\u6240<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9<br>app\/Http\/Controllers<\/li>\n\n\n\n<li>\u30e2\u30c7\u30eb\uff08DB\u3068\u3084\u308a\u3068\u308a\uff09<br>app\/Models<\/li>\n\n\n\n<li>\u30d3\u30e5\u30fc<br>resources\/views<\/li>\n\n\n\n<li>\u30eb\u30fc\u30c8<br>routes<\/li>\n<\/ul>\n\n\n\n<h2 id=\"toc2\" class=\"wp-block-heading\">\u5404\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3084\u30d5\u30a1\u30a4\u30eb\u306b\u3064\u3044\u3066<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td colspan=\"3\"><center><span class=\"bold\">\u2190 \u5de6\u3078\u884c\u304f\u307b\u3069\u968e\u5c64\u4e0a\u3000\u3000\uff5c\u3000\u3000\u53f3\u3078\u884c\u304f\u307b\u3069\u968e\u5c64\u4e0b \u2192<\/span><\/center><\/td><\/tr><tr><td rowspan=\"9\">app<\/td><td rowspan=\"2\">Console<\/td><td>Commands<br>\u30aa\u30ea\u30b8\u30ca\u30eb\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f5c\u6210\u3057\u305f\u3089\u4fdd\u7ba1\u3059\u308b\u5834\u6240\u3002<\/td><\/tr><tr><td>Kernel.php<br>\u30d0\u30c3\u30c1\u51e6\u7406\u7b49\u3092\u30b9\u30b1\u30b8\u30e5\u30fc\u30ea\u30f3\u30b0\u3057\u305f\u3044\u6642\u306b\u8a18\u8ff0\u3002<\/td><\/tr><tr><td>Exceptions<br>\u4f8b\u5916\u51e6\u7406\u3002<\/td><td><\/td><\/tr><tr><td rowspan=\"3\">Http<\/td><td>Controllers<br>\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u5165\u308b\u3002<\/td><\/tr><tr><td>Middleware<br>\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u3067\u51e6\u7406\u3059\u308b\u524d\u306b\u3001\u5b9f\u65bd\u3057\u305f\u3044\u51e6\u7406\u304c\u3042\u308b\u6642\u306b\u4f7f\u3046\u3002<\/td><\/tr><tr><td>Requests<\/td><\/tr><tr><td>Models<br>\u30e2\u30c7\u30eb\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u5165\u308b\u3002Laravel7\u4ee5\u964d\u304b\u3089\u4f7f\u308f\u308c\u3066\u3044\u308b\u3002Laravel6\u4ee5\u524d\u306fapp\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3060\u3063\u305f\u3002<\/td><td><\/td><\/tr><tr><td>Providers<br>Laravel\u8d77\u52d5\u6642\u306e\u51e6\u7406\u3092\u8a2d\u5b9a\u3059\u308b\u3002<\/td><td><\/td><\/tr><tr><td>View<\/td><td><\/td><\/tr><tr><td>bootstrap<br>\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u521d\u671f\u8d77\u52d5\u51e6\u7406\u3059\u308bapp.php\u304c\u5165\u3063\u3066\u3044\u308b\u3002\u901a\u5e38\u7de8\u96c6\u3059\u308b\u3053\u3068\u306f\u306a\u3044\u3002<\/td><td><\/td><td><\/td><\/tr><tr><td>config<br>\u8a2d\u5b9a\u7528\u30d5\u30a1\u30a4\u30eb\u304c\u5165\u308b\u3002<\/td><td><\/td><td><\/td><\/tr><tr><td rowspan=\"3\">database<\/td><td>factories<\/td><td>\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u3092\u4f5c\u6210\u3059\u308b\u6642\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u304c\u5165\u308b\u3002\u30c7\u30fc\u30bf\u578b\u3084\u30e2\u30c7\u30eb\u306b\u5408\u308f\u305b\u3066\u6761\u4ef6\u3092\u8a2d\u5b9a\u3067\u304d\u308b\u3002<\/td><\/tr><tr><td>migrations<\/td><td>\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u30d5\u30a1\u30a4\u30eb\u304c\u5165\u308b\u3002\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u30d5\u30a1\u30a4\u30eb\u3092\u901a\u3058\u3066\u3001\u30c6\u30fc\u30d6\u30eb\u3084\u5217\u306e\u4f5c\u6210\u30fb\u5909\u66f4\u3092\u884c\u3046\u3002<\/td><\/tr><tr><td>seeders<\/td><td>\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u3092\u4f55\u500b\u4f5c\u308b\u304b\u3001\u306a\u3069\u306e\u8a2d\u5b9a\u3092\u3059\u308b\u3002DB\u521d\u671f\u5024\u306e\u8a2d\u5b9a\u3082\u3067\u304d\u308b\u3002<\/td><\/tr><tr><td>lang<br>\u8a00\u8a9e\u30d5\u30a1\u30a4\u30eb\u304c\u5165\u308b\u3002<br>Laravel 9 \u307e\u3067\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u5b58\u5728\u3057\u305f\u304c\u3001<br>10\u3067\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u5b58\u5728\u3057\u306a\u3044\u3002<\/td><td><\/td><td><\/td><\/tr><tr><td>public<br>\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u5834\u6240\u3002<br>\u901a\u5e38\u3053\u3053\u306bCSS\u3084JavaScript\u3084<br>\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u3092\u5165\u308c\u308b\u3002<\/td><td><\/td><td><\/td><\/tr><tr><td rowspan=\"3\">resources<\/td><td>css<br>Breeze\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u3001Tailwind\u306b\u95a2\u3059\u308b\u30b3\u30fc\u30c9\u304c\u5165\u308b\u3002<\/td><td><\/td><\/tr><tr><td>js<br>Breeze\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u3001Alpine.js\u306b\u95a2\u3059\u308b\u30b3\u30fc\u30c9\u304c\u5165\u308b\u3002<\/td><td><\/td><\/tr><tr><td>views<br>\u30d3\u30e5\u30fc\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u5165\u308b\u3002<\/td><td><\/td><\/tr><tr><td rowspan=\"2\">routes<br>\u30eb\u30fc\u30c8\u8a2d\u5b9a\u7528\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u5165\u308b\u3002<\/td><td>web.php<br>\u901a\u5e38\u306f\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306b<br>\u30eb\u30fc\u30c8\u306e\u8a2d\u5b9a\u3092\u8a18\u8ff0\u3059\u308b\u3002<\/td><td><\/td><\/tr><tr><td>auth.php<br>Breeze\u306a\u3069\u306e\u30e6\u30fc\u30b6\u8a8d\u8a3c\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u5c0e\u5165\u3059\u308b\u3068\u3001\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u308b\u3002\u30e6\u30fc\u30b6\u8a8d\u8a3c\u306b\u95a2\u3059\u308b\u30eb\u30fc\u30c8\u8a2d\u5b9a\u304c\u8a18\u8ff0\u3055\u308c\u308b\u3002<\/td><td><\/td><\/tr><tr><td rowspan=\"3\">storage<\/td><td>app<br>\u30d5\u30a9\u30fc\u30e0\u306a\u3069\u3092\u901a\u3058\u3066\u4fdd\u5b58\u3057\u305f<br>\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u7b49\u3092\u4fdd\u5b58\u3059\u308b\u3002<br>\u901a\u5e38\u3001public\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b<br>\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u30d6\u30e9\u30a6\u30b6\u304b\u3089storage\/app\u3078\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u3002<\/td><td><\/td><\/tr><tr><td>framework<br>\u30ad\u30e3\u30c3\u30b7\u30e5\u30d5\u30a1\u30a4\u30eb\u306a\u3069\u304c\u5165\u308b\u3002\u901a\u5e38\u64cd\u4f5c\u3057\u306a\u3044\u3002<\/td><td><\/td><\/tr><tr><td>logs<br>\u30a8\u30e9\u30fc\u6642\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u7b49\u304c\u8a18\u9332\u3055\u308c\u308b\u3002<\/td><td><\/td><\/tr><tr><td>tests<br>PHPUnit\u306a\u3069\u306e<br>\u30c6\u30b9\u30c8\u95a2\u9023\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u5165\u308b\u3002<\/td><td><\/td><td><\/td><\/tr><tr><td>vendor<br>\u5404\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u5165\u308b\u3002<br>\u672c\u756a\u74b0\u5883\u306b\u79fb\u884c\u3059\u308b\u6642\u306f\u3001<br>\u901a\u5e38\u3053\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u4e2d\u8eab\u306f\u79fb\u52d5\u3055\u305b\u306a\u3044\u306e\u3067\u3001<br>\u3053\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306e\u30d5\u30a1\u30a4\u30eb\u306f<br>\u76f4\u63a5\u7de8\u96c6\u3057\u306a\u3044\u65b9\u304c\u826f\u3044\u3002<\/td><td><\/td><td><\/td><\/tr><tr><td>composer.json<br>composer.lockjson<br>\u30d5\u30a1\u30a4\u30eb\u306b\u306f\u5fc5\u8981\u306a\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u7a2e\u985e\u3068<br>\u30d0\u30fc\u30b8\u30e7\u30f3\u6761\u4ef6\u304c\u8a18\u8f09\u3055\u308c\u3066\u3044\u308b\u3002<br>lock\u30d5\u30a1\u30a4\u30eb\u306b\u306f\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u958b\u767a\u74b0\u5883\u3067<br>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u6642\u306e\u60c5\u5831\u304c\u5165\u3063\u3066\u3044\u308b\u3002<br>\u672c\u756a\u74b0\u5883\u3067\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u53cd\u6620\u3055\u305b\u308b\u6642\u306b\u3001\u300ccomposer install\u300d\u3092\u5b9f\u65bd\u3059\u308b\u3068\u3001<br>lock\u30d5\u30a1\u30a4\u30eb\u306e\u60c5\u5831\u3092\u3082\u3068\u306b<br>\u958b\u767a\u74b0\u5883\u3068\u540c\u3058\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092<br>\u672c\u756a\u74b0\u5883\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u308b\u3002<\/td><td><\/td><td><\/td><\/tr><tr><td>package.json<br>package-lock.json<br>TailwindCSS\u306a\u3069\u306fNode.js\u3092\u4f7f\u3046\u3002<br>\u3053\u3046\u3044\u3063\u305fNode.js\u3092\u4f7f\u3063\u3066\u5165\u308c\u308b<br>\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u7a2e\u985e\u3068\u30d0\u30fc\u30b8\u30e7\u30f3\u60c5\u5831\u304c<br>\u8a18\u8f09\u3055\u308c\u308b\u3002<br>package.json\u306b\u306f\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u7a2e\u985e\u3068\u30d0\u30fc\u30b8\u30e7\u30f3\u6761\u4ef6\u304c\u8a18\u8f09\u3055\u308c\u3066\u3044\u308b\u3002<br>package-lock.json\u306b\u306f\u3001<br>\u5b9f\u969b\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305f<br>\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u60c5\u5831\u304c\u5165\u3063\u3066\u3044\u308b\u3002<br>npm\u30b3\u30de\u30f3\u30c9\u3067\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u6642\u306b\u4f7f\u3046\u3002<\/td><td><\/td><td><\/td><\/tr><tr><td>.env<br>\u74b0\u5883\u5909\u6570\u3092\u8a2d\u5b9a\u3059\u308b\u3002<\/td><td><\/td><td><\/td><\/tr><tr><td>vite.config.js<br>Laravel Vite \u306b\u95a2\u3059\u308b\u8a2d\u5b9a\u304c\u5165\u308b\u3002<\/td><td><\/td><td><\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u53c2\u8003Web\u30da\u30fc\u30b8 MVC\u3068\u30eb\u30fc\u30c8\u306e\u5834\u6240 \u5404\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3084\u30d5\u30a1\u30a4\u30eb\u306b\u3064\u3044\u3066 \u2190 \u5de6\u3078\u884c\u304f\u307b\u3069\u968e\u5c64\u4e0a\u3000\u3000\uff5c\u3000\u3000\u53f3\u3078\u884c\u304f\u307b\u3069\u968e\u5c64\u4e0b \u2192 app Console Commands\u30aa\u30ea\u30b8\u30ca\u30eb\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f5c\u6210\u3057\u305f\u3089\u4fdd\u7ba1\u3059\u308b\u5834\u6240\u3002 K [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[96,80],"tags":[88,81],"class_list":["post-889","post","type-post","status-publish","format-standard","hentry","category-laravel","category-php","tag-laravel","tag-php"],"_links":{"self":[{"href":"https:\/\/shinke1987.net\/index.php?rest_route=\/wp\/v2\/posts\/889","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shinke1987.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shinke1987.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shinke1987.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/shinke1987.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=889"}],"version-history":[{"count":2,"href":"https:\/\/shinke1987.net\/index.php?rest_route=\/wp\/v2\/posts\/889\/revisions"}],"predecessor-version":[{"id":892,"href":"https:\/\/shinke1987.net\/index.php?rest_route=\/wp\/v2\/posts\/889\/revisions\/892"}],"wp:attachment":[{"href":"https:\/\/shinke1987.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=889"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shinke1987.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=889"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shinke1987.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=889"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}