{"id":8735,"date":"2020-05-08T10:00:08","date_gmt":"2020-05-08T01:00:08","guid":{"rendered":"https:\/\/www.gigas-jp.com\/appnews\/?p=8735"},"modified":"2020-05-07T14:30:36","modified_gmt":"2020-05-07T05:30:36","slug":"laravel-%e3%83%90%e3%83%aa%e3%83%87%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%82%a8%e3%83%a9%e3%83%bc%e3%83%a1%e3%83%83%e3%82%bb%e3%83%bc%e3%82%b8%e3%81%ae%e6%97%a5%e6%9c%ac%e8%aa%9e%e5%8c%96","status":"publish","type":"post","link":"https:\/\/www.gigas-jp.com\/appnews\/archives\/8735","title":{"rendered":"[Laravel] \u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u65e5\u672c\u8a9e\u5316"},"content":{"rendered":"\n<p>Laravel\u6a19\u6e96\u306e\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u6a5f\u80fd\u3092\u4f7f\u7528\u3057\u305f\u5834\u5408\u3001\u82f1\u8a9e\u3067\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<br> \u4eca\u56de\u306fLaravel\u306e\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u65e5\u672c\u8a9e\u5316\u3092\u304a\u3053\u306a\u3046\u65b9\u6cd5\u3092\u8aac\u660e\u3044\u305f\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>\uff08Laravel\u306e\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u6a5f\u80fd\u306e\u57fa\u672c\u7684\u306a\u4f7f\u7528\u65b9\u6cd5\u306b\u3064\u3044\u3066\u306f<a rel=\"noreferrer noopener\" aria-label=\"\u524d\u56de\u306e\u8a18\u4e8b (\u65b0\u3057\u3044\u30bf\u30d6\u3067\u958b\u304f)\" href=\"\/appnews\/archives\/8714\" target=\"_blank\">\u524d\u56de\u306e\u8a18\u4e8b<\/a>\u3092\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\u3002\uff09<\/p>\n\n\n\n<h4>\u65e5\u672c\u8a9e\u306e\u30ea\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u6210\/\u6e96\u5099\u3092\u304a\u3053\u306a\u3046\u3002<\/h4>\n\n\n\n<p>\u65e5\u672c\u8a9e\u30ea\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb(validation.php)\u306f\u4ee5\u4e0b\u306b\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/resources\/lang\/ja<\/code><\/pre>\n\n\n\n<p>\u300cja\u300d\u306f\u300c\u65e5\u672c\u8a9e\u300d\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u90e8\u5206\u306f\u30ed\u30fc\u30ab\u30e9\u30a4\u30ba\u3092\u304a\u3053\u306a\u3046\u8a00\u8a9e\u306b\u3088\u3063\u3066\u5909\u5316\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u65e5\u672c\u8a9e\u30ea\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb(validation.php)\u306f\u4ee5\u4e0b\u3067\u516c\u958b\u3055\u308c\u3066\u3044\u307e\u3059\u306e\u3067\u3053\u3061\u3089\u3092\u5229\u7528\u3055\u305b\u3066\u3044\u305f\u3060\u3044\u3066\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u6587\u8a00\u3092\u66f8\u304d\u63db\u3048\u3066\u3044\u304f\u65b9\u6cd5\u304c\u52b9\u7387\u7684\u3067\u3059\u3002<\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" aria-label=\" (\u65b0\u3057\u3044\u30bf\u30d6\u3067\u958b\u304f)\" href=\"https:\/\/gist.github.com\/syokunin\/b37725686b5baf09255b\" target=\"_blank\">https:\/\/gist.github.com\/syokunin\/b37725686b5baf09255b<\/a><\/p>\n\n\n\n<p>\u65e5\u672c\u8a9e\u30ea\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb(validation.php)\u306f\u300c\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u540d =&gt; \u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u300d\u306e\u914d\u5217\u3067\u8a18\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u4fee\u6b63\u3092\u304a\u3053\u306a\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>    'accepted'             => ':attribute\u3092\u627f\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002',\n    'active_url'           => ':attribute\u306f\u6b63\u3057\u3044URL\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002',\n    'after'                => ':attribute\u306f:date\u4ee5\u964d\u306e\u65e5\u4ed8\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002',\n    'alpha'                => ':attribute\u306f\u82f1\u5b57\u306e\u307f\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002',\n    'alpha_dash'           => ':attribute\u306f\u82f1\u6570\u5b57\u3068\u30cf\u30a4\u30d5\u30f3\u306e\u307f\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002',\n    'alpha_num'            => ':attribute\u306f\u82f1\u6570\u5b57\u306e\u307f\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002',<\/code><\/pre>\n\n\n\n<p>\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u5185\u306e\u300c:attribute\u300d\u3068\u8a18\u8f09\u3055\u308c\u3066\u3044\u308b\u90e8\u5206\u306f\u3001\u691c\u8a3c\u30d5\u30a9\u30fc\u30e0\u306ename\u8a2d\u5b9a\u306b\u7f6e\u304d\u63db\u3048\u3089\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>name\u8a2d\u5b9a\u90e8\u5206\u3082\u65e5\u672c\u8a9e\u306b\u7f6e\u304d\u63db\u3048\u305f\u3044\u5834\u5408\u3001\u4e0a\u8a18\u65e5\u672c\u8a9e\u30ea\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb(validation.php)\u306e106\u884c\u76ee\u306b\u3042\u308battributes\u90e8\u5206\u306b\u8ffd\u52a0\u3092\u304a\u3053\u306a\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4f8b\u3048\u3070\u3001name\u8a2d\u5b9a\u304c\u300cname\u300d\u3068\u8a2d\u5b9a\u3055\u308c\u3066\u304a\u308a\u3001\u305d\u306e\u90e8\u5206\u3092\u300c\u540d\u524d\u300d\u3068\u65e5\u672c\u8a9e\u5316\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3092\u304a\u3053\u306a\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code> 'attributes' => [\n     'name' => '\u540d\u524d',\n ],<\/code><\/pre>\n\n\n\n<p><br><br><\/p>\n\n\n\n<h4>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u65e5\u672c\u8a9e\u5316<\/h4>\n\n\n\n<p>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5168\u4f53\u306e\u8a00\u8a9e\u8a2d\u5b9a\u3092\u65e5\u672c\u8a9e\u306b\u8a2d\u5b9a\u3092\u304a\u3053\u306a\u3048\u3070\u3001\u4ee5\u4e0a\u3067\u8a2d\u5b9a\u3057\u305f\u65e5\u672c\u8a9e\u306e\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u8a00\u8a9e\u8a2d\u5b9a\u306f<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>config\/app.php<\/code><\/pre>\n\n\n\n<p>\u3067\u8a2d\u5b9a\u3092\u304a\u3053\u306a\u3046\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<p>&#8216;locale&#8217;\u90e8\u5206\u3092&#8217;ja&#8217;\u306b\u8a2d\u5b9a\u3059\u308b\u3068\u3001\u65e5\u672c\u8a9e\u306e\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>'locale' => 'ja',<\/code><\/pre>\n\n\n\n<p><br>\u91d1\u66dc\u65e5\u62c5\u5f53: nishida<\/p>\n<div class='wp_social_bookmarking_light'>\n            <div class=\"wsbl_google_plus_one\"><g:plusone size=\"medium\" annotation=\"none\" href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/8735\" ><\/g:plusone><\/div>\n            <div class=\"wsbl_hatena_button\"><a href=\"\/\/b.hatena.ne.jp\/entry\/https:\/\/www.gigas-jp.com\/appnews\/archives\/8735\" class=\"hatena-bookmark-button\" data-hatena-bookmark-title=\"[Laravel] \u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u65e5\u672c\u8a9e\u5316\" data-hatena-bookmark-layout=\"standard\" title=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\"> <img src=\"\/\/b.hatena.ne.jp\/images\/entry-button\/button-only@2x.png\" alt=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\" width=\"20\" height=\"20\" style=\"border: none;\" \/><\/a><script type=\"text\/javascript\" src=\"\/\/b.hatena.ne.jp\/js\/bookmark_button.js\" charset=\"utf-8\" async=\"async\"><\/script><\/div>\n            <div class=\"wsbl_twitter\"><a href=\"https:\/\/twitter.com\/share\" class=\"twitter-share-button\" data-url=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/8735\" data-text=\"[Laravel] \u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u65e5\u672c\u8a9e\u5316\" data-via=\"GIGASJAPAN_APPS\" data-lang=\"ja\">Tweet<\/a><\/div>\n            <div class=\"wsbl_facebook_like\"><div id=\"fb-root\"><\/div><fb:like href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/8735\" layout=\"button_count\" action=\"like\" width=\"100\" share=\"false\" show_faces=\"false\" ><\/fb:like><\/div>\n            <div class=\"wsbl_facebook_send\"><div id=\"fb-root\"><\/div><fb:send href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/8735\" colorscheme=\"light\" ><\/fb:send><\/div>\n    <\/div>\n<br class='wp_social_bookmarking_light_clear' \/>\n","protected":false},"excerpt":{"rendered":"<p>Laravel\u6a19\u6e96\u306e\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u6a5f\u80fd\u3092\u4f7f\u7528\u3057\u305f\u5834\u5408\u3001\u82f1\u8a9e\u3067\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002 \u4eca\u56de\u306fLaravel\u306e\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u65e5\u672c\u8a9e\u5316\u3092\u304a\u3053\u306a\u3046\u65b9\u6cd5\u3092\u8aac\u660e\u3044\u305f\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"author":16,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[100],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/8735"}],"collection":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/comments?post=8735"}],"version-history":[{"count":14,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/8735\/revisions"}],"predecessor-version":[{"id":8751,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/8735\/revisions\/8751"}],"wp:attachment":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/media?parent=8735"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/categories?post=8735"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/tags?post=8735"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}