{"id":7862,"date":"2020-09-15T23:55:10","date_gmt":"2020-09-15T14:55:10","guid":{"rendered":"https:\/\/blog.capilano-fw.com\/?p=7862"},"modified":"2020-09-15T23:55:54","modified_gmt":"2020-09-15T14:55:54","slug":"laravel-jetstream%e3%81%a7%e3%82%bd%e3%83%bc%e3%82%b7%e3%83%a3%e3%83%ab%e3%83%ad%e3%82%b0%e3%82%a4%e3%83%b3%e3%82%92%e5%ae%9f%e8%a3%85%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/blog.capilano-fw.com\/?p=7862","title":{"rendered":"Laravel Jetstream\u3067\u30bd\u30fc\u30b7\u30e3\u30eb\u30ed\u30b0\u30a4\u30f3\u3092\u5b9f\u88c5\u3059\u308b"},"content":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u3053\u306e\u9593\u65b0\u3057\u304f\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u305f<code>Laravel Jetstream<\/code>\u3092\u4f7f\u3063\u3066\u300c<a href=\"https:\/\/blog.capilano-fw.com\/?p=7827\">Laravel8.x\u4ee5\u964d\u3067\u30ed\u30b0\u30a4\u30f3\u6a5f\u80fd\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5<\/a>\u300d\u3068\u3044\u3046\u8a18\u4e8b\u3092\u516c\u958b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p><code>Jetstream<\/code>\u306f\u3001\u30ed\u30b0\u30a4\u30f3\u307e\u308f\u308a\u306b\u5fc5\u8981\u306a\u3082\u306e\u3092\u307b\u307c\u5168\u3066\u7528\u610f\u3057\u3066\u304f\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u30c7\u30b6\u30a4\u30f3\u3055\u3048\u5909\u66f4\u3059\u308c\u3070\u305d\u306e\u307e\u307e\u30e6\u30fc\u30b6\u30fc\u60c5\u5831\u306e\u8a2d\u5b9a\u30da\u30fc\u30b8\u3068\u3057\u3066\u306f\u7533\u3057\u5206\u306a\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u305d\u3093\u306a<code>Jetstream<\/code>\u306b\u3082\u3064\u3044\u3066\u3044\u306a\u3044\u6a5f\u80fd\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u304c\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<p><strong style=\"font-size: 35px;\">\u30bd\u30fc\u30b7\u30e3\u30eb\u30ed\u30b0\u30a4\u30f3\u6a5f\u80fd<\/strong><\/p>\n<p>\u3067\u3059\u3002<\/p>\n<p>\u300c<strong>\u30bd\u30fc\u30b7\u30e3\u30eb\u30ed\u30b0\u30a4\u30f3<\/strong>\u300d\u3068\u3044\u3046\u306e\u306f\u3001\u4f8b\u3048\u3070<code>Google<\/code>\u3084<code>Yahoo<\/code>\u3001<code>LINE<\/code>\u306a\u3069\u306e\u767b\u9332\u6e08\u307f\u30c7\u30fc\u30bf\u3092\u4f7f\u3063\u3066\u7c21\u5358\u306b\u30ed\u30b0\u30a4\u30f3\u3084\u30e6\u30fc\u30b6\u30fc\u767b\u9332\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u6a5f\u80fd\u306e\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u30e1\u30ea\u30c3\u30c8\u3068\u3057\u3066\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u300c<strong>\u3084\u30fc\u3081\u305f\uff01<\/strong>\u300d\u3092\u6e1b\u3089\u3059\u3053\u3068\u304c\u3067\u304d\u308b\u3068\u3044\u3046\u306e\u304c\u5927\u304d\u3044\u3093\u3058\u3083\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<ul>\n<li>\u300c\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\uff06\u30d1\u30b9\u30ef\u30fc\u30c9\u3067\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u306e\u3081\u3093\u3069\u3046\u3060\u304b\u3089\u3001\u3084\u30fc\u3081\u305f\uff01\u300d<\/li>\n<li>\u300c\u767b\u9332\u3057\u3088\u3046\u3068\u601d\u3063\u305f\u3051\u3069\u5165\u529b\u3084\u3084\u3063\u3053\u3057\u3044\u306a\u3001\u3084\u30fc\u3081\u305f\uff01\u300d<\/li>\n<\/ul>\n<p>\u3064\u307e\u308a\u3001\u3059\u3067\u306b<code>Google<\/code>\u306a\u3069\u306b\u30ed\u30b0\u30a4\u30f3\u6e08\u307f\u306a\u3089\u30af\u30ea\u30c3\u30af\u3060\u3051\u3067\u30e6\u30fc\u30b6\u30fc\u767b\u9332\u3092\u5b8c\u4e86\u3067\u304d\u308b\u3068\u3044\u3046\u308f\u3051\u3067\u3059\u306d\u3002<\/p>\n<p>\u305d\u3053\u3067\u2757<\/p>\n<p>\u4eca\u56de\u306f<code>Laravel Jetstream<\/code>\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305f<code>Laravel 8.x<\/code>\u306b\u30bd\u30fc\u30b7\u30e3\u30eb\u30ed\u30b0\u30a4\u30f3\u3092\u5b9f\u88c5\u3057\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u305c\u3072\u7686\u3055\u3093\u306e\u304a\u5f79\u306b\u7acb\u3066\u307e\u3057\u305f\u3089\u5b09\u3057\u3044\u3067\u3059\u3002\ud83d\ude0a\u2728<br \/>\n\uff08\u6700\u5f8c\u306b\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u4e00\u5f0f\u304c\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u304d\u307e\u3059\u3088\ud83d\udc4d\uff09<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6070 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/03\/no_5.png\" alt=\"\" width=\"260\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/03\/no_5.png 260w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/03\/no_5-244x300.png 244w\" sizes=\"auto, (max-width: 260px) 100vw, 260px\" \/>\u300c\uff08\u8a18\u4e8b\u3092\u66f8\u3044\u305f\u6642\u70b9\u3067\uff09\u30ea\u30ea\u30fc\u30b9\uff11\u9031\u9593\u3067\u3059\u304c\u3001<br \/>\n\u3059\u3067\u306bLaravel\u304c<code>8.2<\/code>\u306b\u306a\u3063\u3066\u307e\u3057\u305f\ud83d\ude32\u300d<\/p>\n<p><strong>\u958b\u767a\u74b0\u5883\uff1a<\/strong> Laravel 8.x\u3001Laravel Socialite 5<\/p>\n<h1>\u3084\u308a\u305f\u3044\u3053\u3068<\/h1>\n<p>\u6700\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u306e<code>Laravel 8.1.0<\/code> + <code>Laravel Socialite 5.0.0<\/code>\uff082020.9.12\u73fe\u5728\uff09\u3067LINE\u306e\u30bd\u30fc\u30b7\u30e3\u30eb\u30ed\u30b0\u30a4\u30f3\u3092\u5b9f\u88c5\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7898\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/09\/line_icon_80x80.png\" alt=\"\" width=\"80\" height=\"80\" \/><\/p>\n<p>\u3061\u306a\u307f\u306b\u3001<code>LINE<\/code>\u306e\u30bd\u30fc\u30b7\u30e3\u30eb\u30ed\u30b0\u30a4\u30f3\u306f\u3001<a href=\"https:\/\/socialplus.jp\/report\/2020\" target=\"_blank\" rel=\"noopener noreferrer\">social plus\u3055\u3093\u306e\u8abf\u67fb<\/a>\u306b\u3088\u308b\u3068\u4e00\u756a\u4eba\u6c17\u3060\u305d\u3046\u3067\u3059\u3002\u305d\u3057\u3066\u3001<code>Yahoo Japan<\/code>\u3001<code>Facebook<\/code>\u3068\u7d9a\u304f\u3088\u3046\u3067\u3059\u306d\u3002<\/p>\n<h1>\u524d\u63d0\u3068\u3057\u3066<\/h1>\n<p>Laravel 8.x\u304b\u3089\u30ed\u30b0\u30a4\u30f3\u307e\u308f\u308a\u306e\u7ba1\u7406\u3092\u3059\u308b\u3053\u3068\u306b\u306a\u3063\u305f\u30d1\u30c3\u30b1\u30fc\u30b8<code>Laravel Jetstream<\/code>\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u524d\u63d0\u3067\u3059\u3002<\/p>\n<p>\u3082\u3057\u307e\u3060\u306e\u65b9\u306f\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u3092\u53c2\u8003\u306b\u3057\u3066\u6e08\u307e\u305b\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\ud83d\udcdd\u00a0<a href=\"https:\/\/blog.capilano-fw.com\/?p=7827\">Laravel8.x\u4ee5\u964d\u3067\u30ed\u30b0\u30a4\u30f3\u6a5f\u80fd\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5<\/a><\/p>\n<h1>LINE\u304b\u3089\u30bd\u30fc\u30b7\u30e3\u30eb\u30ed\u30b0\u30a4\u30f3\u306b\u5fc5\u8981\u306a\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b<\/h1>\n<h2>\u30a2\u30af\u30bb\u30b9\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b<\/h2>\n<p>\u3067\u306f\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u5165\u308b\u524d\u306b\u30bd\u30fc\u30b7\u30e3\u30eb\u30ed\u30b0\u30a4\u30f3\u306b\u5fc5\u8981\u3068\u306a\u308b\u60c5\u5831\u3092\u53d6\u5f97\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u307e\u305a\u3001<a href=\"https:\/\/developers.line.biz\/ja\/\" target=\"_blank\" rel=\"noopener noreferrer\">LINE Developers<\/a>\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u307e\u3059\u3002<\/p>\n<p>\u30ed\u30b0\u30a4\u30f3\u3092\u3059\u308b\u3068\u3001\u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u306e\u30ea\u30b9\u30c8\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u306e\u3067\uff08\u307e\u3060\u767b\u9332\u3057\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u5148\u306b\u767b\u9332\u3057\u3066\u304b\u3089\uff09\u597d\u304d\u306a\u3082\u306e\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7864\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/09\/laravel_jetstream_socialite_1.png\" alt=\"\" width=\"495\" height=\"298\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/09\/laravel_jetstream_socialite_1.png 495w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/09\/laravel_jetstream_socialite_1-300x181.png 300w\" sizes=\"auto, (max-width: 495px) 100vw, 495px\" \/><\/p>\n<p>\u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u3092\u9078\u629e\u3059\u308b\u3068\u3001\u30c1\u30e3\u30cd\u30eb\u306e\u753b\u9762\u306b\u306a\u308a\u307e\u3059\u306e\u3067\u300c<strong>\u65b0\u898f\u30c1\u30e3\u30cd\u30eb\u4f5c\u6210<\/strong>\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7865\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/09\/laravel_jetstream_socialite_2.png\" alt=\"\" width=\"350\" height=\"369\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/09\/laravel_jetstream_socialite_2.png 350w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/09\/laravel_jetstream_socialite_2-285x300.png 285w\" sizes=\"auto, (max-width: 350px) 100vw, 350px\" \/><\/p>\n<p>\u3059\u308b\u3068\u3001\u30c1\u30e3\u30cd\u30eb\u306e\u7a2e\u985e\u3092\u805e\u304b\u308c\u307e\u3059\u306e\u3067\u3001\u300c<strong>LINE\u30ed\u30b0\u30a4\u30f3<\/strong>\u300d\u3092\u30af\u30ea\u30c3\u30af\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7868\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/09\/laravel_jetstream_socialite_3.png\" alt=\"\" width=\"640\" height=\"207\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/09\/laravel_jetstream_socialite_3.png 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/09\/laravel_jetstream_socialite_3-300x97.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>\u3059\u308b\u3068\u3001\u30c1\u30e3\u30cd\u30eb\u767b\u9332\u30d5\u30a9\u30fc\u30e0\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u306e\u3067\u4ee5\u4e0b\u306e\u5185\u5bb9\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002\uff08\u5fc5\u9808\u5165\u529b\u306e\u3082\u306e\u3060\u3051\u306b\u306a\u308a\u307e\u3059\u304c\u3001\u30a2\u30a4\u30b3\u30f3\u753b\u50cf\u306a\u3069\u3082\u767b\u9332\u3067\u304d\u307e\u3059\uff09<\/p>\n<ul>\n<li>\u30c1\u30e3\u30cd\u30eb\u540d\uff1a \u300cLaravel 8\uff1a\u30bd\u30fc\u30b7\u30e3\u30eb\u30ed\u30b0\u30a4\u30f3\u300d\u306a\u3069<\/li>\n<li>\u30c1\u30e3\u30cd\u30eb\u8aac\u660e\uff1a \u300cLaravel Jetstream\u3092\u4f7f\u3063\u305f\u30bd\u30fc\u30b7\u30e3\u30eb\u30fb\u30ed\u30b0\u30a4\u30f3\u306e\u5b9f\u88c5\u300d\u306a\u3069<\/li>\n<li>\u30a2\u30d7\u30ea\u30bf\u30a4\u30d7\uff1a \u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044<\/li>\n<li>\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\uff1a \u4f55\u304b\u9023\u7d61\u304c\u3042\u308b\u3068\u304d\u306b\u53d7\u3051\u53d6\u308b\u305f\u3081\u306e\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9<\/li>\n<li>LINE Developers Agreement\u3078\u306e\u540c\u610f\uff08\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\uff09<\/li>\n<\/ul>\n<p>\u5165\u529b\u304c\u5b8c\u4e86\u3057\u305f\u3089\u300c<strong>\u4f5c\u6210<\/strong>\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7867\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/09\/laravel_jetstream_socialite_4.png\" alt=\"\" width=\"90\" height=\"67\" \/><\/p>\n<p>\u4f5c\u6210\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u30c1\u30e3\u30cd\u30eb\u306e\u57fa\u672c\u60c5\u5831\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u306e\u3067\u3001\u305d\u308c\u305e\u308c\u300c<strong>LINE_CLIENT_ID<\/strong>\u300d\u3068\u300c<strong>LINE_CLIENT_SECRET<\/strong>\u300d\u3092\u53d6\u5f97\u3057\u3001<code>.env<\/code>\u3078\u66f8\u304d\u8fbc\u3093\u3067\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u66f8\u304b\u308c\u3066\u3044\u308b\u5834\u6240\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<p><strong>\uff08LINE_CLIENT_ID\uff09<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7873\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/09\/laravel_jetstream_socialite_6.png\" alt=\"\" width=\"497\" height=\"107\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/09\/laravel_jetstream_socialite_6.png 497w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/09\/laravel_jetstream_socialite_6-300x65.png 300w\" sizes=\"auto, (max-width: 497px) 100vw, 497px\" \/><\/p>\n<p><strong>\uff08LINE_CLIENT_SECRET\uff09<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7872\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/09\/laravel_jetstream_socialite_7.png\" alt=\"\" width=\"559\" height=\"132\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/09\/laravel_jetstream_socialite_7.png 559w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/09\/laravel_jetstream_socialite_7-300x71.png 300w\" sizes=\"auto, (max-width: 559px) 100vw, 559px\" \/><\/p>\n<p>\u3053\u308c\u3089\u306e\u60c5\u5831\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b<code>.env<\/code>\u3078\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<pre><strong>LINE_CLIENT_ID=********************<\/strong>\r\n<strong>LINE_CLIENT_SECRET=**********************************<\/strong><\/pre>\n<h2>\u30b3\u30fc\u30eb\u30d0\u30c3\u30afURL\u3092\u8a2d\u5b9a\u3059\u308b<\/h2>\n<p>\u6b21\u306b\u3001<code>LINE<\/code>\u306e\u30bd\u30fc\u30b7\u30e3\u30eb\u30ed\u30b0\u30a4\u30f3\u30fb\u30da\u30fc\u30b8\u304b\u3089\u5e30\u3063\u3066\u304f\u308b<code>URL<\/code>\u3092\u8a2d\u5b9a\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u4eca\u56de\u306f\u3001\u30c6\u30b9\u30c8\u74b0\u5883\u3067\u3059\u306e\u3067\u300c<strong>http:\/\/l8x.test\/login\/line\/callback<\/strong>\u300d\u3068\u3057\u3066\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7871\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/09\/laravel_jetstream_socialite_5.png\" alt=\"\" width=\"480\" height=\"197\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/09\/laravel_jetstream_socialite_5.png 480w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/09\/laravel_jetstream_socialite_5-300x123.png 300w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/p>\n<p>\u305d\u3057\u3066\u3001\u3053\u306e\u30b3\u30fc\u30eb\u30d0\u30c3\u30afURL\u3082\u5148\u307b\u3069\u3068\u540c\u69d8\u3001<code>.env<\/code>\u3078\u8ffd\u52a0\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre>LINE_CLIENT_ID=********************\r\nLINE_CLIENT_SECRET=**********************************\r\n<strong>LINE_REDIRECT_URI=http:\/\/l8x.test\/login\/line\/callback<\/strong><\/pre>\n<p>\u3055\u3089\u306b\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u3053\u308c\u3089\u306e\u60c5\u5831\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u3001\u30b3\u30f3\u30d5\u30a3\u30b0\u30d5\u30a1\u30a4\u30eb\u306e\u4e2d\u306b\u3082\u540c\u3058\u304f\u8a2d\u5b9a\u3092\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p><strong>config\/services.php<\/strong><\/p>\n<pre>&lt;?php\r\n\r\nreturn [\r\n\r\n    \/\/ \u7701\u7565\r\n\r\n<strong>    'line' =&gt; [<\/strong>\r\n<strong>        'client_id' =&gt; env('LINE_CLIENT_ID'),<\/strong>\r\n<strong>        'client_secret' =&gt; env('LINE_CLIENT_SECRET'),<\/strong>\r\n<strong>        'redirect' =&gt; env('LINE_REDIRECT_URI')<\/strong>\r\n<strong>    ]<\/strong>\r\n\r\n];<\/pre>\n<h2 id=\"email_address_permission\">\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u53d6\u5f97\u6a29\u9650<\/h2>\n<p>\u5b9f\u306f<code>LINE<\/code>\u306e\u30bd\u30fc\u30b7\u30e3\u30eb\u30fb\u30ed\u30b0\u30a4\u30f3\u306f<strong>\u521d\u671f\u72b6\u614b\u3067\u306f\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u304c\u53d6\u5f97\u3067\u304d\u307e\u305b\u3093\u3002<\/strong>\uff08\u304a\u305d\u3089\u304f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u4e0a\u306e\u914d\u616e\u304b\u3068\u601d\u3044\u307e\u3059\uff09<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u53d6\u5f97\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u306b\u3001\u7533\u8acb\u3092\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u5834\u6240\u306f\u3001<code>LINE_CLIENT_ID<\/code>\u306a\u3069\u3092\u53d6\u5f97\u3057\u305f\u300c<strong>\u30c1\u30e3\u30cd\u30eb\u57fa\u672c\u8a2d\u5b9a<\/strong>\u300d\u30da\u30fc\u30b8\u306e\u4e0b\u90e8\u306e\u300c<strong>OpenID Connect<\/strong>\u300d\u3068\u3044\u3046\u9805\u76ee\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u521d\u671f\u72b6\u614b\u3067\u306f\u300c<strong>\u672a\u7533\u8acb<\/strong>\u300d\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u300c<strong>\u7533\u8acb<\/strong>\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7874\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/09\/laravel_jetstream_socialite_8.png\" alt=\"\" width=\"331\" height=\"138\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/09\/laravel_jetstream_socialite_8.png 331w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/09\/laravel_jetstream_socialite_8-300x125.png 300w\" sizes=\"auto, (max-width: 331px) 100vw, 331px\" \/><\/p>\n<p>\u3059\u308b\u3068\u3001\u7533\u8acb\u30d5\u30a9\u30fc\u30e0\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001\u5404\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u306b\u30c1\u30a7\u30c3\u30af\u3092\u5165\u308c\u3001\u3061\u3087\u3063\u3068\u3081\u3093\u3069\u3046\u3067\u3059\u304c\u3001LINE\u306e\u8aac\u660e\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3042\u308b\u3088\u3046\u306b\u5fc5\u305a<strong>\u30b9\u30af\u30ea\u30fc\u30b7\u30e7\u30c3\u30c8\u3092\u3068\u3063\u3066\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u307e\u3057\u3087\u3046\u3002<\/strong><\/p>\n<blockquote><p><strong>\uff08LINE Developer\u3088\u308a\u5f15\u7528\uff09<\/strong><br \/>\n\u3042\u306a\u305f\u306e\u30a2\u30d7\u30ea\u3067\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u306e\u53d6\u5f97\/\u5229\u7528\u76ee\u7684\u306b\u3064\u3044\u3066\u3001\u30e6\u30fc\u30b6\u306b\u901a\u77e5\u3001\u660e\u793a\u3001\u304a\u3088\u3073\u540c\u610f\u3092\u53d6\u5f97\u3057\u3066\u3044\u308b\u90e8\u5206\u306e\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p><\/blockquote>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7875\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/09\/laravel_jetstream_socialite_9.png\" alt=\"\" width=\"433\" height=\"564\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/09\/laravel_jetstream_socialite_9.png 433w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/09\/laravel_jetstream_socialite_9-230x300.png 230w\" sizes=\"auto, (max-width: 433px) 100vw, 433px\" \/><\/p>\n<p>\u3061\u306a\u307f\u306b\u79c1\u306e\u5834\u5408\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b9\u30af\u30ea\u30fc\u30b7\u30e7\u30c3\u30c8\u3092\u4f7f\u3044\u307e\u3057\u305f\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7877\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/09\/laravel_jetstream_socialite_10.png\" alt=\"\" width=\"476\" height=\"510\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/09\/laravel_jetstream_socialite_10.png 476w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/09\/laravel_jetstream_socialite_10-280x300.png 280w\" sizes=\"auto, (max-width: 476px) 100vw, 476px\" \/><\/p>\n<p>\u203b\u3053\u306e\u90e8\u5206\u306f\u5f8c\u307b\u3069\u30d3\u30e5\u30fc\u3092\u5909\u66f4\u3059\u308b\u90e8\u5206\u3067\u30b3\u30fc\u30c9\u3082\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<h1>\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/h1>\n<h2>Socialite\u672c\u4f53\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>\u307e\u305a\u306f<code>Socialite<\/code>\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u672c\u4f53\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><strong>composer require laravel\/socialite<\/strong><\/pre>\n<h2>LINE\u7528\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>\u7d9a\u3044\u3066\u3001<code>LINE<\/code>\u3067\u306e\u30bd\u30fc\u30b7\u30e3\u30eb\u30ed\u30b0\u30a4\u30f3\u3092\u5b9f\u88c5\u3059\u308b\u305f\u3081\u306b\u4ee5\u4e0b\u306e\u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u30fb\u30d1\u30c3\u30b1\u30fc\u30b8\u3082\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><strong>composer require socialiteproviders\/line<\/strong><\/pre>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001<code>Laravel<\/code>\u5074\u306b<code>LINE<\/code>\u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3092\u3057\u307e\u3059\u3002<\/p>\n<p><strong>app\/Providers\/EventServiceProvider.php<\/strong><\/p>\n<pre>\/\/ \u7701\u7565\r\n\r\nprotected $listen = [\r\n    Registered::class =&gt; [\r\n        SendEmailVerificationNotification::class,\r\n    ],\r\n    \/\/ \ud83d\udc47 \u3053\u3053\u306b\u8ffd\u52a0\r\n    <strong>\\SocialiteProviders\\Manager\\SocialiteWasCalled::class =&gt; [<\/strong>\r\n<strong>        'SocialiteProviders\\\\Line\\\\LineExtendSocialite@handle',<\/strong>\r\n<strong>    ],<\/strong>\r\n];\r\n\r\n\/\/ \u7701\u7565<\/pre>\n<p>\u3064\u307e\u308a\u3001\u4eca\u56de\u306f<code>LINE<\/code>\u3060\u3051\u3067\u3059\u306e\u3067\u3001\u3072\u3068\u3064\u3060\u3051\u3067\u3059\u304c\u3001\u4eca\u5f8c<code>Facebook<\/code>\u3084<code>GitHub<\/code>\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u5834\u5408\u306f\u3001\u540c\u3058\u3088\u3046\u306b\u3057\u3066\u8ffd\u52a0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h1>\u30eb\u30fc\u30c8\u3092\u3064\u304f\u308b<\/h1>\n<p>\u3067\u306f\u3001\u4eca\u5f8c\u5225\u306e\u30bd\u30fc\u30b7\u30e3\u30eb\u30fb\u30ed\u30b0\u30a4\u30f3\u304c\u8ffd\u52a0\u306b\u306a\u308b\u3053\u3068\u3082\u60f3\u5b9a\u3057\u3066\u53ef\u5909\u306e\u30eb\u30fc\u30c8\u3092\u3064\u304f\u3063\u3066\u304a\u304f\u3053\u3068\u306b\u3057\u307e\u3059\u3002<\/p>\n<p><strong>routes\/web.php<\/strong><\/p>\n<pre>\/\/ \u30bd\u30fc\u30b7\u30e3\u30eb\u30fb\u30ed\u30b0\u30a4\u30f3\r\n<strong>Route::prefix('login\/{provider}')-&gt;where(['provider' =&gt; '(line|github)'])-&gt;group(function(){<\/strong>\r\n\r\n<strong>    Route::get('\/', 'App\\Http\\Controllers\\Auth\\LoginController@redirectToProvider')-&gt;name('social_login.redirect');<\/strong>\r\n<strong>    Route::get('\/callback', 'App\\Http\\Controllers\\Auth\\LoginController@handleProviderCallback')-&gt;name('social_login.callback');<\/strong>\r\n\r\n<strong>});<\/strong><\/pre>\n<p>\u3053\u3053\u3067\u91cd\u8981\u306a\u306e\u304c<code>where()<\/code>\u306e\u90e8\u5206\u3067\u3059\u3002<\/p>\n<p>\u3053\u3053\u3067\u306f\u3001<code>login\/{provider}<\/code>\u306b\u5165\u3063\u3066\u304f\u308b\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u6b63\u898f\u8868\u73fe\u3092\u4f7f\u3063\u3066\u5236\u9650\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3064\u307e\u308a\u3001\u4e0a\u306e\u4f8b\u3067\u6709\u52b9\u306b\u306a\u308bURL\u306f\u4ee5\u4e0b\u306e\uff14\u3064\u3067\u3059\u3002<\/p>\n<ul>\n<li>\/login\/line<\/li>\n<li>\/login\/line\/callback<\/li>\n<li>\/login\/github<\/li>\n<li>\/login\/github\/callback<\/li>\n<\/ul>\n<p>\u203b \u4f8b\u3067\u308f\u304b\u308a\u3084\u3059\u3044\u3088\u3046\u306b<code>github<\/code>\u3082\u8ffd\u52a0\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u5b9f\u969b\u306b\u306f\u4eca\u56de\u306f\u4e0d\u8981\u3067\u3059\u3002<\/p>\n<h1>\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3092\u3064\u304f\u308b<\/h1>\n<p>\u5b9f\u306f\u3001\u3053\u308c\u307e\u3067\u306e<code>Laravel<\/code>\u3067\u306f\u30ed\u30b0\u30a4\u30f3\u6a5f\u80fd\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u300c<strong>app\/Http\/Controllers\/Auth\/LoginController.php<\/strong>\u300d\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u304c\u5b58\u5728\u3057\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001<code>Laravel 8.x<\/code>\u304b\u3089\u306f<code>Jetstream<\/code>\u3092\u4f7f\u3046\u3088\u3046\u306b\u306a\u308a\u3001\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u4e0d\u8981\u306b\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u4f5c\u6210\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre><strong>php artisan make:controller Auth\\\\LoginController<\/strong><\/pre>\n<p>\u5b9f\u884c\u3059\u308b\u3068\u3001\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u306e\u3067\u4e2d\u8eab\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<p><strong>app\/Http\/Controllers\/Auth\/LoginController.php<\/strong><\/p>\n<pre>&lt;?php\r\n\r\nnamespace App\\Http\\Controllers\\Auth;\r\n\r\nuse App\\Http\\Controllers\\Controller;\r\nuse App\\Models\\User;\r\nuse Illuminate\\Http\\Request;\r\nuse Illuminate\\Support\\Facades\\Hash;\r\nuse Illuminate\\Support\\Str;\r\nuse Laravel\\Socialite\\Facades\\Socialite;\r\n\r\nclass LoginController extends Controller\r\n{\r\n    <strong>public function redirectToProvider(Request $request) {<\/strong>\r\n\r\n<strong>        $provider = $request-&gt;provider;<\/strong>\r\n<strong>        return Socialite::driver($provider)-&gt;redirect();<\/strong>\r\n\r\n<strong>    }<\/strong>\r\n\r\n    <strong>public function handleProviderCallback(Request $request) {<\/strong>\r\n\r\n<strong>        $provider = $request-&gt;provider;<\/strong>\r\n<strong>        $social_user = Socialite::driver($provider)-&gt;user();<\/strong>\r\n<strong>        $social_email = $social_user-&gt;getEmail();<\/strong>\r\n<strong>        $social_name = $social_user-&gt;getName();<\/strong>\r\n\r\n<strong>        if(!is_null($social_email)) {<\/strong>\r\n\r\n<strong>            $user = User::firstOrCreate([<\/strong>\r\n<strong>                'email' =&gt; $social_email<\/strong>\r\n<strong>            ], [<\/strong>\r\n<strong>                'email' =&gt; $social_email,<\/strong>\r\n<strong>                'name' =&gt; $social_name,<\/strong>\r\n<strong>                'password' =&gt; Hash::make(Str::random())<\/strong>\r\n<strong>            ]);<\/strong>\r\n\r\n<strong>            auth()-&gt;login($user);<\/strong>\r\n<strong>            return redirect('\/dashboard');<\/strong>\r\n\r\n<strong>        }<\/strong>\r\n\r\n<strong>        return '\u5fc5\u8981\u306a\u60c5\u5831\u304c\u53d6\u5f97\u3067\u304d\u3066\u3044\u307e\u305b\u3093\u3002';<\/strong>\r\n\r\n<strong>    }<\/strong>\r\n}<\/pre>\n<p>\u3053\u306e\u4e2d\u3067\u3084\u3063\u3066\u3044\u308b\u3053\u3068\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<p><strong>redirectToProvider()<\/strong><\/p>\n<p>\u30bd\u30fc\u30b7\u30e3\u30eb\u30ed\u30b0\u30a4\u30f3\u3092\u3059\u308b\u30da\u30fc\u30b8\uff08\u4eca\u56de\u306a\u3089LINE\u306e\u30da\u30fc\u30b8\uff09\u3078\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3059\u308b\u30e1\u30bd\u30c3\u30c9\u3067\u3059\u3002\u3053\u306e\u30e1\u30bd\u30c3\u30c9\u304c\u81ea\u52d5\u7684\u306b\u5fc5\u8981\u306a\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u3064\u3051\u3066\u304f\u308c\u307e\u3059\u3002<\/p>\n<p><strong>handleProviderCallback()<\/strong><\/p>\n<p>\u5404\u30bd\u30fc\u30b7\u30e3\u30eb\u30fb\u30ed\u30b0\u30a4\u30f3\u304b\u3089\u5e30\u3063\u3066\u304f\u308b\u30da\u30fc\u30b8\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u4e2d\u3067\u306f\u3001\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u4f7f\u3063\u3066\u3001\u4ee5\u4e0b\u306e\u5185\u5bb9\u3092\u5b9f\u884c\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u3059\u3067\u306b\u767b\u9332\u3055\u308c\u3066\u3044\u308c\u3070\u305d\u306e\u307e\u307e\u30ed\u30b0\u30a4\u30f3<\/li>\n<li>\u767b\u9332\u3055\u308c\u3066\u3044\u306a\u3051\u308c\u3070\u65b0\u898f\u30e6\u30fc\u30b6\u30fc\u767b\u9332\u3057\u3066\u30ed\u30b0\u30a4\u30f3<\/li>\n<\/ul>\n<p>\u306a\u304a\u3001\u4ee5\u4e0b\u306e\u90e8\u5206\u306f\u30eb\u30fc\u30c8\u3067\u8a2d\u5b9a\u3057\u305f\u300c\u53ef\u5909\u90e8\u5206\u300d\u3067\u3001\u3053\u306e\u4e2d\u306b\u4f8b\u3048\u3070\u3001\u300c<strong>line<\/strong>\u300d\u3084\u300c<strong>github<\/strong>\u300d\u3001\u300c<strong>facebook<\/strong>\u300d\u306a\u3069\u306e\u6587\u5b57\u5217\u304c\u5165\u3063\u3066\u304f\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre><strong>$provider = $request-&gt;provider;<\/strong><\/pre>\n<p>\u26a0<strong>\u3054\u6ce8\u610f\uff1a <\/strong>\u305f\u3060\u3057\u3001\u30c1\u30fc\u30e0\u6a5f\u80fd\u3092\u6709\u52b9\u306b\u3057\u3066\u3044\u308b\u5834\u5408\u3001\u6700\u4f4e\u3067\u3082\u3072\u3068\u3064\u306f\u30c1\u30fc\u30e0\u306b\u6240\u5c5e\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u306e\u3067\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u8a73\u3057\u304f\u306f\u3001\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\ud83d\udcdd <a href=\"https:\/\/blog.capilano-fw.com\/?p=7827#test_data\" target=\"_blank\" rel=\"noopener noreferrer\">\u65b0\u3057\u3044Factory\u3067\u30c6\u30b9\u30c8\u30e6\u30fc\u30b6\u30fc\u3092\u3064\u304f\u3063\u3066\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u307f\u308b<\/a><\/p>\n<h1>\u30d3\u30e5\u30fc\u306b\u30bd\u30fc\u30b7\u30e3\u30eb\u30fb\u30ed\u30b0\u30a4\u30f3\u3092\u8ffd\u52a0\u3059\u308b<\/h1>\n<p>\u7d9a\u3044\u3066\u3001\u30ed\u30b0\u30a4\u30f3\u30da\u30fc\u30b8\u306b\u30bd\u30fc\u30b7\u30e3\u30eb\u30ed\u30b0\u30a4\u30f3\u3078\u306e\u30ea\u30f3\u30af\u3092\u4f5c\u6210\u3057\u307e\u3057\u3087\u3046\u3002\uff08<code>LINE<\/code>\u306e\u5834\u5408\u306f\u3001\u3053\u306e\u5909\u66f4\u5f8c\u306b\u30b9\u30af\u30ea\u30fc\u30b7\u30e7\u30c3\u30c8\u3092\u3068\u3063\u3066\u7533\u8acb\u3092\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\uff09<\/p>\n<p>\u4ee5\u4e0b\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><strong>resources\/views\/auth\/login.blade.php<\/strong><\/p>\n<pre>&lt;!-- \u7701\u7565 --&gt;\r\n\r\n    &lt;!-- \ud83d\udc47 \u3053\u3053\u304c\u6700\u521d\u304b\u3089\u5b58\u5728\u3057\u3066\u3044\u308b\u30ed\u30b0\u30a4\u30f3\u30dc\u30bf\u30f3 --&gt;\r\n\r\n    &lt;x-jet-button class=\"ml-4\"&gt;\r\n        {{ __('Login') }}\r\n    &lt;\/x-jet-button&gt;\r\n&lt;\/div&gt;\r\n\r\n&lt;!-- \ud83d\udc47 \u3053\u306e\u30d6\u30ed\u30c3\u30af\u3092\u8ffd\u52a0 --&gt;\r\n&lt;hr class=\"my-3\"&gt;\r\n&lt;div class=\"mt-3\"&gt;\r\n    &lt;h3&gt;\u30bd\u30fc\u30b7\u30e3\u30eb\u30fb\u30ed\u30b0\u30a4\u30f3&lt;\/h3&gt;\r\n    &lt;div class=\"my-2\"&gt;\r\n        <strong>&lt;a href=\"{{ route('social_login.redirect', 'line') }}\"&gt;<\/strong>\r\n<strong>            &lt;img style=\"height:50px\" src=\"\/images\/LINE_APP.png\"&gt;<\/strong>\r\n<strong>        &lt;\/a&gt;<\/strong>\r\n    &lt;\/div&gt;\r\n    &lt;small&gt;\r\n        \u672c\u30a6\u30a7\u30d6\u30b5\u30fc\u30d3\u30b9\u3067\u306f\u3001LINE\u306b\u3088\u308b\u8a8d\u8a3c\u30da\u30fc\u30b8\u3067\u8a31\u53ef\u3092\u5f97\u305f\u5834\u5408\u306e\u307f\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002&lt;br&gt;\r\n        \u305d\u3057\u3066\u3001\u53d6\u5f97\u3055\u308c\u305f\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u306b\u3064\u304d\u307e\u3057\u3066\u306f\u672c\u30b5\u30fc\u30d3\u30b9\u306e\u30ed\u30b0\u30a4\u30f3\u4ee5\u5916\u306e\u76ee\u7684\u306b\u306f\u4e00\u5207\u4f7f\u7528\u3057\u307e\u305b\u3093\u3002\r\n    &lt;\/small&gt;\r\n&lt;\/div&gt;\r\n\r\n&lt;!-- \u7701\u7565 --&gt;<\/pre>\n<p>\u306a\u304a\u3001LINE\u306e\u30ed\u30b4\u306f\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u3067\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\ud83d\udcdd\u00a0<a href=\"https:\/\/line.me\/ja\/logo\" target=\"_blank\" rel=\"noopener noreferrer\">LINE\u306e\u30ed\u30b4\u30fb\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30da\u30fc\u30b8<\/a><\/p>\n<h1>\u30c6\u30b9\u30c8\u3057\u3066\u307f\u308b<\/h1>\n<p>\u3067\u306f\u3001\u5b9f\u969b\u306b\u30c6\u30b9\u30c8\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u2757<\/p>\n<p>\u307e\u305a\u73fe\u5728\u306e\u3068\u3053\u308d<code>users<\/code>\u30c6\u30fc\u30d6\u30eb\u306b\u306f\u4f55\u3082\u30c7\u30fc\u30bf\u304c\u5165\u3063\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7890\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/09\/laravel_jetstream_socialite_11.png\" alt=\"\" width=\"524\" height=\"252\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/09\/laravel_jetstream_socialite_11.png 524w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/09\/laravel_jetstream_socialite_11-300x144.png 300w\" sizes=\"auto, (max-width: 524px) 100vw, 524px\" \/><\/p>\n<p>\u3053\u306e\u72b6\u614b\u3067\u300c<strong>http:\/\/******\/login<\/strong>\u300d\u306b\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002<\/p>\n<p>\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30d5\u30a9\u30fc\u30e0\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067<code>LINE<\/code>\u30a2\u30a4\u30b3\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7877\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/09\/laravel_jetstream_socialite_10.png\" alt=\"\" width=\"476\" height=\"510\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/09\/laravel_jetstream_socialite_10.png 476w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/09\/laravel_jetstream_socialite_10-280x300.png 280w\" sizes=\"auto, (max-width: 476px) 100vw, 476px\" \/><\/p>\n<p><code>LINE<\/code>\u304c\u7528\u610f\u3057\u3066\u304f\u308c\u3066\u3044\u308b\u30bd\u30fc\u30b7\u30e3\u30eb\u30ed\u30b0\u30a4\u30f3\u30fb\u30da\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\uff06\u30d1\u30b9\u30ef\u30fc\u30c9\u3001\u3082\u3057\u304f\u306fLINE\u30a2\u30d7\u30ea\u3067QR\u30b3\u30fc\u30c9\u3092\u8aad\u307f\u53d6\u3063\u3066\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7894\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/09\/laravel_jetstream_socialite_12.png\" alt=\"\" width=\"449\" height=\"515\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/09\/laravel_jetstream_socialite_12.png 449w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/09\/laravel_jetstream_socialite_12-262x300.png 262w\" sizes=\"auto, (max-width: 449px) 100vw, 449px\" \/><\/p>\n<p>\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u3068\u3001\u81ea\u52d5\u7684\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3057\u3066\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7891\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/09\/laravel_jetstream_socialite_13.png\" alt=\"\" width=\"640\" height=\"327\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/09\/laravel_jetstream_socialite_13.png 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/09\/laravel_jetstream_socialite_13-300x153.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>\u306f\u3044\uff01<code>Laravel<\/code>\u306b\u623b\u3063\u3066\u304d\u307e\u3057\u305f\u3002<br \/>\n\u3046\u307e\u304f\u30ed\u30b0\u30a4\u30f3\u3082\u3067\u304d\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3067\u306f<code>users<\/code>\u30c6\u30fc\u30d6\u30eb\u3082\u78ba\u8a8d\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7896\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/09\/laravel_jetstream_socialite_14.png\" alt=\"\" width=\"543\" height=\"271\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/09\/laravel_jetstream_socialite_14.png 543w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/09\/laravel_jetstream_socialite_14-300x150.png 300w\" sizes=\"auto, (max-width: 543px) 100vw, 543px\" \/><\/p>\n<p>\u30bd\u30fc\u30b7\u30e3\u30eb\u30ed\u30b0\u30a4\u30f3\u306e\u30e6\u30fc\u30b6\u30fc\u3067\u65b0\u3057\u3044\u30c7\u30fc\u30bf\u304c\u8ffd\u52a0\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\n\u304a\u75b2\u308c\u69d8\u3067\u3057\u305f\ud83d\ude0a\u2728<\/p>\n<h1>\u3061\u306a\u307f\u306b<\/h1>\n<p>\u3061\u306a\u307f\u306b\u3001\u4eca\u56de\u306e\u30b3\u30fc\u30c9\u306f<strong>\u300c\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u5358\u4f4d\u300d\u3067\u306e\u5b9f\u88c5\u306b\u306a\u308a\u307e\u3059\u3002<\/strong>\u305d\u306e\u305f\u3081\u3001\u3082\u3057<code>LINE<\/code>\u3084<code>GitHub<\/code>\u306e\u65b9\u3067\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u5909\u66f4\u3055\u308c\u3066\u3057\u307e\u3063\u305f\u5834\u5408\u306f\u3001\u305d\u308c\u307e\u3067\u306e\u30e6\u30fc\u30b6\u30fc\u3067\u306f\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3057\u307e\u3059\u3002<\/p>\n<p>\u8a73\u3057\u304f\u306f\u3001\u904e\u53bb\u8a18\u4e8b\u300c<a href=\"https:\/\/blog.capilano-fw.com\/?p=43\">Laravel \/ Socialite \u3067\u6c17\u3092\u3064\u3051\u308b\u3079\u304d\u4e8b\u306e\u307e\u3068\u3081<\/a>\u300d\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002\uff08\u3082\u3057\u304f\u306f\u5c02\u7528\u306e<code>social_users<\/code>\u306a\u3069\u306e\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u3063\u3066\u8907\u6570\u30b5\u30a4\u30c8\u306b\u3082\u5bfe\u5fdc\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u306e\u3082\u30a2\u30ea\u304b\u3082\u3067\u3059\u306d\uff09<\/p>\n<h1>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b<\/h1>\n<p>\u4eca\u56de\u5b9f\u969b\u306b\u958b\u767a\u3057\u305f\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u4e00\u5f0f\u3092\u4ee5\u4e0b\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<a  data-e-Disable-Page-Transition=\"true\" class=\"download-link\" title=\"\" href=\"https:\/\/blog.capilano-fw.com?download=7904&amp;tmstv=1777534148\" rel=\"nofollow\" id=\"download-link-7904\" data-redirect=\"false\" >\n\tLaravel Jetstream\u3067\u30bd\u30fc\u30b7\u30e3\u30eb\u30ed\u30b0\u30a4\u30f3\u3092\u5b9f\u88c5\u3059\u308b<\/a>\n\n<p>\u203b \u305f\u3060\u3057\u3001<code>Jetstream<\/code>\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3084<code>.env<\/code>\u306a\u3069\u5404\u7a2eID\u306e\u30bb\u30c3\u30c8\u306f\u3054\u81ea\u8eab\u3067\u884c\u3063\u3066\u3044\u305f\u3060\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h1>\u304a\u308f\u308a\u306b<\/h1>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4eca\u56de\u306f<code>Larave 8.x<\/code>\u306b\u30bd\u30fc\u30b7\u30e3\u30eb\u30ed\u30b0\u30a4\u30f3\u6a5f\u80fd\u3092\u3064\u3051\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u57fa\u672c\u7684\u306a\u6d41\u308c\u306f\u3053\u308c\u307e\u3067\u306e<code>Laravel<\/code>\u3068\u540c\u3058\u3067\u3059\u304c\u3001<code>LoginController<\/code>\u304c\u5b58\u5728\u3057\u3066\u3044\u306a\u304b\u3063\u305f\u308a\u3059\u308b\u306e\u3067\u3001\u4e00\u898b\u300c\u304a\u3084\uff1f\uff1f\u300d\u3068\u601d\u3046\u90e8\u5206\u3082\u3042\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u3042\u3068\u306f\u3001\u9014\u4e2d\u3067\u3082\u66f8\u304d\u307e\u3057\u305f\u304cLINE\u306e\u30bd\u30fc\u30b7\u30e3\u30eb\u30ed\u30b0\u30a4\u30f3\u304c\u521d\u671f\u72b6\u614b\u3067\u306f\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u63d0\u4f9b\u3057\u3066\u304f\u308c\u306a\u3044\u3001\u3068\u3044\u3046\u306e\u3082\u843d\u3068\u3057\u7a74\u3068\u3044\u3048\u3070\u843d\u3068\u3057\u7a74\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\uff08\u305f\u3057\u304b\u30c4\u30a4\u30c3\u30bf\u30fc\u3082\u305d\u3046\u3067\u3057\u305f\u3088\u306d\uff1f\uff1f\uff09<\/p>\n<p>\u4eca\u56de\u306f\u3053\u3093\u306a\u3068\u3053\u308d\u3067\u7d42\u4e86\u3067\u3059\u3002<br \/>\n\u305c\u3072\u307f\u306a\u3055\u3093\u3082\u30c1\u30e3\u30ec\u30f3\u30b8\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u306d\u3002<\/p>\n<p>\u3067\u306f\u3067\u306f\u301c\u2757<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3467 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_9.png\" alt=\"\" width=\"216\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_9.png 216w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_9-203x300.png 203w\" sizes=\"auto, (max-width: 216px) 100vw, 216px\" \/>\u300c\u56db\u5b63\u304c\u300e\u4e8c\u5b63\u300f\u5316\u3057\u3066\u304d\u3066\u3001<br \/>\n\u3059\u3050\u4f53\u304c\u6c17\u6e29\u306b\u5bfe\u5fdc\u3067\u304d\u306a\u3044\u3067\u3059\ud83d\udca6\u300d<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u3053\u306e\u9593\u65b0\u3057\u304f\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u305fLaravel Jetstream\u3092\u4f7f\u3063\u3066\u300cLaravel8.x\u4ee5\u964d\u3067\u30ed\u30b0\u30a4\u30f3\u6a5f\u80fd\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u300d\u3068\u3044\u3046\u8a18\u4e8b\u3092\u516c\u958b\u3057 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.capilano-fw.com\/?p=7862\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;Laravel Jetstream\u3067\u30bd\u30fc\u30b7\u30e3\u30eb\u30ed\u30b0\u30a4\u30f3\u3092\u5b9f\u88c5\u3059\u308b&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":7908,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,97],"tags":[7],"class_list":["post-7862","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-laravel","category-97","tag-7"],"_links":{"self":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/7862","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7862"}],"version-history":[{"count":16,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/7862\/revisions"}],"predecessor-version":[{"id":7907,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/7862\/revisions\/7907"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/media\/7908"}],"wp:attachment":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7862"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7862"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7862"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}