{"id":9902,"date":"2019-03-01T17:35:12","date_gmt":"2019-03-01T08:35:12","guid":{"rendered":"https:\/\/www.itblog.jp\/?p=9902"},"modified":"2019-03-01T17:35:12","modified_gmt":"2019-03-01T08:35:12","slug":"laravel%e3%81%ae%e8%aa%8d%e8%a8%bc%e6%a9%9f%e8%83%bdauth%e3%81%a7%e6%96%b0%e8%a6%8f%e3%83%a6%e3%83%bc%e3%82%b6%e7%99%bb%e9%8c%b2%e3%82%92%e3%81%a7%e3%81%8d%e3%81%aa%e3%81%8f%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/www.itblog.jp\/?p=9902","title":{"rendered":"Laravel\u306e\u8a8d\u8a3c\u6a5f\u80fd(auth)\u3067\u65b0\u898f\u30e6\u30fc\u30b6\u767b\u9332\u3092\u3067\u304d\u306a\u304f\u3059\u308b"},"content":{"rendered":"<p>Laravel\u306e\u8a8d\u8a3c\u6a5f\u80fd\u3067\u3001\u30e6\u30fc\u30b6\u767b\u9332\u3092\u3067\u304d\u306a\u304f\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u306e\u89e3\u8aac\u3067\u3059\u3002<\/p>\n<p>Laravel\u306b\u306f\u3001\u6a19\u6e96\u3067Auth(\u8a8d\u8a3c\u6a5f\u80fd)\u304c\u3064\u3044\u3066\u3044\u308b\u306e\u3067\u3001\u6a19\u6e96\u3067\u5165\u3063\u3066\u3044\u308b\u8a8d\u8a3c\u6a5f\u80fd\u3092\u5c0e\u5165\u3059\u308b\u306e\u306f\u975e\u5e38\u306b\u7c21\u5358\u3067\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u3053\u306e\u6a19\u6e96\u306eAuth\u6a5f\u80fd\u306f\u3001Auth\u3092\u304b\u3051\u3066\u3044\u308b\u30da\u30fc\u30b8\u3092\u30ed\u30b0\u30a4\u30f3\u30da\u30fc\u30b8\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3057\u3001\u305d\u3053\u3067\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3059\u308c\u3070\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u3053\u3068\u304c\u3067\u3067\u304d\u308b\u306e\u3067\u3059\u304c\u3001\u65b0\u898f\u767b\u9332\u3078\u306e\u5c0e\u7dda\u304c\u3064\u3044\u3066\u3044\u308b\u306e\u3067\u3001\u7ba1\u7406\u8005\u3060\u3051\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u308c\u3070\u3088\u304f\u3066\u3001\u305d\u308c\u4ee5\u5916\u306e\u30e6\u30fc\u30b6\u306e\u65b0\u898f\u767b\u9332\u3092\u53d7\u3051\u4ed8\u3051\u3066\u3044\u306a\u3044\u5834\u5408\u304c\u3042\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u3088\u3046\u306a\u5834\u5408\u3067\u3082\u3001routes\u306e\u8a2d\u5b9a\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u3067\u7c21\u5358\u306b\u5bfe\u5fdc\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>php artisan:make auth<\/p>\n<p>\u3092\u3059\u308b\u3053\u3068\u3067\u3001routes\u306eweb.php\u306b\u4ee5\u4e0b\u306e\uff12\u884c\u304c\u8ffd\u52a0\u3055\u308c\u3066\u3044\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"Null\">\r\nAuth::routes();\r\n\r\nRoute::get('\/home', 'HomeController@index')->name('home');\r\n<\/pre>\n<p>\u3053\u308c\u3092\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u66f4\u3059\u308c\u3070OK\u3067\u3059\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"Null\">\r\n\/\/\u3053\u3053\u3092\u5909\u66f4\r\nAuth::routes(['register' => false]);\r\n\r\nRoute::get('\/home', 'HomeController@index')->name('home');\r\n<\/pre>\n<p>\u3053\u308c\u3092\u3059\u308b\u3053\u3068\u3067\u3001\u30ed\u30b0\u30a4\u30f3\u753b\u9762\u306bRegister\u3068\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u90e8\u5206\u304c\u6d88\u3048\u3001\u767b\u9332\u304c\u3067\u304d\u306a\u304f\u306a\u308b\u4ed6\u3001\u767b\u9332URL\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u3082404 not found\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u5408\u308f\u305b\u3066RegisterController\u3092\u524a\u9664\u3059\u308b\u3088\u3046\u306b\u3001<a href=\"https:\/\/readouble.com\/laravel\/5.7\/ja\/authentication.html\">Laravel\u516c\u5f0f\u30b5\u30a4\u30c8<\/a>\u306b\u306f\u66f8\u3044\u3066\u3042\u308a\u307e\u3059\u304c\u3001\u7279\u306b\u305d\u306e\u5bfe\u5fdc\u3092\u3057\u306a\u304f\u3066\u3082\u6a5f\u80fd\u3057\u306a\u304f\u306a\u3063\u3066\u3044\u305f\u306e\u3067\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u304c\u3001\u4e00\u5fdc\u524a\u9664\u3057\u3066\u304a\u304f\u3068\u826f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Laravel\u306e\u8a8d\u8a3c\u6a5f\u80fd\u3067\u3001\u30e6\u30fc\u30b6\u767b\u9332\u3092\u3067\u304d\u306a\u304f\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u306e\u89e3\u8aac\u3067\u3059\u3002 Laravel\u306b\u306f\u3001\u6a19\u6e96\u3067Auth(\u8a8d\u8a3c\u6a5f\u80fd)\u304c\u3064\u3044\u3066\u3044\u308b\u306e\u3067\u3001\u6a19\u6e96\u3067\u5165\u3063\u3066\u3044\u308b\u8a8d\u8a3c\u6a5f\u80fd\u3092\u5c0e\u5165\u3059\u308b\u306e\u306f\u975e\u5e38\u306b\u7c21\u5358\u3067\u3059\u3002 \u3057\u304b\u3057\u3001\u3053\u306e\u6a19\u6e96\u306eAu [&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-9902","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\/9902","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=9902"}],"version-history":[{"count":0,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts\/9902\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9902"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9902"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9902"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}