{"id":9883,"date":"2019-02-07T19:17:51","date_gmt":"2019-02-07T10:17:51","guid":{"rendered":"https:\/\/www.itblog.jp\/?p=9883"},"modified":"2019-02-10T16:36:42","modified_gmt":"2019-02-10T07:36:42","slug":"laravel5-7%e3%81%a7%e8%aa%8d%e8%a8%bc%e6%a9%9f%e8%83%bd%e3%82%92%e4%bd%bf%e3%81%86","status":"publish","type":"post","link":"https:\/\/www.itblog.jp\/?p=9883","title":{"rendered":"Laravel5.7\u3067\u8a8d\u8a3c\u6a5f\u80fd\u3092\u4f7f\u3046"},"content":{"rendered":"<p>Laravel\u3067\u8a8d\u8a3c\u6a5f\u80fd\u3092\u4f7f\u3046\u65b9\u6cd5\u306b\u3064\u3044\u3066\u306e\u89e3\u8aac\u3067\u3059\u3002<\/p>\n<p>Laravel\u306b\u306f\u8a8d\u8a3c\u306b\u5fc5\u8981\u306a\u6a5f\u80fd\u304c\u6700\u521d\u304b\u3089\u6e96\u5099\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u5fc5\u8981\u3067\u3042\u308c\u3070\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u3001\u666e\u901a\u306b\u30d9\u30fc\u30b7\u30c3\u30af\u8a8d\u8a3c\u3092\u884c\u3046\u306e\u3067\u3042\u308c\u3070\u3001.htaccess\u3092\u4f7f\u3048\u3070\u3044\u3044\u306e\u3067\u3059\u304c\u3001\u3053\u3053\u3067\u8a00\u3063\u3066\u3044\u308b\u8a8d\u8a3c\u3068\u306f\u3001\u30e6\u30fc\u30b6ID\u3068PW\u3092\u5165\u529b\u3057\u3066\u30ed\u30b0\u30a4\u30f3\u3057\u3001\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3044\u306a\u3051\u308c\u3070\u30ed\u30b0\u30a4\u30f3\u30da\u30fc\u30b8\u306b\u98db\u3070\u3055\u308c\u308b\u3068\u3044\u3046\u3084\u3064\u3067\u3059\u3002<\/p>\n<p>\u3042\u307e\u308a\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3057\u306a\u3044\u306e\u3067\u3042\u308c\u3070\u7c21\u5358\u306b\u5b9f\u88c5\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>artisan\u3067auth\u6a5f\u80fd\u3092\u6e96\u5099\u3059\u308b<\/h2>\n<p>\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3067\u3001Lara\uff56el\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30d5\u30a9\u30eb\u30c0\u306b\u79fb\u52d5\u3057\u3001<\/p>\n<p>php artisan make:auth<\/p>\n<p>\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3092\u6e96\u5099\u3059\u308b\u3053\u3068\u3067\u3001\u5fc5\u8981\u306a\u30d5\u30a1\u30a4\u30eb\u304cLaravel\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u751f\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n<h2>roues\u30d5\u30a1\u30a4\u30eb\u306b\u8ffd\u8a18\u3055\u308c\u3066\u3044\u308b<\/h2>\n<p>routes\u306eweb.php\u306b\u3001\u3055\u304d\u307b\u3069\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u3001\u4e0b\u306e\uff12\u884c\u306e\u8a18\u8ff0\u304c\u8ffd\u52a0\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>Auth::routes();<\/p>\n<p>Route::get(&#8216;\/home&#8217;, &#8216;HomeController@index&#8217;)->name(&#8216;home&#8217;);<\/p>\n<p>\u4e0a\u8a18\u306f\u3001home\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u30a2\u30af\u30bb\u30b9\u3057\u305f\u3068\u304d\u306b\u3001\u30ed\u30b0\u30a4\u30f3\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u308b\u8a18\u8ff0\u3067\u3059\u3002<\/p>\n<p>\u3042\u3068\u306f\u3001\u30eb\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u8a8d\u8a3c\u3092\u304b\u3051\u305f\u3044\u30da\u30fc\u30b8\u306b\u3001\u4ee5\u4e0b\u306e\u8a18\u8ff0\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u3067\u3001\u8a72\u5f53\u3059\u308b\u30da\u30fc\u30b8\u306b\u8a8d\u8a3c\u304c\u304b\u304b\u308a\u307e\u3059\u3002<\/p>\n<p>Route::get(&#8216;\/admin&#8217;, &#8216;AdminEntryController@top&#8217;)<strong>->middleware(&#8216;auth&#8217;)<\/strong>;<\/p>\n<h2>\u57fa\u672c\u8a8d\u8a3c<\/h2>\n<p>\u30ed\u30b0\u30a4\u30f3\u753b\u9762\u3092\u901a\u3057\u305f\u8a8d\u8a3c\u3067\u306a\u304f\u3001\u57fa\u672c\u8a8d\u8a3c\u3092\u3057\u305f\u3044\u5834\u5408\u3082\u7c21\u5358\u306b\u5b9f\u88c5\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>auth.basic\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>Route::get(&#8216;\/admin&#8217;, &#8216;AdminEntryController@top&#8217;)<strong>->middleware(&#8216;auth.basic&#8217;)<\/strong>;<\/p>\n<p>\u57fa\u672c\u8a8d\u8a3c\u3092\u4f7f\u7528\u3057\u305f\u5834\u5408\u306b\u6c42\u3081\u3089\u308c\u308bID\/PW\u306f\u3001laravel\u3067\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u5f8c\u306bmigrate\u3067\u4f5c\u6210\u3055\u308c\u308b\u3001user\u30c6\u30fc\u30d6\u30eb\u306b\u767b\u9332\u3055\u308c\u3066\u3044\u308b\u30e6\u30fc\u30b6email\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u3068\u540c\u3058\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Laravel\u3067\u8a8d\u8a3c\u6a5f\u80fd\u3092\u4f7f\u3046\u65b9\u6cd5\u306b\u3064\u3044\u3066\u306e\u89e3\u8aac\u3067\u3059\u3002 Laravel\u306b\u306f\u8a8d\u8a3c\u306b\u5fc5\u8981\u306a\u6a5f\u80fd\u304c\u6700\u521d\u304b\u3089\u6e96\u5099\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u5fc5\u8981\u3067\u3042\u308c\u3070\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u3061\u306a\u307f\u306b\u3001\u666e\u901a\u306b\u30d9\u30fc\u30b7\u30c3\u30af\u8a8d\u8a3c\u3092\u884c\u3046\u306e\u3067\u3042\u308c\u3070\u3001.htacce [&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-9883","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\/9883","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=9883"}],"version-history":[{"count":1,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts\/9883\/revisions"}],"predecessor-version":[{"id":9886,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts\/9883\/revisions\/9886"}],"wp:attachment":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9883"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9883"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9883"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}