{"id":9882,"date":"2019-02-07T18:46:57","date_gmt":"2019-02-07T09:46:57","guid":{"rendered":"https:\/\/www.itblog.jp\/?p=9882"},"modified":"2019-02-10T13:15:50","modified_gmt":"2019-02-10T04:15:50","slug":"laravel%e3%81%ae%e5%88%9d%e6%9c%9f%e8%a8%ad%e5%ae%9a","status":"publish","type":"post","link":"https:\/\/www.itblog.jp\/?p=9882","title":{"rendered":"Laravel\u306e\u521d\u671f\u8a2d\u5b9a"},"content":{"rendered":"<p>Laravel\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5f8c\u306b\u3001\u521d\u671f\u8a2d\u5b9a\u3067\u5909\u3048\u3066\u304a\u304f\u5834\u6240\u306b\u3064\u3044\u3066\u306e\u30e1\u30e2\u66f8\u304d\u3067\u3059\u3002<\/p>\n<h2>.env\u30d5\u30a1\u30a4\u30eb<\/h2>\n<p>.env\u30d5\u30a1\u30a4\u30eb\u306f\u3001Laravel\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u3057\u305f\u30d5\u30a9\u30eb\u30c0\u306b\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u3053\u306b\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u304c\u63a5\u7d9a\u3059\u308b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u95a2\u3059\u308b\u8a2d\u5b9a\u306a\u3069\u306e\u60c5\u5831\u304c\u4fdd\u5b58\u3057\u3066\u3042\u308b\u306e\u3067\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u5909\u66f4\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>.env\u30d5\u30a1\u30a4\u30eb\u3092\u5909\u66f4\u3057\u305f\u5f8c\u306b\u53cd\u6620\u3055\u305b\u308b\u306b\u306f\u3001<\/p>\n<p>php artisan config:clear<\/p>\n<p>\u3092\u5b9f\u884c\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h2>app.php<\/h2>\n<p>\/config\/\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3042\u308b\u300capp.php\u300d\u30d5\u30a1\u30a4\u30eb\u306b\u3001\u3044\u304f\u3064\u304b\u8a2d\u5b9a\u306b\u95a2\u3059\u308b\u9805\u76ee\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>timezone\u306e\u8a2d\u5b9a\u3067\u3059\u3002\u65e5\u672c\u306e\u30b5\u30a4\u30c8\u306e\u5834\u5408\u306f\u3001Asia\/Tokyo\u306b\u3057\u3066\u304a\u304f\u3068\u3088\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>&#8216;timezone&#8217; => &#8216;Asia\/Tokyo&#8217;,<\/p>\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3001en \u306b\u306a\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u3053\u308c\u306f\u82f1\u8a9e\u3068\u3044\u3046\u3053\u3068\u306a\u306e\u3067\u3001\u65e5\u672c\u8a9e\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>&#8216;locale&#8217; => &#8216;ja&#8217;,<\/p>\n<p>\u305f\u3060\u3057\u3001\u3053\u308c\u3060\u3051\u3067\u306f\u82f1\u8a9e\u306e\u307e\u307e\u3067\u306b\u4fdd\u8b77\u306b\u306a\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\/resources\/lang\/en<\/p>\n<p>\u3053\u306e\u30d5\u30a9\u30eb\u30c0\u3068\u305d\u306e\u4e2d\u306e\u30d5\u30a1\u30a4\u30eb\u7fa4\u3092<\/p>\n<p>\/resources\/kang\/en<\/p>\n<p>\u306b\u307e\u308b\u3063\u3068\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002<\/p>\n<p>\u3042\u3068\u306f\u3001\u305d\u308c\u4ee5\u4e0b\u306b\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u6587\u7ae0\u304c\u5168\u90e8\u82f1\u8a9e\u3067\u66f8\u3044\u3066\u3042\u308b\u306e\u3067\u3001\u305d\u308c\u3092<br \/>\n\u5730\u9053\u306b\u65e5\u672c\u8a9e\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<p>\u5168\u90e8\u5909\u66f4\u3059\u308b\u3068\u5927\u5909\u306a\u306e\u3067\u3001\u4f7f\u3063\u3066\u3044\u308b\u3076\u3093\u3060\u3051\u5909\u66f4\u3059\u308b\u3053\u3068\u3067\u3082\u554f\u984c\u306a\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306b\u7ffb\u8a33\u7248\u304c\u4e0a\u304c\u3063\u3066\u3044\u307e\u3057\u305f\u3002<br \/>\n5.1\u306e\u3060\u305d\u3046\u3067\u3059\u304c\u30fb\u30fb\u30fb\u3002<\/p>\n<p><a href=\"https:\/\/gist.github.com\/syokunin\/b37725686b5baf09255b\">Laravel 5.1 \u65e5\u672c\u8a9e\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u30e1\u30c3\u30bb\u30fc\u30b8\u30d5\u30a1\u30a4\u30eb<\/a><\/p>\n<p>\u307e\u305f\u3001\u3053\u308c\u3060\u3051\u3067\u306f attribute\u304c\u82f1\u8a9e\u3067\u51fa\u529b\u3055\u308c\u308b\u306e\u3067<\/p>\n<p>\u3055\u304d\u307b\u3069\u306e validation.php\u306e<\/p>\n<p>&#8216;attributes&#8217; => [],<\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u3059\u308b\u3053\u3068\u3067\u3001\u5bfe\u5fdc\u3059\u308battribute\u304c\u65e5\u672c\u8a9e\u3067\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>&#8216;attributes&#8217; => [<br \/>\n        &#8216;title&#8217; => &#8216;\u30bf\u30a4\u30c8\u30eb&#8217;,<br \/>\n        &#8216;body&#8217; => &#8216;\u672c\u6587&#8217;,<br \/>\n]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Laravel\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5f8c\u306b\u3001\u521d\u671f\u8a2d\u5b9a\u3067\u5909\u3048\u3066\u304a\u304f\u5834\u6240\u306b\u3064\u3044\u3066\u306e\u30e1\u30e2\u66f8\u304d\u3067\u3059\u3002 .env\u30d5\u30a1\u30a4\u30eb .env\u30d5\u30a1\u30a4\u30eb\u306f\u3001Laravel\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u3057\u305f\u30d5\u30a9\u30eb\u30c0\u306b\u3042\u308a\u307e\u3059\u3002 \u3053\u3053\u306b\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u304c\u63a5\u7d9a\u3059\u308b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[140,131],"tags":[],"class_list":["post-9882","post","type-post","status-publish","format-standard","hentry","category-laravel","category-131"],"_links":{"self":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts\/9882","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9882"}],"version-history":[{"count":0,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts\/9882\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9882"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9882"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9882"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}