{"id":44069,"date":"2023-09-16T22:42:34","date_gmt":"2023-09-16T13:42:34","guid":{"rendered":"https:\/\/kinsta.com\/jp\/?p=44069&#038;preview=true&#038;preview_id=44069"},"modified":"2025-09-02T00:52:12","modified_gmt":"2025-09-01T15:52:12","slug":"laravel-authentication","status":"publish","type":"post","link":"https:\/\/kinsta.com\/jp\/blog\/laravel-authentication\/","title":{"rendered":"Laravel\u306e\u8a8d\u8a3c\u6a5f\u80fd\u3092\u5fb9\u5e95\u89e3\u8aac"},"content":{"rendered":"<p>Laravel\u306e\u8a8d\u8a3c\u306f\u3001\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u304a\u3044\u3066\u6700\u3082\u91cd\u8981\u3067\u4e0d\u53ef\u6b20\u306a\u6a5f\u80fd\u306e1\u3064\u3067\u3059\u3002Laravel\u3092\u306f\u3058\u3081\u3068\u3059\u308b\u30a6\u30a7\u30d6\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306b\u306f\u3001\u3055\u307e\u3056\u307e\u306a\u30e6\u30fc\u30b6\u30fc\u8a8d\u8a3c\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>Laravel\u306e\u8a8d\u8a3c\u6a5f\u80fd\u306f\u3001\u7d20\u65e9\u304f\u3001\u5b89\u5168\u306a\u65b9\u6cd5\u3067\u5b9f\u88c5\u53ef\u80fd\u3067\u3059\u3002\u3057\u304b\u3057\u3001\u9069\u5207\u306b\u5b9f\u88c5\u3057\u306a\u3051\u308c\u3070\u3001\u60aa\u610f\u3042\u308b\u7b2c\u4e09\u8005\u306b\u60aa\u7528\u3055\u308c\u308b\u5371\u967a\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Laravel\u306e\u8a8d\u8a3c\u6a5f\u80fd\u3092\u4f7f\u7528\u3059\u308b\u969b\u306b\u3001\u77e5\u3063\u3066\u304a\u304f\u3079\u304d\u3053\u3068\u3092\u3059\u3079\u3066\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<div><\/div><kinsta-auto-toc heading=\"Table of Contents\" exclude=\"last\" list-style=\"arrow\" selector=\"h2\" count-number=\"-1\"><\/kinsta-auto-toc>\n<h2>Laravel\u306e\u8a8d\u8a3c\u5165\u9580<\/h2>\n<p><a href=\"https:\/\/kinsta.com\/blog\/what-is-laravel\/\">Laravel<\/a>\u306b\u306f\u3001\u300c\u30ac\u30fc\u30c9\u300d\u3068\u300c<a href=\"https:\/\/laravel.com\/docs\/9.x\/providers\">\u30d7\u30ed\u30d0\u30a4\u30c0<\/a>\u300d\u304b\u3089\u69cb\u6210\u3055\u308c\u308b\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u3042\u308a\u307e\u3059\u3002\u30ac\u30fc\u30c9\u306f\u5404\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u30e6\u30fc\u30b6\u30fc\u8a8d\u8a3c\u3092\u5b9a\u7fa9\u3057\u3001\u30d7\u30ed\u30d0\u30a4\u30c0\u306f<a href=\"https:\/\/kinsta.com\/jp\/blog\/persistent-storage\/\">\u6c38\u7d9a\u30b9\u30c8\u30ec\u30fc\u30b8<\/a>\uff08<a href=\"https:\/\/kinsta.com\/jp\/blog\/what-is-mysql\/\">MySQL<\/a>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306a\u3069\uff09\u304b\u3089\u306e\u30e6\u30fc\u30b6\u30fc\u306e\u53d6\u5f97\u65b9\u6cd5\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002<\/p>\n<p>\u8a8d\u8a3c\u30d1\u30e9\u30e1\u30fc\u30bf\u306f\u3001<code>config\/auth.php<\/code>\u30d5\u30a1\u30a4\u30eb\u3067\u5b9a\u7fa9\u3057\u307e\u3059\u3002\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u5185\u3067Laravel\u306e\u8a8d\u8a3c\u306e\u632f\u308b\u821e\u3044\u3092\u8abf\u6574\u3001\u5909\u66f4\u3059\u308b\u8907\u6570\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u8a8d\u8a3c\u3092\u5b9a\u7fa9\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u304c\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30ac\u30fc\u30c9\u3068\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u30ea\u30bb\u30c3\u30c8\u3092\u5236\u5fa1\u3057\u307e\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u306f\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u5909\u66f4\u3067\u304d\u307e\u3059\u304c\u3001\u57fa\u672c\u7684\u306b\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u307e\u307e\u3067\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u6b21\u306b\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30ac\u30fc\u30c9\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002\u3053\u306e\u4f8b\u3067\u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u8a2d\u5b9a\u3068\u3057\u3066\u3001\u30bb\u30c3\u30b7\u30e7\u30f3\u30b9\u30c8\u30ec\u30fc\u30b8\u3068Eloquent\u30e6\u30fc\u30b6\u30fc\u30d7\u30ed\u30d0\u30a4\u30c0\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u3059\u3079\u3066\u306e\u8a8d\u8a3c\u30c9\u30e9\u30a4\u30d0\u306b\u306f\u30e6\u30fc\u30b6\u30fc\u30d7\u30ed\u30d0\u30a4\u30c0\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">&lt;?php\n\nreturn [\n    \/* \n    Defining Authentication Defaults  \n    *\/\n    \n    'defaults' =&gt; [\n        'guard' =&gt; 'web', \n        'passwords' =&gt; 'users',\n    ],\n    \n    \/*\n    Defining Authentication Guards\n   \n    Supported: \"session\"\n    *\/\n\n    'guards' =&gt; [\n        'web' =&gt; [\n            'driver' =&gt; 'session',\n            'provider' =&gt; 'users',\n        ],\n     ],\n    \n    \/*\n    Defining User Providers\n\n    Supported: \"database\", \"eloquent\"\n    *\/\n\n    'providers' =&gt; [\n        'users' =&gt; [\n             'driver' =&gt; 'eloquent',\n             'model' =&gt; App\\Models\\User::class,\n        ], \n\n        \/\/ 'users' =&gt; [\n        \/\/     'driver' =&gt; 'database',\n        \/\/     'table' =&gt; 'users',\n        \/\/ ],\n    ],\n\n    \/*\n    Defining Password Resetting\n    *\/\n\n    'passwords' =&gt; [\n        'users' =&gt; [\n            'provider' =&gt; 'users',\n            'table' =&gt; 'password_resets',\n            'expire' =&gt; 60,\n            'throttle' =&gt; 60,\n         ],\n     ],\n\n     \/*\n     Defining Password Confirmation Timeout\n     *\/\n\n    'password_timeout' =&gt; 10800,\n];<\/code><\/pre>\n<p>\u3053\u306e\u8a18\u4e8b\u306e\u5f8c\u534a\u3067\u3001\u3059\u3079\u3066\u306e\u8a8d\u8a3c\u30c9\u30e9\u30a4\u30d0\u306b\u30e6\u30fc\u30b6\u30fc\u30d7\u30ed\u30d0\u30a4\u30c0\u304c\u3042\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u3044\u304d\u307e\u3059\u3002\u30d7\u30ed\u30d0\u30a4\u30c0\u306f\u30e6\u30fc\u30b6\u30fc\u306e\u53d6\u5f97\u65b9\u6cd5\u3092\u5b9a\u7fa9\u3057\u3001\u30e6\u30fc\u30b6\u30fc\u30c7\u30fc\u30bf\u3092\u6c38\u7d9a\u5316\u3057\u305f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3084\u3001\u305d\u306e\u4ed6\u306e\u30b9\u30c8\u30ec\u30fc\u30b8\u6a5f\u69cb\u304b\u3089\u30e6\u30fc\u30b6\u30fc\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\u8907\u6570\u306e\u30e6\u30fc\u30b6\u30fc\u30c6\u30fc\u30d6\u30eb\u3084\u30e2\u30c7\u30eb\u304c\u3042\u308c\u3070\u3001\u5404\u30e2\u30c7\u30eb\u3084\u30c6\u30fc\u30d6\u30eb\u3092\u8868\u3059\u8907\u6570\u306e\u30bd\u30fc\u30b9\u3092\u8a2d\u5b9a\u3067\u304d\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u3001\u5b9a\u7fa9\u3057\u305f\u4efb\u610f\u306e\u30ac\u30fc\u30c9\u306b\u30bd\u30fc\u30b9\u3092\u5272\u308a\u5f53\u3066\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30e6\u30fc\u30b6\u30fc\u304c\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u30ea\u30bb\u30c3\u30c8\u3057\u305f\u3044\u5834\u5408\u3082\u3042\u308a\u307e\u3059\u3002\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u8907\u6570\u306e\u30e6\u30fc\u30b6\u30fc\u30c6\u30fc\u30d6\u30eb\u3084\u30e2\u30c7\u30eb\u304c\u3042\u308a\u3001\u7279\u5b9a\u306e\u30e6\u30fc\u30b6\u30fc\u30bf\u30a4\u30d7\u306b\u57fa\u3065\u3044\u3066\u500b\u5225\u306b\u8a2d\u5b9a\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u8907\u6570\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u30ea\u30bb\u30c3\u30c8\u69cb\u6210\u3092\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002\u6709\u52b9\u671f\u9650\u306f\u3001\u5404\u30ea\u30bb\u30c3\u30c8\u30c8\u30fc\u30af\u30f3\u3067\u6709\u52b9\u306a\u671f\u9593\uff08\u5206\uff09\u3067\u3059\u3002\u3053\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u6a5f\u80fd\u306b\u3088\u308a\u3001\u30c8\u30fc\u30af\u30f3\u306e\u751f\u5b58\u671f\u9593\u306f\u77ed\u304f\u4fdd\u305f\u308c\u3001\u7b2c\u4e09\u8005\u306b\u63a8\u6e2c\u3055\u308c\u308b\u6642\u9593\u3092\u524a\u6e1b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u6709\u52b9\u671f\u9593\u306f\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u5909\u66f4\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u6700\u5f8c\u306b\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u3057\u3001\u78ba\u8a8d\u753b\u9762\u3092\u8868\u793a\u3057\u3066\u30e6\u30fc\u30b6\u30fc\u306b\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u518d\u5165\u529b\u3092\u6c42\u3081\u308b\u307e\u3067\u306e\u6642\u9593\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f3\u6642\u9593\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>Laravel\u306e\u8a8d\u8a3c\u65b9\u6cd5\u306e\u7a2e\u985e<\/h2>\n<p>\u3059\u3079\u3066\u306e\u30b7\u30ca\u30ea\u30aa\u3092\u8a8d\u8a3c\u3059\u308b\u4e07\u80fd\u306a\u65b9\u6cd5\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u305d\u308c\u305e\u308c\u306e\u65b9\u6cd5\u3092\u77e5\u308b\u3053\u3068\u3067\u3001\u3088\u308a\u826f\u3044\u5224\u65ad\u304c\u3067\u304d\u307e\u3059\u3002<a href=\"https:\/\/kinsta.com\/blog\/laravel-9\/\">Laravel 9<\/a>\u3067\u5c0e\u5165\u3055\u308c\u305f\u65b0\u6a5f\u80fd\u306b\u3088\u308a\u3001\u8a8d\u8a3c\u30e2\u30fc\u30c9\u3092\u5207\u308a\u66ff\u3048\u308b\u64cd\u4f5c\u304c\u975e\u5e38\u306b\u7c21\u5358\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<h3>\u30d1\u30b9\u30ef\u30fc\u30c9\u30d9\u30fc\u30b9\u8a8d\u8a3c<\/h3>\n<p>\u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u8a8d\u8a3c\u306e\u521d\u6b69\u7684\u306a\u65b9\u6cd5\u3067\u3042\u308a\u3001\u672a\u3060\u4f55\u5343\u3082\u306e\u7d44\u7e54\u3067\u4f7f\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3057\u304b\u3057\u3001\u73fe\u5728\u306e\u958b\u767a\u73fe\u5834\u3067\u306f\u3001\u660e\u3089\u304b\u306b\u6642\u4ee3\u9045\u308c\u306b\u306a\u308a\u3064\u3064\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u30b5\u30a4\u30c8\u5236\u4f5c\u8005\u306f\u3001\u8907\u96d1\u306a\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u5b9f\u88c5\u3092\u5fb9\u5e95\u3059\u308b\u3068\u540c\u6642\u306b\u3001\u30a8\u30f3\u30c9\u30e6\u30fc\u30b6\u30fc\u306e\u8ca0\u62c5\u3092\u6700\u5c0f\u9650\u306b\u6291\u3048\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u30d1\u30b9\u30ef\u30fc\u30c9\u8a8d\u8a3c\u306f\u6975\u3081\u3066\u5358\u7d14\u306b\u52d5\u4f5c\u3057\u307e\u3059\u3002\u30e6\u30fc\u30b6\u30fc\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u540d\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3057\u3001\u305d\u308c\u304c\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u4fdd\u5b58\u3055\u308c\u3066\u3044\u308b\u767b\u9332\u60c5\u5831\u3068\u4e00\u81f4\u3059\u308c\u3070\u3001\u30b5\u30fc\u30d0\u30fc\u304c\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u8a8d\u8a3c\u3057\u307e\u3059\u3002\u3059\u308b\u3068\u3001\u30e6\u30fc\u30b6\u30fc\u306f\u3042\u3089\u304b\u3058\u3081\u5b9a\u7fa9\u3055\u308c\u305f\u671f\u9593\u3001\u30ea\u30bd\u30fc\u30b9\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u30c8\u30fc\u30af\u30f3\u30d9\u30fc\u30b9\u8a8d\u8a3c<\/h3>\n<p>\u3053\u306e\u65b9\u6cd5\u306f\u3001\u8a8d\u8a3c\u6642\u3001\u30e6\u30fc\u30b6\u30fc\u306b\u4e00\u610f\u306e\u30c8\u30fc\u30af\u30f3\u3092\u767a\u884c\u3059\u308b\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>\u30c8\u30fc\u30af\u30f3\u3092\u6301\u3064\u30e6\u30fc\u30b6\u30fc\u306f\u3001\u305d\u306e\u6709\u52b9\u671f\u9650\u304c\u5207\u308c\u308b\u307e\u3067\u95a2\u9023\u30ea\u30bd\u30fc\u30b9\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30c8\u30fc\u30af\u30f3\u304c\u6709\u52b9\u306a\u9593\u3001\u30e6\u30fc\u30b6\u30fc\u540d\u3084\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u4e0d\u8981\u3067\u3059\u304c\u3001\u65b0\u305f\u306b\u30c8\u30fc\u30af\u30f3\u3092\u53d6\u5f97\u3059\u308b\u969b\u306b\u306f\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u30c8\u30fc\u30af\u30f3\u306f\u4eca\u65e5\u3001\u69d8\u3005\u306a\u5834\u9762\u3067\u4f7f\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u306f\u30c8\u30fc\u30af\u30f3\u304c\u3059\u3079\u3066\u306e\u8a8d\u8a3c\u30c7\u30fc\u30bf\u3092\u542b\u3080\u3001\u30b9\u30c6\u30fc\u30c8\u30ec\u30b9\u306a\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u3067\u3042\u308b\u305f\u3081\u3067\u3059\u3002<\/p>\n<p>\u30c8\u30fc\u30af\u30f3\u306e\u751f\u6210\u3068\u691c\u8a3c\u3092\u5206\u96e2\u3059\u308b\u65b9\u6cd5\u304c\u3042\u308b\u3053\u3068\u3067\u3001\u9ad8\u3044\u67d4\u8edf\u6027\u3092\u78ba\u4fdd\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u591a\u8981\u7d20\u8a8d\u8a3c<\/h3>\n<p>\u591a\u8981\u7d20\u8a8d\u8a3c\u306f\u3001\u305d\u306e\u540d\u304c\u793a\u3059\u3068\u304a\u308a\u3001\u5c11\u306a\u304f\u3068\u30822\u3064\u4ee5\u4e0a\u306e\u8a8d\u8a3c\u8981\u7d20\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u3082\u306e\u3067\u3001\u5b89\u5168\u6027\u3092\u9ad8\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>2\u3064\u306e\u8981\u7d20\u306e\u307f\u3092\u4f7f\u7528\u3059\u308b<a href=\"https:\/\/kinsta.com\/jp\/blog\/wordpress-two-factor-authentication\/\">\u4e8c\u8981\u7d20\u8a8d\u8a3c<\/a>\u3068\u306f\u7570\u306a\u308a\u3001\u591a\u8981\u7d20\u8a8d\u8a3c\u3067\u306f2\u3064\u4ee5\u4e0a\u306e\u8981\u7d20\u3092\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u5178\u578b\u7684\u306a\u4f7f\u7528\u4e8b\u4f8b\u3068\u3057\u3066\u306f\u3001\u307e\u305a\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u4f7f\u7528\u3057\u3001\u6b21\u306b\u30e6\u30fc\u30b6\u30fc\u306e\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u306b\u8a8d\u8a3c\u30b3\u30fc\u30c9\u3092\u9001\u4fe1\u3057\u307e\u3059\u3002\u591a\u8981\u7d20\u8a8d\u8a3c\u3092\u5c0e\u5165\u3059\u308b\u5834\u5408\u306f\u3001\u8aa4\u691c\u77e5\u3084\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u505c\u6b62\u306b\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002\u7279\u306b\u3001\u4e8b\u696d\u898f\u6a21\u3092\u6025\u901f\u306b\u62e1\u5927\u3057\u3066\u3044\u308b\u5834\u9762\u3067\u306f\u3001\u5927\u304d\u306a\u554f\u984c\u306b\u306a\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h2>Laravel\u3067\u8a8d\u8a3c\u3092\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5<\/h2>\n<p>\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30e6\u30fc\u30b6\u30fc\u306e\u8a8d\u8a3c\u65b9\u6cd5\u3092\u3044\u304f\u3064\u304b\u3054\u8aac\u660e\u3057\u307e\u3059\u3002Jetstream\u3001Breeze\u3001Socialite\u306a\u3069\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u306f\u3001<a href=\"https:\/\/kinsta.com\/blog\/laravel-tutorial\/\">\u7121\u6599\u306e\u89e3\u8aac\u8a18\u4e8b<\/a>\u3092\u516c\u958b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>\u624b\u4f5c\u696d\u3067\u306e\u8a8d\u8a3c<\/h3>\n<p>\u307e\u305a\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u767b\u9332\u304b\u3089\u59cb\u3081\u307e\u3059\u3002<code>routes\/web.php<\/code>\u306b\u5fc5\u8981\u306a\u30eb\u30fc\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>\u30d5\u30a9\u30fc\u30e0\u8868\u793a\u7528\u3068\u767b\u9332\u7528\u306e2\u3064\u306e\u30eb\u30fc\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">use App\\Http\\Controllers\\Auth\\RegisterController;\nuse Illuminate\\Support\\Facades\\Route;\n\n\/*\nWeb Routes \n\nRegister web routes for your app's RouteServiceProvider \nin a group containing the \"web\" middleware\n*\/\n\nRoute::get('\/register', [RegisterController::class, 'create']);\nRoute::post('\/register', [RegisterController::class, 'store']);<\/code><\/pre>\n<p>\u6b21\u306b\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-bash\">php artisan make:controller Auth\/RegisterController -r<\/code><\/pre>\n<p>\u751f\u6210\u3055\u308c\u305f\u30b3\u30fc\u30c9\u3092\u66f4\u65b0\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">namespace App\\Http\\Controllers\\Auth;\n\nuse App\\Http\\Controllers\\Controller;\nuse illuminate\\Htpp\\Request;\n\nclass RegisterController extends Controller\n{\n    public function create()\n    {\n        return view('auth.register');\n    }\n\n    public function store(Request $request)\n    {\n    }\n}<\/code><\/pre>\n<p>\u73fe\u5728\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306f\u7a7a\u3067\u3001\u767b\u9332\u7528\u306e\u30d3\u30e5\u30fc\u3092\u8fd4\u3057\u3066\u3044\u307e\u3059\u3002\u305d\u306e\u30d3\u30e5\u30fc\u3092<code>resources\/views\/auth<\/code>\u306b\u4f5c\u6210\u3057\u3001\u540d\u524d\u3092<code>register.blade.php<\/code>\u3068\u3057\u307e\u3059\u3002<\/p>\n<figure style=\"width: 1968px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/kinsta.com\/wp-content\/uploads\/2022\/10\/Laravel-Register-User.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2022\/10\/Laravel-Register-User.png\" alt=\"\u30e6\u30fc\u30b6\u30fc\u3092\u767b\u9332\u3059\u308bLaravel Blade\u30d3\u30e5\u30fc\" width=\"1968\" height=\"1862\"><\/a><figcaption class=\"wp-caption-text\">\u30e6\u30fc\u30b6\u30fc\u3092\u767b\u9332\u3059\u308bLaravel Blade\u30d3\u30e5\u30fc<\/figcaption><\/figure>\n<p>\u3053\u308c\u3067\u3059\u3079\u3066\u304c\u6574\u3044\u307e\u3057\u305f\u3002<code>\/register<\/code>\u30eb\u30fc\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u3001\u767b\u9332\u30d5\u30a9\u30fc\u30e0\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<figure id=\"attachment_162747\" aria-describedby=\"caption-attachment-162747\" style=\"width: 960px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-162747 size-full\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2023\/03\/laravel-authentication-user-login-form.png\" alt=\"\u624b\u4f5c\u696d\u3067\u306e\u8a8d\u8a3c\u306b\u5229\u7528\u3067\u304d\u308b\u767b\u9332\u30d5\u30a9\u30fc\u30e0\u306e\u69d8\u5b50\" width=\"960\" height=\"264\"><figcaption id=\"caption-attachment-162747\" class=\"wp-caption-text\">\u624b\u4f5c\u696d\u3067\u306e\u8a8d\u8a3c\u306b\u5229\u7528\u3067\u304d\u308b\u767b\u9332\u30d5\u30a9\u30fc\u30e0\u306e\u69d8\u5b50<\/figcaption><\/figure>\n<p>\u3053\u308c\u3067\u30e6\u30fc\u30b6\u30fc\u5165\u529b\u7528\u306e\u30d5\u30a9\u30fc\u30e0\u3092\u8868\u793a\u3057\u3001\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002\u6b21\u306e\u30b3\u30fc\u30c9\u3067\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3001\u691c\u8a3c\u3057\u3001\u554f\u984c\u304c\u306a\u3051\u308c\u3070\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u4fdd\u5b58\u3057\u307e\u3059\u3002\u4fdd\u5b58\u306b\u969b\u3057\u3066\u306f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u3001\u633f\u5165\u3059\u308b\u30c7\u30fc\u30bf\u306e\u5b8c\u5168\u6027\u3092\u62c5\u4fdd\u3057\u307e\u3059\u3002<\/p>\n<p>Laravel\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u691c\u8a3c\u6a5f\u80fd\u3092\u4f7f\u7528\u3057\u3066\u30013\u3064\u306e\u5fc5\u9808\u306e\u8a8d\u8a3c\u60c5\u5831\u304c\u3059\u3079\u3066\u5165\u529b\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u307e\u305f\u3001\u30e1\u30fc\u30eb\u30a2\u30ab\u30a6\u30f3\u30c8\u306f\u6b63\u3057\u3044\u5f62\u5f0f\u3067\u3001<code>users<\/code>\u30c6\u30fc\u30d6\u30eb\u5185\u3067\u4e00\u610f\u3067\u3042\u308b\u3053\u3068\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u6709\u52b9\u3067\u30018\u6587\u5b57\u4ee5\u4e0a\u3067\u3042\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">namespace App\\Http\\Controllers\\Auth;\n\nuse App\\Http\\Controllers\\Controller;\nuse Illuminate\\Foundation\\Auth\\User;\nuse Illuminate\\Http\\Request;\nuse Illuminate\\Support\\Facades\\Hash;\n\nclass RegisterController extends Controller\n{\n    public function store(Request $request)\n    {\n        \/* \n        Validation\n        *\/\n        $request-&gt;validate([\n            'name' =&gt; 'required',\n            'email' =&gt; 'required|email|unique:users',\n            'password' =&gt; 'required|confirmed|min:8',\n        ]);\n\n        \/*\n        Database Insert\n        *\/\n        $user = User::create([\n            'name' =&gt; $request-&gt;name,\n            'email' =&gt; $request-&gt;email,\n            'password' =&gt; Hash::make($request-&gt;password),\n        ]);\n\n        return back();\n    }\n\n    public function create()\n    {\n        return view('auth.register');\n    }\n}<\/code><\/pre>\n<p>\u3053\u308c\u3067\u5165\u529b\u306e\u691c\u8a3c\u304c\u884c\u308f\u308c\u3001\u691c\u8a3c\u306b\u5931\u6557\u3059\u308b\u3082\u306e\u304c\u3042\u308c\u3070\u30a8\u30e9\u30fc\u304c\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<figure id=\"attachment_162751\" aria-describedby=\"caption-attachment-162751\" style=\"width: 960px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-162751 size-full\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2023\/03\/laravel-authentication-invalid-register-input.png\" alt=\"\u767b\u9332\u306e\u7121\u52b9\u306a\u5165\u529b\u306e\u4f8b\" width=\"960\" height=\"168\"><figcaption id=\"caption-attachment-162751\" class=\"wp-caption-text\">\u767b\u9332\u306e\u7121\u52b9\u306a\u5165\u529b\u306e\u4f8b<\/figcaption><\/figure>\n<p><code>store<\/code>\u30e1\u30bd\u30c3\u30c9\u3067\u30e6\u30fc\u30b6\u30fc\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f5c\u6210\u3057\u305f\u3089\u3001\u30e6\u30fc\u30b6\u30fc\u306b\u30ed\u30b0\u30a4\u30f3\u3092\u8981\u6c42\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u306f\u3001\u624b\u4f5c\u696d\u3067\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u3068\u3001<strong>Auth\u30d5\u30a1\u30b5\u30fc\u30c9<\/strong>\u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5\u306e2\u901a\u308a\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u30e6\u30fc\u30b6\u30fc\u304c\u30ed\u30b0\u30a4\u30f3\u3057\u305f\u5f8c\u306f\u3001\u767b\u9332\u753b\u9762\u306b\u623b\u308b\u306e\u3067\u306f\u306a\u304f\u3001\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u3084\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u306e\u3088\u3046\u306a\u5225\u306e\u30da\u30fc\u30b8\u306b\u79fb\u52d5\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3067\u3053\u308c\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">namespace App\\Http\\Controllers\\Auth;\n\nuse App\\Http\\Controllers\\Controller;\nuse App\\Providers\\RouteServiceProvider;\nuse Illuminate\\Foundation\\Auth\\User;\nuse Illuminate\\Http\\Request;\nuse Illuminate\\Support\\Facades\\Auth;\nuse Illuminate\\Support\\Facades\\Hash;\n\nclass RegisterController extends Controller\n{\n    public function store(Request $request)\n    {\n        \/* \n        Validation\n        *\/\n        $request-&gt;validate([\n            'name' =&gt; 'required',\n            'email' =&gt; 'required|email|unique:users',\n            'password' =&gt; 'required|confirmed|min:8',\n        ]);\n\n        \/*\n        Database Insert\n        *\/\n        $user = User::create([\n            'name' =&gt; $request-&gt;name,\n            'email' =&gt; $request-&gt;email,\n            'password' =&gt; Hash::make($request-&gt;password),\n        ]);\n\n        Auth::login($user);\n\n        return redirect(RouteServiceProvider::HOME);\n    }\n\n    public function create()\n    {\n        return view('auth.register');\n    }\n}<\/code><\/pre>\n<p>\u3053\u308c\u3067\u30e6\u30fc\u30b6\u30fc\u304c\u767b\u9332\u3055\u308c\u3001\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u308b\u72b6\u614b\u306b\u306a\u3063\u305f\u306e\u3067\u3001\u7d9a\u3044\u3066\u306f\u5b89\u5168\u306b\u30ed\u30b0\u30a2\u30a6\u30c8\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<p>Laravel\u306f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u4e0a\u306e\u7406\u7531\u304b\u3089\u3001\u30ed\u30b0\u30a2\u30a6\u30c8\u5f8c\u306b\u30bb\u30c3\u30b7\u30e7\u30f3\u3092\u7121\u52b9\u306b\u3057\u3001\u30c8\u30fc\u30af\u30f3\u3092\u518d\u751f\u6210\u3059\u308b\u3053\u3068\u3092\u63a8\u5968\u3057\u3066\u3044\u307e\u3059\u3002\u307e\u305a\u3001<strong>LogoutController<\/strong>\u306e<code>destroy<\/code>\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3001<code>\/logout<\/code>\u30eb\u30fc\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">use App\\Http\\Controllers\\Auth\\RegisterController;\nuse App\\Http\\Controllers\\Auth\\LogoutController;\nuse Illuminate\\Support\\Facades\\Route;\n\n\/*\nWeb Routes\n\nHere is where you can register web routes for your application. These\nroutes are loaded by the RrouteServiceProvider with a group which\ncontains the \"web\" middleware group. Now create something great!\n*\/\n\nRoute::get('\/register', [RegisterController::class, 'create']);\nRoute::post('\/register', [RegisterController::class, 'store']);\nRoute::post('\/logout', [Logoutcontroller::class, 'destroy'])\n    -&gt;middleware('auth');<\/code><\/pre>\n<p>\u30ed\u30b0\u30a2\u30a6\u30c8\u3092\u300c<code>auth<\/code>\u300d\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\u306b\u6e21\u3059\u3053\u3068\u306f\u975e\u5e38\u306b\u91cd\u8981\u3067\u3059\u3002\u3053\u308c\u3067\u3001\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3044\u306a\u3044\u30e6\u30fc\u30b6\u30fc\u306f\u30eb\u30fc\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u5148\u307b\u3069\u3068\u540c\u3058\u3088\u3046\u306b\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-bash\">php artisan make:controller Auth\/LogoutController -r<\/code><\/pre>\n<p><code>destroy<\/code>\u30e1\u30bd\u30c3\u30c9\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3068\u3057\u3066\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002Auth\u30d5\u30a1\u30b5\u30fc\u30c9\u3092\u901a\u3057\u3066\u30e6\u30fc\u30b6\u30fc\u3092\u30ed\u30b0\u30a2\u30a6\u30c8\u3057\u3001\u30bb\u30c3\u30b7\u30e7\u30f3\u3092\u7121\u52b9\u5316\u3001\u30c8\u30fc\u30af\u30f3\u3092\u518d\u751f\u6210\u3057\u3066\u3001\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">namespace App\\Http\\Controllers\\Auth;\n\nuse App\\Http\\Controllers\\Controller;\nuse Illuminate\\Http\\Request;\nuse Illuminate\\Support\\Facades\\Auth;\n\nclass LogoutController extends Controller\n{\n    public function destroy(Request $request)\n    { \n        Auth::logout();\n\n        $request-&gt;session()-&gt;invalidate();\n        $request-&gt;session()-&gt;regenerateToken();\n \n        return redirect('\/');\n     }\n}<\/code><\/pre>\n<h3>\u30e6\u30fc\u30b6\u30fc\u306e\u8a18\u61b6<\/h3>\n<p>\u6700\u8fd1\u306e\u307b\u3068\u3093\u3069\u306e\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u306f\u3001\u30ed\u30b0\u30a4\u30f3\u30d5\u30a9\u30fc\u30e0\u306b\u300cremember me\u300d\uff08\u30e6\u30fc\u30b6\u30fc\u3092\u8a18\u61b6\u3059\u308b\uff09\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u300cremember me\u300d\u6a5f\u80fd\u3092\u30b5\u30dd\u30fc\u30c8\u3059\u308b\u306b\u306f\u3001attempt\u30e1\u30bd\u30c3\u30c9\u306e\u7b2c2\u5f15\u6570\u306b\u30d6\u30fc\u30eb\u5024\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u6a5f\u80fd\u304c\u6709\u52b9\u306a\u5834\u5408\u3001\u30e6\u30fc\u30b6\u30fc\u306f\u7121\u671f\u9650\u3067\u3001\u307e\u305f\u306f\u30ed\u30b0\u30a2\u30a6\u30c8\u3059\u308b\u307e\u3067\u8a8d\u8a3c\u3055\u308c\u3066\u3044\u308b\u72b6\u614b\u306b\u306a\u308a\u307e\u3059\u3002\u30e6\u30fc\u30b6\u30fc\u30c6\u30fc\u30d6\u30eb\u306f\u3001\u6587\u5b57\u5217<code>remember_token<\/code>\u30ab\u30e9\u30e0\u3092\u542b\u3080\u5fc5\u8981\u304c\u3042\u308a\uff08\u305d\u306e\u305f\u3081\u30c8\u30fc\u30af\u30f3\u306e\u518d\u751f\u6210\u304c\u5fc5\u8981\uff09\u3001\u3053\u3053\u306b\u300cremember me\u300d\u30c8\u30fc\u30af\u30f3\u3092\u683c\u7d0d\u3057\u307e\u3059\u3002<\/p>\n<p>\u30e6\u30fc\u30b6\u30fc\u7528\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u306b\u306f\u3001\u3059\u3067\u306b\u3053\u306e\u30ab\u30e9\u30e0\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u30d5\u30a9\u30fc\u30e0\u306b\u3001<strong>Remember Me<\/strong>\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<figure style=\"width: 1396px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/kinsta.com\/wp-content\/uploads\/2022\/10\/RememberMe.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2022\/10\/RememberMe.png\" alt=\"\u30d5\u30a9\u30fc\u30e0\u3078\u306e\u300cRemember Me\u300d\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u8ffd\u52a0\" width=\"1396\" height=\"596\"><\/a><figcaption class=\"wp-caption-text\">\u30d5\u30a9\u30fc\u30e0\u3078\u306e\u300cRemember Me\u300d\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u8ffd\u52a0<\/figcaption><\/figure>\n<p>\u6b21\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u304b\u3089\u8a8d\u8a3c\u60c5\u5831\u3092\u53d6\u5f97\u3057\u3001Auth\u30d5\u30a1\u30b5\u30fc\u30c9\u306eattempt\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>\u8a18\u61b6\u3055\u308c\u3066\u3044\u308b\u30e6\u30fc\u30b6\u30fc\u306f\u3001\u30ed\u30b0\u30a4\u30f3\u5f8c\u3001\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3055\u308c\u307e\u3059\u3002\u305d\u3046\u3067\u306a\u3051\u308c\u3070\u3001\u30a8\u30e9\u30fc\u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">public function store(Request $request)\n{\n    $credentials = $request-&gt;only('email', 'password');\n\n    if (Auth::attempt($credentials, $request-&gt;filled('remember'))) {\n        $request-&gt;session()-&gt;regenerate();\n\n        return redirect()-&gt;intended('\/');\n    }\n\n    return back()-&gt;withErrors([\n        'email' =&gt; 'The provided credentials do not match our records.',\n    ]);\n}<\/code><\/pre>\n<h3>\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u30ea\u30bb\u30c3\u30c8<\/h3>\n<p>\u4eca\u65e5\u3001\u307b\u3068\u3093\u3069\u306e\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u81ea\u8eab\u3067\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u30ea\u30bb\u30c3\u30c8\u3067\u304d\u308b\u6a5f\u80fd\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5fd8\u308c\u305f\u30e6\u30fc\u30b6\u30fc\u5411\u3051\u306b\u3001\u65b0\u305f\u306b\u5225\u306e\u30eb\u30fc\u30c8\u3092\u4f5c\u6210\u3057\u3001\u5148\u307b\u3069\u3068\u540c\u3058\u3088\u3046\u306b\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u3055\u3089\u306b\u3001\u30d7\u30ed\u30bb\u30b9\u5168\u4f53\u306e\u30c8\u30fc\u30af\u30f3\u3092\u542b\u3080\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u30ea\u30bb\u30c3\u30c8\u30ea\u30f3\u30af\u7528\u306e\u30eb\u30fc\u30c8\u3082\u8ffd\u52a0\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">Route::post('\/forgot-password', [ForgotPasswordLinkController::class, 'store']);\nRoute::post('\/forgot-password\/{token}', [ForgotPasswordController::class, 'reset']);<\/code><\/pre>\n<p>store\u30e1\u30bd\u30c3\u30c9\u306e\u5185\u90e8\u3067\u30ea\u30af\u30a8\u30b9\u30c8\u304b\u3089\u30e1\u30fc\u30eb\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u53d7\u3051\u53d6\u308a\u3001\u5148\u307b\u3069\u3068\u540c\u3058\u3088\u3046\u306b\u691c\u8a3c\u3057\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306b\u3001Password\u30d5\u30a1\u30b5\u30fc\u30c9\u306e<code>sendResetLink<\/code>\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>\u6700\u5f8c\u306b\u30ec\u30b9\u30dd\u30f3\u30b9\u3068\u3057\u3066\u3001\u30ea\u30f3\u30af\u306e\u9001\u4fe1\u306b\u6210\u529f\u3057\u305f\u5834\u5408\u306f\u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u3001\u5931\u6557\u3057\u305f\u5834\u5408\u306f\u30a8\u30e9\u30fc\u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">namespace App\\Http\\Controllers\\Auth;\n\nuse App\\Http\\Controllers\\Controller;\nuse Illuminate\\Http\\Request;\nuse Illuminate\\Support\\Facades\\Password;\n\nclass ForgotPasswordLinkController extends Controller\n{\n    public function store(Request $request)\n    {\n        $request-&gt;validate([\n             'email' =&gt; 'required|email',\n        ]);\n\n        $status = Password::sendResetLink(\n            $request-&gt;only('email');\n        );\n\n        return $status === Password::RESET_LINK_SENT\n            ? back()-&gt;with('status', __($status))\n            : back()-&gt;withInput($request-&gt;only('email'))-&gt;withErrors(['email' =&gt; __($status)]);\n     }\n}<\/code><\/pre>\n<p>\u30e6\u30fc\u30b6\u30fc\u306e\u30e1\u30fc\u30eb\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u30ea\u30bb\u30c3\u30c8\u30ea\u30f3\u30af\u304c\u9001\u4fe1\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3089\u3001\u3053\u306e\u5f8c\u306e\u30ed\u30b8\u30c3\u30af\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>\u30c8\u30fc\u30af\u30f3\u3001\u30e1\u30fc\u30eb\u30a2\u30ab\u30a6\u30f3\u30c8\u3001\u65b0\u3057\u3044\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u30ea\u30af\u30a8\u30b9\u30c8\u5185\u3067\u53d6\u5f97\u3057\u3001\u691c\u8a3c\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u5f8c\u306f\u3001Laravel\u3067\u3059\u3079\u3066\u306e\u51e6\u7406\u3092\u884c\u3046\u305f\u3081\u3001Password\u30d5\u30a1\u30b5\u30fc\u30c9\u304b\u3089reset\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>\u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u5b89\u5168\u306b\u4fdd\u3064\u305f\u3081\u3001\u5e38\u306b\u30cf\u30c3\u30b7\u30e5\u5316\u3057\u307e\u3059\u3002<\/p>\n<p>\u6700\u5f8c\u306b\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u30ea\u30bb\u30c3\u30c8\u3055\u308c\u305f\u304b\u3069\u3046\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3001\u30ea\u30bb\u30c3\u30c8\u3055\u308c\u3066\u3044\u308c\u3070\u3001\u6210\u529f\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u3068\u5171\u306b\u30ed\u30b0\u30a4\u30f3\u753b\u9762\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3057\u307e\u3059\u3002\u305d\u3046\u3067\u306a\u3051\u308c\u3070\u3001\u30ea\u30bb\u30c3\u30c8\u3067\u304d\u306a\u304b\u3063\u305f\u65e8\u306e\u30a8\u30e9\u30fc\u3092\u8868\u793a\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">namespace App\\Http\\Controllers\\Auth;\n\nuse App\\Http\\Controllers\\Controller;\nuse Illuminate\\Http\\Request;\nuse Illuminate\\Support\\Facades\\Hash;\nuse Illuminate\\Support\\Facades\\Password;\nuse Illuminate\\Support\\Str;\n\nclass ForgotPasswordController extends Controller\n{\n    public function reset(Request $request)\n    {\n        $request-&gt;validate([\n            'token' =&gt; 'required',\n            'email' =&gt; 'required|email',\n            'password' =&gt; 'required|string|confirmed|min:8',\n        ]);\n\n        $status = Password::reset(\n            $request-&gt;only('email', 'password', 'password_confirmation', 'token'),\n            function ($user) use ($request) {\n                $user-&gt;forceFill(\n                    'password' =&gt; Hash::make($request-&gt;password),\n                    'remember_token' =&gt; Str::random(60)\n                ])-&gt;save();\n            }\n        );\n\n        return $status == Password::PASSWORD_RESET\n            ? redirect()-&gt;route('login')-&gt;with('status', __($status))\n            : back()-&gt;withInput($request-&gt;only('email'))-&gt;withErrors(['email' =&gt; __($status)]);\n    }\n}<\/code><\/pre>\n<h2>Laravel Breeze<\/h2>\n<p><a href=\"https:\/\/kinsta.com\/jp\/blog\/laravel-breeze\/\">Laravel Breeze<\/a>\u306f\u3001Laravel\u306e\u8a8d\u8a3c\u6a5f\u80fd\uff08\u30ed\u30b0\u30a4\u30f3\u3001\u767b\u9332\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u30ea\u30bb\u30c3\u30c8\u3001\u30e1\u30fc\u30eb\u8a8d\u8a3c\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u78ba\u8a8d\uff09\u3092\u7c21\u5358\u306b\u5b9f\u88c5\u3067\u304d\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u3067\u3059\u3002\u65b0\u898f\u4f5c\u6210\u3057\u305fLaravel\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3078\u306e\u5b9f\u88c5\u306b\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3><span lang=\"EN-US\" style=\"font-family: 'Arial Unicode MS',sans-serif\">\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7<\/span><\/h3>\n<p>Laravel\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3057\u305f\u3089\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u69cb\u6210\u3057\u3001\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u884c\u3057\u3066\u3001composer\u3067laravel\/breeze\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">composer require laravel\/breeze --dev<\/code><\/pre>\n<p>\u6b21\u306b\u3001\u4ee5\u4e0b\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-bash\">php artisan breeze:install<\/code><\/pre>\n<p>\u3053\u308c\u306b\u3088\u308a\u3001\u8a8d\u8a3c\u30d3\u30e5\u30fc\u3001\u30eb\u30fc\u30c8\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u3001\u304a\u3088\u3073\u305d\u306e\u4ed6\u306e\u30ea\u30bd\u30fc\u30b9\u304c\u516c\u958b\u3055\u308c\u307e\u3059\u3002\u3053\u306e\u5f8c\u3001Breeze\u306e\u3059\u3079\u3066\u306e\u6a5f\u80fd\u3092\u5b8c\u5168\u306b\u5236\u5fa1\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306b\u3001\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u3067\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3059\u308b\u305f\u3081\u3001JS\u306e\u4f9d\u5b58\u95a2\u4fc2\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\uff08@vite\u3092\u4f7f\u7528\u3057\u307e\u3059\uff09\u3002<\/p>\n<pre><code class=\"language-php\">npm install<\/code><\/pre>\n<p>:<\/p>\n<pre><code class=\"language-php\">npm run dev<\/code><\/pre>\n<p>\u3053\u308c\u3067\u3001\u30ed\u30b0\u30a4\u30f3\u3068\u767b\u9332\u306e\u30ea\u30f3\u30af\u304c\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u306b\u8868\u793a\u3055\u308c\u3001\u4ee5\u5f8c\u3001\u3059\u3079\u3066\u30b9\u30e0\u30fc\u30ba\u306b\u52d5\u4f5c\u3059\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<h2>Laravel Jetstream<\/h2>\n<p>Laravel Jetstream\u306f\u3001\u4fbf\u5229\u306a\u6a5f\u80fd\u3084\u4ed6\u306e\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u30b9\u30bf\u30c3\u30af\u3092\u4f7f\u7528\u3057\u3066\u3001Laravel Breeze\u3092\u62e1\u5f35\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30ed\u30b0\u30a4\u30f3\u3001\u767b\u9332\u3001\u30e1\u30fc\u30eb\u8a8d\u8a3c\u3001<a href=\"https:\/\/kinsta.com\/jp\/blog\/wordpress-two-factor-authentication\/\">\u4e8c\u8981\u7d20\u8a8d\u8a3c<\/a>\u3001\u30bb\u30c3\u30b7\u30e7\u30f3\u7ba1\u7406\u3001Sanctum\u7d4c\u7531\u306eAPI\u30b5\u30dd\u30fc\u30c8\u3001\u304a\u3088\u3073\u30c1\u30fc\u30e0\u7ba1\u7406\uff08\u4efb\u610f\uff09\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>Jetstream\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u969b\u3001\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u3067Livewire\u3068<a href=\"https:\/\/kinsta.com\/jp\/blog\/laravel-inertia\/\">Inertia<\/a>\u306e\u3069\u3061\u3089\u304b\u3092\u9078\u629e\u3057\u307e\u3059\u3002\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u3067\u306f\u3001Laravel Fortify\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002Fortify\u306f\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u306b\u4f9d\u5b58\u3057\u306a\u3044\u3001Laravel\u306e\u300c\u30d8\u30c3\u30c9\u30ec\u30b9\u300d\u8a8d\u8a3c\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u3067\u3059\u3002<\/p>\n<h3>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7<\/h3>\n<p>Laravel\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306bComposer\u3092\u4f7f\u7528\u3057\u3066\u3001Jetstream\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">composer require laravel\/jetstream<\/code><\/pre>\n<p>\u3053\u306e\u5f8c\u3001<code>php artisan jetstream:install [stack]<\/code>\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002\u3053\u306e\u3068\u304d\u3001<code>[stack]<\/code>\u5f15\u6570\u306b\u306f\u3001<code>Livewire<\/code>\u307e\u305f\u306f<code>Inertia<\/code>\u3092\u6307\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u30c1\u30fc\u30e0\u6a5f\u80fd\u3092\u6709\u52b9\u306b\u3059\u308b\u306b\u306f\u3001<code>--teams<\/code>\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3067\u30c6\u30b9\u30c8\u7528\u306ePest <a href=\"https:\/\/kinsta.com\/blog\/scripting-languages\/\">PHP<\/a>\u3082\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u6700\u5f8c\u306b\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u3092\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">npm install\nnpm run dev<\/code><\/pre>\n<h2>Laravel Fortify<\/h2>\n<p>Laravel Fortify\u306f\u3001\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u306b\u4f9d\u5b58\u3057\u306a\u3044\u8a8d\u8a3c\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u3092\u5b9f\u88c5\u3059\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u3067\u3001Laravel\u306e\u8a8d\u8a3c\u6a5f\u80fd\u306e\u5b9f\u88c5\u306b\u304a\u3044\u3066\u5fc5\u9808\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>Laravel Fortify\u306f\u3001Breeze\u3084Jetstream\u306a\u3069\u306e\u30b9\u30bf\u30fc\u30bf\u30fc\u30ad\u30c3\u30c8\u3067\u3082\u4f7f\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u30b9\u30bf\u30f3\u30c9\u30a2\u30ed\u30f3\u3067\u3082\u4f7f\u7528\u3067\u304d\u307e\u3059\u304c\u3001\u3053\u306e\u5834\u5408\u306f\u5358\u306a\u308b\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u5b9f\u88c5\u3068\u306a\u308a\u3001\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u3067Fortify\u30eb\u30fc\u30c8\u3092\u547c\u3073\u51fa\u3055\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002<\/p>\n<h3>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7<\/h3>\n<p>Composer\u3092\u4f7f\u7528\u3057\u3066Fortify\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">composer require laravel\/fortify<\/code><\/pre>\n<p>\u6b21\u306b\u3001Fortify\u306e\u30ea\u30bd\u30fc\u30b9\u3092\u516c\u958b\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-bash\">php artisan vendor:publish --provider=\"Laravel\\Fortify\\FortifyServiceProvider\"<\/code><\/pre>\n<p>\u3053\u306e\u5f8c\u3001\u65b0\u898f<strong>app\/Actions<\/strong>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3084\u3001<strong>FortifyServiceProvider<\/strong>\u3001\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>\u6700\u5f8c\u306b\u4ee5\u4e0b\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-bash\">php artisan migrate<\/code><\/pre>\n<p>\u307e\u305f\u306f\u4ee5\u4e0b\u3067\u3082OK\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-bash\">php artisan migrate:fresh<\/code><\/pre>\n<p>\u3053\u308c\u3067Fortify\u306e\u6e96\u5099\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<h2>Laravel Socialite<\/h2>\n<p>Laravel\u306b\u306f\u3001\u7c21\u5358\u306aOAuth\u30d9\u30fc\u30b9\u306e\u30e6\u30fc\u30b6\u30fc\u8a8d\u8a3c\u6a5f\u80fd\u304c\u3042\u308a\u3001Facebook\u3001<a href=\"https:\/\/kinsta.com\/blog\/twitter-stats\/\">Twitter<\/a>\u3001<a href=\"https:\/\/kinsta.com\/blog\/linkedin-statistics\/\">LinkedIn<\/a>\u3001Google\u3001<a href=\"https:\/\/kinsta.com\/blog\/git-for-web-development\/\">Bitbucket\u3001GitHub\u3001GitLab<\/a>\u7d4c\u7531\u306e\u30bd\u30fc\u30b7\u30e3\u30eb\u30ed\u30b0\u30a4\u30f3\u3092\u30b5\u30dd\u30fc\u30c8\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>Socialite\u306f\u3001Composer\u3092\u4f7f\u7528\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">composer require laravel\/socialite<\/code><\/pre>\n<h3>\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3068\u4f7f\u7528\u65b9\u6cd5<\/h3>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u4f7f\u7528\u3059\u308bOAuth\u30d7\u30ed\u30d0\u30a4\u30c0\u306e\u8a8d\u8a3c\u60c5\u5831\u3092\u5404\u30b5\u30fc\u30d3\u30b9\u306e<strong>config\/services.php<\/strong>\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<p>\u69cb\u6210\u3067\u306f\u3001\u4ee5\u524d\u306e\u30b5\u30fc\u30d3\u30b9\u3068\u30ad\u30fc\u304c\u4e00\u81f4\u3057\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002\u30ad\u30fc\u306b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u3082\u306e\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>facebook<\/li>\n<li>twitter (For OAuth 1.0)<\/li>\n<li>twitter-oauth-2 (For OAuth 2.0)<\/li>\n<li>linkedin<\/li>\n<li>google<\/li>\n<li>github<\/li>\n<li>gitlab<\/li>\n<li>bitbucket<\/li>\n<\/ul>\n<p>\u30b5\u30fc\u30d3\u30b9\u306e\u69cb\u6210\u4f8b\u306f\u3001\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">'google' =&gt; [\n    'client_id' =&gt; env(\"GOOGLE_CLIENT_ID\"),\n    'client_secret' =&gt; env(\"GOOGLE_CLIENT_SECRET\"),\n    'redirect' =&gt; \"http:\/\/example.com\/callback-url\",\n],<\/code><\/pre>\n<h3>\u30e6\u30fc\u30b6\u30fc\u306e\u8a8d\u8a3c<\/h3>\n<p>\u3053\u306e\u30a2\u30af\u30b7\u30e7\u30f3\u306b\u306f\u30012\u3064\u306e\u30eb\u30fc\u30c8\u304c\u5fc5\u8981\u3067\u3059\u30021\u3064\u306f\u30e6\u30fc\u30b6\u30fc\u3092OAuth\u30d7\u30ed\u30d0\u30a4\u30c0\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">use Laravel\\Socialite\\Facades\\Sociliate;\n\nRoute::get('\/auth\/redirect', function () {\n    return Socialite::driver('google')-&gt;redirect();\n});<\/code><\/pre>\n<p>\u3082\u30461\u3064\u306f\u3001\u8a8d\u8a3c\u5f8c\u306e\u30d7\u30ed\u30d0\u30a4\u30c0\u304b\u3089\u306e\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-php\">use Laravel\\Socialite\\Facades\\Socialite;\n\nRoute:;get('\/auht\/callback', function () {\n    $user = Socialite::driver('google')-&gt;user();\n\n    \/\/ Getting the user data\n    $user-&gt;token;\n});<\/code><\/pre>\n<p>Socialite\u306b\u306fredirect\u30e1\u30bd\u30c3\u30c9\u304c\u3042\u308a\u3001\u30d5\u30a1\u30b5\u30fc\u30c9\u306f\u30e6\u30fc\u30b6\u30fc\u3092OAuth\u30d7\u30ed\u30d0\u30a4\u30c0\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3057\u307e\u3059\u3002user\u30e1\u30bd\u30c3\u30c9\u306f\u5165\u529b\u3055\u308c\u305f\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u691c\u67fb\u3057\u3001\u30e6\u30fc\u30b6\u30fc\u60c5\u5831\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n<p>\u30e6\u30fc\u30b6\u30fc\u60c5\u5831\u3092\u53d6\u5f97\u3057\u305f\u3089\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u305d\u306e\u30e6\u30fc\u30b6\u30fc\u304c\u5b58\u5728\u3059\u308b\u304b\u3092\u78ba\u8a8d\u3057\u3001\u8a8d\u8a3c\u3092\u884c\u3044\u307e\u3059\u3002\u5b58\u5728\u3057\u306a\u3051\u308c\u3070\u3001\u30e6\u30fc\u30b6\u30fc\u3092\u8868\u3059\u30ec\u30b3\u30fc\u30c9\u3092\u65b0\u898f\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">use App\\Models\\User;\nuse Illuminate\\Support\\Facades\\Auth;\nuse Laravel\\Socialite\\Facades\\Socialite;\n\nRoute::get('\/auth\/callback', function () {\n   \/*\n   Get the user\n   *\/\n   $googleUser = Socialite::driver('google')-&gt;user();\n   \n   \/*\n   Create the user if it does not exist\n   Update the user if it exists\n   \n   Check for google_id in database\n   *\/\n   $user = User::updateOrCreate([\n       'google_id' =&gt; $googleUser-&gt;id,\n   ], [\n       'name' =&gt; $googleUser-&gt;name,\n       'email' =&gt; $googleUser-&gt;email,\n       'google_token' =&gt; $googleUser-&gt;token,\n       'google_refresh_token' =&gt; $googleUser-&gt;refreshToken,\n   ]);\n\n   \/*\n   Authenticates the user using the Auth facade\n   *\/\n    Auth::login($user);\n   \n    return redirect('\/dashboard');\n});<\/code><\/pre>\n<p>\u30e6\u30fc\u30b6\u30fc\u306e\u30a2\u30af\u30bb\u30b9\u30b9\u30b3\u30fc\u30d7\u3092\u5236\u9650\u3059\u308b\u306b\u306f\u3001\u8a8d\u8a3c\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u542b\u3081\u308b<code>scopes<\/code>\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u4ee5\u524d\u306b\u6307\u5b9a\u3057\u305f\u3059\u3079\u3066\u306e\u30b9\u30b3\u30fc\u30d7\u3092\u3001\u6307\u5b9a\u3057\u305f\u30b9\u30b3\u30fc\u30d7\u306b\u7d71\u5408\u3057\u307e\u3059\u3002<\/p>\n<p>\u4ee3\u66ff\u3068\u3057\u3066<code>setScopes<\/code>\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u65e2\u5b58\u306e\u3059\u3079\u3066\u306e\u30b9\u30b3\u30fc\u30d7\u3092\u4e0a\u66f8\u304d\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">use Laravel\\Socialite\\Facades\\Socialite;\n\nreturn Socialite::driver('google')\n    -&gt;scopes(['read:user', 'write:user', 'public_repo'])\n    -&gt;redirect();\n\nreturn Socialite::driver('google')\n    -&gt;setScopes(['read:user', 'public_repo'])\n    -&gt;redirect();<\/code><\/pre>\n<p>\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u5f8c\u306b\u30e6\u30fc\u30b6\u30fc\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\u304c\u308f\u304b\u3063\u305f\u3068\u3053\u308d\u3067\u3001\u53d6\u5f97\u3067\u304d\u308b\u30c7\u30fc\u30bf\u3092\u898b\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>OAuth1 User\u306b\u306f\u3001<code>token<\/code>\u3068<code>tokenSecret<\/code>\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">$user = Socialite::driver('google')-&gt;user();\n\n$token = $user-&gt;token;\n$tokenSecret = $user-&gt;tokenSecret;<\/code><\/pre>\n<p>OAuth2\u306b\u306f\u3001<code>token<\/code>\u3001<code>refreshToken<\/code>\u3001<code>expiresIn<\/code>\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">$user = Socialite::driver('google')-&gt;user();\n\n$token = $user-&gt;token;\n$refreshToken = $user-&gt;refreshToken;\n$expiresIn = $user-&gt;expiresIn;<\/code><\/pre>\n<p>OAuth1\u306b\u3082OAuth2\u306b\u3082\u3001<code>getId<\/code>\u3001<code>getNickname<\/code>\u3001<code>getName<\/code>\u3001<code>getEmail<\/code>\u3001<code>getAvatar<\/code>\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">$user = Socialite::driver('google')-&gt;user();\n\n$user-&gt;getId();\n$user-&gt;getNickName();\n$user-&gt;getName();\n$user-&gt;getEmail();\n$user-&gt;getAvatar();<\/code><\/pre>\n<p>Socialite\u306b\u306f\u30c8\u30fc\u30af\u30f3\uff08OAuth 2\uff09\u3001\u307e\u305f\u306f\u30c8\u30fc\u30af\u30f3\u3068\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\uff08OAuth 1\uff09\u304b\u3089\u30e6\u30fc\u30b6\u30fc\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b2\u3064\u306e\u30e1\u30bd\u30c3\u30c9\u3001<code>userFromToken<\/code>\u3068<code>userFromTokenAndSecret<\/code>\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">use Laravel\\Socialite\\Facades\\Socialite;\n\n$user = Socialite::driver('google')-&gt;userFromToken($token);\n$user = Socialite::driver('twitter')-&gt;userFromTokenAndSecret($token, $secret);<\/code><\/pre>\n<h2>Laravel Sanctum<\/h2>\n<p>Laravel Sanctum\u306f\u3001SPA\uff08\u30b7\u30f3\u30b0\u30eb\u30da\u30fc\u30b8\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\uff09\u3084\u30e2\u30d0\u30a4\u30eb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5411\u3051\u306e\u8efd\u91cf\u306a\u8a8d\u8a3c\u30b7\u30b9\u30c6\u30e0\u3002\u7279\u5b9a\u306e\u30b9\u30b3\u30fc\u30d7\u3092\u6301\u3064\u8907\u6570\u306eAPI\u30c8\u30fc\u30af\u30f3\u3092\u751f\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30b9\u30b3\u30fc\u30d7\u306f\u3001\u30c8\u30fc\u30af\u30f3\u306b\u3088\u3063\u3066\u8a31\u53ef\u3055\u308c\u308b\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<h3>\u4f7f\u7528\u65b9\u6cd5<\/h3>\n<p>Sanctum\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001OAuth\u306e\u3088\u3046\u306a\u8907\u96d1\u306a\u624b\u7d9a\u304d\u306a\u3057\u3067\u3001\u30e6\u30fc\u30b6\u30fc\u306bAPI\u30c8\u30fc\u30af\u30f3\u3092\u767a\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30c8\u30fc\u30af\u30f3\u306e\u6709\u52b9\u671f\u9650\u306f\u3001\u901a\u5e38\u5e74\u5358\u4f4d\u3068\u9577\u671f\u7684\u3067\u3059\u304c\u3001\u3044\u3064\u3067\u3082\u53d6\u308a\u6d88\u3057\u3066\u518d\u751f\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7<\/h3>\n<p>Sanctum\u306fComposer\u3092\u4f7f\u7528\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">composer require laravel\/sanctum<\/code><\/pre>\n<p>\u6b21\u306b\u3001\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u3068\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u30d5\u30a1\u30a4\u30eb\u3092\u516c\u958b\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-bash\">php artisan vendor:publish --provider=\"Laravel\\Sanctum\\SanctumServiceProvider\"<\/code><\/pre>\n<p>\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u30d5\u30a1\u30a4\u30eb\u3092\u751f\u6210\u3067\u304d\u305f\u306e\u3067\u3001\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-bash\">php artisan migrate:fresh<\/code><\/pre>\n<h3>API\u30c8\u30fc\u30af\u30f3\u306e\u767a\u884c\u65b9\u6cd5<\/h3>\n<p>\u30c8\u30fc\u30af\u30f3\u3092\u767a\u884c\u3059\u308b\u524d\u306b\u3001User\u30e2\u30c7\u30eb\u306f<strong>Laravel\\Sanctum\\HasApiTokens<\/strong>\u30c8\u30ec\u30a4\u30c8\u3092\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">use Laravel\\Sanctum\\HasApiTokens;\n\nclass User extends Authenticable\n{\n    use HasApiTokens;\n}<\/code><\/pre>\n<p>\u30e6\u30fc\u30b6\u30fc\u3092\u53d6\u5f97\u3057\u305f\u3089\u3001\u30c8\u30fc\u30af\u30f3\u3092\u767a\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<code>createToken<\/code>\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3059\u3068\u3001<strong>Laravel\\Sanctum\\NewAccessToken<\/strong>\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304c\u8fd4\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><strong>NewAccessToken<\/strong>\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3067<code>plainTextToken<\/code>\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3059\u3068\u3001\u30c8\u30fc\u30af\u30f3\u306e<strong>SHA-256<\/strong>\u30d7\u30ec\u30fc\u30f3\u30c6\u30ad\u30b9\u30c8\u5024\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<h2>Laravel\u306e\u8a8d\u8a3c\u306b\u307e\u3064\u308f\u308b\u30d2\u30f3\u30c8\u3068\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9<\/h2>\n<h3>\u4ed6\u306e\u30c7\u30d0\u30a4\u30b9\u3067\u3082\u30bb\u30c3\u30b7\u30e7\u30f3\u3092\u7121\u52b9\u306b\u3059\u308b<\/h3>\n<p>\u524d\u8ff0\u3057\u305f\u3088\u3046\u306b\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u30ed\u30b0\u30a2\u30a6\u30c8\u3057\u305f\u969b\u3001\u30bb\u30c3\u30b7\u30e7\u30f3\u3092\u7121\u52b9\u5316\u3059\u308b\u3053\u3068\u306f\u91cd\u8981\u3067\u3059\u304c\u3001\u3053\u308c\u306f\u6240\u6709\u3059\u308b\u3059\u3079\u3066\u306e\u30c7\u30d0\u30a4\u30b9\u306b\u3064\u3044\u3066\u3082\u540c\u69d8\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u6a5f\u80fd\u306f\u901a\u5e38\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5909\u66f4\u3001\u66f4\u65b0\u3057\u305f\u969b\u3001\u4ed6\u306e\u30c7\u30d0\u30a4\u30b9\u304b\u3089\u306e\u30bb\u30c3\u30b7\u30e7\u30f3\u3092\u7121\u52b9\u5316\u3057\u307e\u3059\u3002<\/p>\n<p>Auth\u30d5\u30a1\u30b5\u30fc\u30c9\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u3053\u306e\u6a5f\u80fd\u3092\u7c21\u5358\u306b\u5b9f\u88c5\u3067\u304d\u307e\u3059\u3002\u4eca\u56de\u306e\u4f8b\u306e\u30eb\u30fc\u30c8\u306b\u306f\u3001<code>auth<\/code>\u3068<code>auth.session<\/code>\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\u304c\u3042\u308b\u305f\u3081\u3001\u30d5\u30a1\u30b5\u30fc\u30c9\u306e<code>logoutOtherDevices<\/code>\u9759\u7684\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">Route::get('\/logout', [LogoutController::class, 'invoke'])\n    -&gt;middleware(['auth', 'auth.session']);\n\n<\/code><\/pre>\n<pre><code class=\"language-php\">use Illuminate\\Support\\Facades\\Auth;\n\nAuth::logoutOtherDevices($password);<\/code><\/pre>\n<h3>Auth::routes()\u306b\u3088\u308b\u69cb\u6210<\/h3>\n<p>Auth\u30d5\u30a1\u30b5\u30fc\u30c9\u306eroutes\u30e1\u30bd\u30c3\u30c9\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u8a8d\u8a3c\u306b\u5fc5\u8981\u306a\u3059\u3079\u3066\u306e\u30eb\u30fc\u30c8\u3092\u751f\u6210\u3059\u308b\u30d8\u30eb\u30d1\u30fc\u306b\u904e\u304e\u307e\u305b\u3093\u3002<\/p>\n<p>\u30eb\u30fc\u30c8\u306b\u306f\u3001Login\uff08Get\u3001Post\uff09\u3001Logout\uff08Post\uff09\u3001Register\uff08Get\u3001Post\uff09\u3001Password Reset\/Email\uff08Get\u3001Post\uff09\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u30d5\u30a1\u30b5\u30fc\u30c9\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3059\u3068\u3001\u6b21\u306e\u3088\u3046\u306a\u51e6\u7406\u304c\u884c\u308f\u308c\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">public static function routes(array $options = [])\n{\n    if (!static::$app-&gt;providerIsLoaded(UiServiceProvider::class)) {\n        throw new RuntimeException('In order to use the Auth:;routes() method, please install the laravel\/ui package.');\n    }\n   \n    static::$app-&gt;make('router')-&gt;auth($options);\n}<\/code><\/pre>\n<p>\u3067\u306f\u3001\u30eb\u30fc\u30bf\u30fc\u4e0a\u3067\u9759\u7684\u30e1\u30bd\u30c3\u30c9\u304c\u547c\u3073\u51fa\u3055\u308c\u308b\u3068\u3001\u3069\u3046\u306a\u308b\u306e\u3067\u3057\u3087\u3046\u304b\u3002\u30d5\u30a1\u30b5\u30fc\u30c9\u306e\u52d5\u304d\u306e\u305f\u3081\u5c11\u3005\u8907\u96d1\u3067\u3059\u304c\u3001\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">\/**\nRegister the typical authentication routes for an application.\n\n@param array $options\n@return void\n*\/\npublic function auth(array $options = [])\n{\n    \/\/ Authentication Routes...\n    $this-&gt;get('login', 'Auth\\LoginController@showLoginForm')-&gt;name('login');\n    $this-&gt;post('login', 'Auth\\LoginController@login');\n    $this-&gt;post('logout', 'Auth\\LoginController@logout')-&gt;name('logout');\n\n    \/\/ Registration Routes...\n    if ($options['register'] ?? true) {\n        $this-&gt;get('register', 'Auth\\RegisterController@showRegistrationForm')-&gt;name('register');\n        $this-&gt;post('register', 'Auth\\RegisterController@register');\n    }\n   \n    \/\/ Password Reset Routes...\n    if ($options['reset'] ?? true) {\n        $this-&gt;resetPassword();\n    }\n\n    \/\/ Email Verification Routes...\n    if ($options['verify'] ?? false) {\n        $this-&gt;emailVerification();\n    }\n}   <\/code><\/pre>\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3001\u30e1\u30fc\u30eb\u691c\u8a3c\u30eb\u30fc\u30c8\u4ee5\u5916\u306e\u3059\u3079\u3066\u306e\u30eb\u30fc\u30c8\u304c\u751f\u6210\u3055\u308c\u307e\u3059\u3002\u30ed\u30b0\u30a4\u30f3\u3068\u30ed\u30b0\u30a2\u30a6\u30c8\u306e\u30eb\u30fc\u30c8\u306f\u5e38\u306b\u751f\u6210\u3055\u308c\u307e\u3059\u304c\u3001\u305d\u306e\u4ed6\u306e\u30eb\u30fc\u30c8\u306f\u30aa\u30d7\u30b7\u30e7\u30f3\u914d\u5217\u3067\u5236\u5fa1\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30ed\u30b0\u30a4\u30f3\u3001\u30ed\u30b0\u30a2\u30a6\u30c8\u3001\u767b\u9332\u3060\u3051\u3092\u884c\u3046\u306b\u306f\u3001\u6b21\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u914d\u5217\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">$options = [\"register\" =&gt; true, \"reset\" =&gt; false, \"verify\" =&gt; false];<\/code><\/pre>\n<h3>\u30eb\u30fc\u30c8\u306e\u4fdd\u8b77\u3068\u30ab\u30b9\u30bf\u30e0\u30ac\u30fc\u30c9<\/h3>\n<p>\u8a8d\u8a3c\u3055\u308c\u305f\u30e6\u30fc\u30b6\u30fc\u306e\u307f\u304c\u7279\u5b9a\u306e\u30eb\u30fc\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u306b\u306f\u3001Route\u30d5\u30a1\u30b5\u30fc\u30c9\u3067\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3059\u304b\u3001\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\u30e1\u30bd\u30c3\u30c9\u3092\u30c1\u30a7\u30fc\u30f3\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">Route::middleware('auth')-&gt;get('\/user', function (Request $request) {\n    return $request-&gt;user();\n});\n\nRoute::get('\/user', function (Request $request) {\n    return $request-&gt;user();\n})-&gt;middleware('auth');<\/code><\/pre>\n<p>\u3053\u306e\u30ac\u30fc\u30c9\u306f\u3001\u5230\u7740\u3057\u305f\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u8a8d\u8a3c\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u4fdd\u8a3c\u3057\u307e\u3059\u3002<\/p>\n<h3>\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u78ba\u8a8d<\/h3>\n<p><a href=\"https:\/\/kinsta.com\/blog\/website-security-check\/\">\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3<\/a>\u5f37\u5316\u306e\u305f\u3081\u3001\u4ed6\u306e\u30bf\u30b9\u30af\u306b\u9032\u3080\u524d\u306b\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u78ba\u8a8d\u3057\u305f\u3044\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u51e6\u7406\u3059\u308b\u306b\u306f\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u78ba\u8a8d\u30d3\u30e5\u30fc\u304b\u3089\u30eb\u30fc\u30c8\u3092\u5b9a\u7fa9\u3057\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002\u3053\u306e\u30eb\u30fc\u30c8\u306f\u30e6\u30fc\u30b6\u30fc\u3092\u691c\u8a3c\u3057\u3001\u76ee\u7684\u5730\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3057\u307e\u3059\u3002\u540c\u6642\u306b\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u30bb\u30c3\u30b7\u30e7\u30f3\u3067\u78ba\u8a8d\u3055\u308c\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u30013\u6642\u9593\u3054\u3068\u306b\u518d\u78ba\u8a8d\u3055\u308c\u307e\u3059\u304c\u3001\u3053\u308c\u306f<strong>config\/auth.php<\/strong>\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3067\u5909\u66f4\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<pre><code class=\"language-php\">use Illuminate\\Http\\Request;\nuse Illuminate\\Support\\Facades\\Hash;\nuse Illuminate\\Support\\Facades\\Redirect;\n\nRoute::post('\/confirm-password', function (Request $request) {\n    if (!Hash::check($request-&gt;password, $request-&gt;user()-&gt;password)) {\n        return back()-&gt;withErrors([\n            'password' =&gt; ['The provided password does not match our records.']\n        ]);\n    }\n\n    $request-&gt;session()-&gt;passwordConfirmed();\n\n    return redirect()-&gt;intended();\n})-&gt;middleware(['auth']);<\/code><\/pre>\n<h3>Authenticable\u30b3\u30f3\u30c8\u30e9\u30af\u30c8<\/h3>\n<p>Illuminate\\Contracts\\Auth\u306b\u3042\u308bAuthenticable\u30b3\u30f3\u30c8\u30e9\u30af\u30c8\u306f\u3001UserProvider\u30d5\u30a1\u30b5\u30fc\u30c9\u304c\u5b9f\u88c5\u3059\u308b\u3072\u306a\u5f62\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">namespace Illuminate\\Contracts\\Auth;\n\ninterface Authenticable \n{\n    public function getAuthIdentifierName();\n    \n    public function getAuthIdentifier();\n    \n    public function getAuthPassord();\n  \n    public function getRememberToken();\n\n    public function setRememberToken($value);\n  \n    public function getrememberTokenName();\n}<\/code><\/pre>\n<p>\u8a8d\u8a3c\u30b7\u30b9\u30c6\u30e0\u306f\u3001\u3053\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u5b9f\u88c5\u3057\u305f\u4efb\u610f\u306e\u300c\u30e6\u30fc\u30b6\u30fc\u300d\u30af\u30e9\u30b9\u3068\u9023\u643a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u9023\u643a\u306f\u3001\u3069\u306eORM\u3084\u30b9\u30c8\u30ec\u30fc\u30b8\u30ec\u30a4\u30e4\u30fc\u304c\u4f7f\u308f\u308c\u3066\u3044\u308b\u304b\u306b\u95a2\u4fc2\u306a\u304f\u4fdd\u6301\u3055\u308c\u307e\u3059\u3002Laravel\u306b\u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u3053\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u5b9f\u88c5\u3059\u308bApp\\Models\\User\u304c\u3042\u308a\u3001\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u5185\u3067\u3082\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">return [\n    'providers' =&gt; [\n        'users' =&gt; [\n            'driver' =&gt; 'eloquent',\n            'model' =&gt; App\\Models\\User::class,\n        ],\n     ],\n];<\/code><\/pre>\n<h3>\u8a8d\u8a3c\u30a4\u30d9\u30f3\u30c8<\/h3>\n<p>\u8a8d\u8a3c\u30d7\u30ed\u30bb\u30b9\u3092\u901a\u3058\u3066\u9001\u3089\u308c\u308b\u30a4\u30d9\u30f3\u30c8\u306f\u3001\u591a\u6570\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u76ee\u7684\u306b\u5fdc\u3058\u3066\u3001<code>EventServiceProvider<\/code>\u5185\u306e\u30a4\u30d9\u30f3\u30c8\u306b\u30ea\u30b9\u30ca\u30fc\u3092\u63a5\u7d9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<figure style=\"width: 1003px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/kinsta.com\/wp-content\/uploads\/2022\/10\/Laravel-Listeners.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2022\/10\/Laravel-Listeners.png\" alt=\"\u8a8d\u8a3c\u30b5\u30fc\u30d3\u30b9\u7528\u306b\u751f\u6210\u3055\u308c\u305fLaravel\u30ea\u30b9\u30ca\u30fc\u4e00\u89a7\" width=\"1003\" height=\"1999\"><\/a><figcaption class=\"wp-caption-text\">\u8a8d\u8a3c\u30b5\u30fc\u30d3\u30b9\u7528\u306b\u751f\u6210\u3055\u308c\u305fLaravel\u30ea\u30b9\u30ca\u30fc\u4e00\u89a7<\/figcaption><\/figure>\n<h3>\u30b7\u30f3\u30d7\u30eb\u306a\u30e6\u30fc\u30b6\u30fc\u4f5c\u6210<\/h3>\n<p>\u65b0\u898f\u30e6\u30fc\u30b6\u30fc\u3092\u7d20\u65e9\u304f\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001<strong>App\\User<\/strong>\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">$user = new App\\User();\n$user-&gt;password = Hash::make('strong_password');\n$user-&gt;email = 'test-email@user.com';\n$user-&gt;name = 'Username';\n$user-&gt;save();<\/code><\/pre>\n<p>\u307e\u305f\u306f\u3001User\u30d5\u30a1\u30b5\u30fc\u30c9\u306ecreate\u9759\u7684\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-php\">User::create([\n 'password' =&gt; Hash::make('strong-password'),\n 'email' =&gt; 'test-email@user.com',\n 'name' =&gt; 'username'\n]);<\/code><\/pre>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>Laravel\u30a8\u30b3\u30b7\u30b9\u30c6\u30e0\u306b\u306f\u3001Breeze\u3084Jetstream\u306e\u3088\u3046\u306a\u3001\u8a8d\u8a3c\u30b7\u30b9\u30c6\u30e0\u3092\u4f7f\u7528\u3057\u305f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u958b\u767a\u3001\u7a3c\u50cd\u3092\u652f\u63f4\u3059\u308b\u3001\u591a\u6570\u306e\u30b9\u30bf\u30fc\u30bf\u30fc\u30ad\u30c3\u30c8\u304c\u3042\u308a\u307e\u3059\u3002\u958b\u767a\u8005\u5074\u306b\u30b3\u30fc\u30c9\u304c\u751f\u6210\u3055\u308c\u308b\u305f\u3081\u3001\u9ad8\u5ea6\u306a\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u304c\u53ef\u80fd\u306b\u306a\u308a\u3001\u5fc5\u8981\u3067\u3042\u308c\u3070\u3072\u306a\u5f62\u3068\u3057\u3066\u4f7f\u7528\u3057\u3066\u3001\u81ea\u7531\u306b\u7de8\u96c6\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u8a8d\u8a3c\u65b9\u5f0f\u3084\u305d\u306e\u5b9f\u88c5\u306e\u8907\u96d1\u3055\u306b\u306f\u3001\u591a\u304f\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u4e0a\u306e\u61f8\u5ff5\u304c\u3042\u308a\u307e\u3059\u304c\u3001Laravel\u306e\u30c4\u30fc\u30eb\u3092\u4f7f\u7528\u3059\u308c\u3070\u3001\u7c21\u5358\u306b\u89e3\u6c7a\u53ef\u80fd\u3002\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u6027\u304c\u9ad8\u304f\u3001\u4f7f\u3044\u52dd\u624b\u306b\u3082\u512a\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>Kinsta\u306e\u9ad8\u901fLaravel\u30b5\u30fc\u30d0\u30fc\u3067\u306f\u3001Laravel\u30a2\u30d7\u30ea\u3092\u52b9\u7387\u7684\u306b\u516c\u958b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u307e\u305a\u306f<a href=\"https:\/\/kinsta.com\/jp\/signup\/?product_type=app-db\">\u7121\u6599\u5229\u7528\u67a0<\/a>\u3067\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u52d5\u4f5c\u3092\u304a\u78ba\u304b\u3081\u304f\u3060\u3055\u3044<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Laravel\u306e\u8a8d\u8a3c\u306f\u3001\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u304a\u3044 &#8230;<\/p>\n","protected":false},"author":267,"featured_media":44070,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kinsta_gated_content":false,"_kinsta_gated_content_redirect":"","footnotes":""},"tags":[],"topic":[784],"class_list":["post-44069","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","topic-laravel"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v24.6 (Yoast SEO v24.6) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Laravel\u306e\u8a8d\u8a3c\u6a5f\u80fd\u3092\u5fb9\u5e95\u89e3\u8aac<\/title>\n<meta name=\"description\" content=\"Laravel\u306e\u8a8d\u8a3c\u6a5f\u80fd\u3092\u4f7f\u3063\u3066\u3001\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u6b21\u306e\u30ec\u30d9\u30eb\u3078\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u3092\u542b\u3081\u3001\u5b89\u5168\u306a\u30a2\u30af\u30bb\u30b9\u3092\u8a31\u53ef\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/kinsta.com\/jp\/blog\/laravel-authentication\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Laravel\u306e\u8a8d\u8a3c\u6a5f\u80fd\u3092\u5fb9\u5e95\u89e3\u8aac\" \/>\n<meta property=\"og:description\" content=\"Laravel\u306e\u8a8d\u8a3c\u6a5f\u80fd\u3092\u4f7f\u3063\u3066\u3001\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u6b21\u306e\u30ec\u30d9\u30eb\u3078\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u3092\u542b\u3081\u3001\u5b89\u5168\u306a\u30a2\u30af\u30bb\u30b9\u3092\u8a31\u53ef\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kinsta.com\/jp\/blog\/laravel-authentication\/\" \/>\n<meta property=\"og:site_name\" content=\"Kinsta\u00ae\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-09-16T13:42:34+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-09-01T15:52:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/03\/laravel-queue.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1460\" \/>\n\t<meta property=\"og:image:height\" content=\"730\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Coman Cosmin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:description\" content=\"Laravel\u306e\u8a8d\u8a3c\u6a5f\u80fd\u3092\u4f7f\u3063\u3066\u3001\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u6b21\u306e\u30ec\u30d9\u30eb\u3078\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u3092\u542b\u3081\u3001\u5b89\u5168\u306a\u30a2\u30af\u30bb\u30b9\u3092\u8a31\u53ef\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/03\/laravel-queue.jpg\" \/>\n<meta name=\"twitter:creator\" content=\"@Kinsta_JP\" \/>\n<meta name=\"twitter:site\" content=\"@Kinsta_JP\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"Coman Cosmin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"7\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/laravel-authentication\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/laravel-authentication\/\"},\"author\":{\"name\":\"Coman Cosmin\",\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/person\/aa307e51da3929c7aead1f4b4439f3da\"},\"headline\":\"Laravel\u306e\u8a8d\u8a3c\u6a5f\u80fd\u3092\u5fb9\u5e95\u89e3\u8aac\",\"datePublished\":\"2023-09-16T13:42:34+00:00\",\"dateModified\":\"2025-09-01T15:52:12+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/laravel-authentication\/\"},\"wordCount\":236,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/kinsta.com\/jp\/#organization\"},\"image\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/laravel-authentication\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/03\/laravel-queue.jpg\",\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/kinsta.com\/jp\/blog\/laravel-authentication\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/laravel-authentication\/\",\"url\":\"https:\/\/kinsta.com\/jp\/blog\/laravel-authentication\/\",\"name\":\"Laravel\u306e\u8a8d\u8a3c\u6a5f\u80fd\u3092\u5fb9\u5e95\u89e3\u8aac\",\"isPartOf\":{\"@id\":\"https:\/\/kinsta.com\/jp\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/laravel-authentication\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/laravel-authentication\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/03\/laravel-queue.jpg\",\"datePublished\":\"2023-09-16T13:42:34+00:00\",\"dateModified\":\"2025-09-01T15:52:12+00:00\",\"description\":\"Laravel\u306e\u8a8d\u8a3c\u6a5f\u80fd\u3092\u4f7f\u3063\u3066\u3001\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u6b21\u306e\u30ec\u30d9\u30eb\u3078\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u3092\u542b\u3081\u3001\u5b89\u5168\u306a\u30a2\u30af\u30bb\u30b9\u3092\u8a31\u53ef\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/laravel-authentication\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/kinsta.com\/jp\/blog\/laravel-authentication\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/laravel-authentication\/#primaryimage\",\"url\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/03\/laravel-queue.jpg\",\"contentUrl\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/03\/laravel-queue.jpg\",\"width\":1460,\"height\":730},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/laravel-authentication\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/kinsta.com\/jp\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Laravel\",\"item\":\"https:\/\/kinsta.com\/jp\/topics\/laravel\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Laravel\u306e\u8a8d\u8a3c\u6a5f\u80fd\u3092\u5fb9\u5e95\u89e3\u8aac\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/kinsta.com\/jp\/#website\",\"url\":\"https:\/\/kinsta.com\/jp\/\",\"name\":\"Kinsta\u00ae\",\"description\":\"\u9ad8\u901f\u304b\u3064\u5805\u7262\u306a\u30d7\u30ec\u30df\u30a2\u30e0\u30b5\u30fc\u30d0\u30fc\u30b5\u30fc\u30d3\u30b9\",\"publisher\":{\"@id\":\"https:\/\/kinsta.com\/jp\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/kinsta.com\/jp\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/kinsta.com\/jp\/#organization\",\"name\":\"Kinsta\",\"url\":\"https:\/\/kinsta.com\/jp\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg\",\"contentUrl\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg\",\"width\":500,\"height\":500,\"caption\":\"Kinsta\"},\"image\":{\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/\",\"https:\/\/x.com\/Kinsta_JP\",\"https:\/\/www.instagram.com\/kinstahosting\/\",\"https:\/\/www.linkedin.com\/company\/kinsta\/\",\"https:\/\/www.pinterest.com\/kinstahosting\/\",\"https:\/\/www.youtube.com\/c\/Kinsta\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/person\/aa307e51da3929c7aead1f4b4439f3da\",\"name\":\"Coman Cosmin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ede71ae86b38c64bcf00417fd17a686b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ede71ae86b38c64bcf00417fd17a686b?s=96&d=mm&r=g\",\"caption\":\"Coman Cosmin\"},\"description\":\"Cosmin Coman is a technology writer and developer with over 3 years of experience. Apart from writing for Kinsta, he has assisted in research at nuclear physics facilities and universities. Tech-savvy and integrated into the community, he always comes up with innovative solutions.\",\"url\":\"https:\/\/kinsta.com\/jp\/blog\/author\/comancosmin\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Laravel\u306e\u8a8d\u8a3c\u6a5f\u80fd\u3092\u5fb9\u5e95\u89e3\u8aac","description":"Laravel\u306e\u8a8d\u8a3c\u6a5f\u80fd\u3092\u4f7f\u3063\u3066\u3001\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u6b21\u306e\u30ec\u30d9\u30eb\u3078\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u3092\u542b\u3081\u3001\u5b89\u5168\u306a\u30a2\u30af\u30bb\u30b9\u3092\u8a31\u53ef\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/kinsta.com\/jp\/blog\/laravel-authentication\/","og_locale":"ja_JP","og_type":"article","og_title":"Laravel\u306e\u8a8d\u8a3c\u6a5f\u80fd\u3092\u5fb9\u5e95\u89e3\u8aac","og_description":"Laravel\u306e\u8a8d\u8a3c\u6a5f\u80fd\u3092\u4f7f\u3063\u3066\u3001\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u6b21\u306e\u30ec\u30d9\u30eb\u3078\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u3092\u542b\u3081\u3001\u5b89\u5168\u306a\u30a2\u30af\u30bb\u30b9\u3092\u8a31\u53ef\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002","og_url":"https:\/\/kinsta.com\/jp\/blog\/laravel-authentication\/","og_site_name":"Kinsta\u00ae","article_publisher":"https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/","article_published_time":"2023-09-16T13:42:34+00:00","article_modified_time":"2025-09-01T15:52:12+00:00","og_image":[{"width":1460,"height":730,"url":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/03\/laravel-queue.jpg","type":"image\/jpeg"}],"author":"Coman Cosmin","twitter_card":"summary_large_image","twitter_description":"Laravel\u306e\u8a8d\u8a3c\u6a5f\u80fd\u3092\u4f7f\u3063\u3066\u3001\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u6b21\u306e\u30ec\u30d9\u30eb\u3078\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u3092\u542b\u3081\u3001\u5b89\u5168\u306a\u30a2\u30af\u30bb\u30b9\u3092\u8a31\u53ef\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002","twitter_image":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/03\/laravel-queue.jpg","twitter_creator":"@Kinsta_JP","twitter_site":"@Kinsta_JP","twitter_misc":{"\u57f7\u7b46\u8005":"Coman Cosmin","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"7\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kinsta.com\/jp\/blog\/laravel-authentication\/#article","isPartOf":{"@id":"https:\/\/kinsta.com\/jp\/blog\/laravel-authentication\/"},"author":{"name":"Coman Cosmin","@id":"https:\/\/kinsta.com\/jp\/#\/schema\/person\/aa307e51da3929c7aead1f4b4439f3da"},"headline":"Laravel\u306e\u8a8d\u8a3c\u6a5f\u80fd\u3092\u5fb9\u5e95\u89e3\u8aac","datePublished":"2023-09-16T13:42:34+00:00","dateModified":"2025-09-01T15:52:12+00:00","mainEntityOfPage":{"@id":"https:\/\/kinsta.com\/jp\/blog\/laravel-authentication\/"},"wordCount":236,"commentCount":0,"publisher":{"@id":"https:\/\/kinsta.com\/jp\/#organization"},"image":{"@id":"https:\/\/kinsta.com\/jp\/blog\/laravel-authentication\/#primaryimage"},"thumbnailUrl":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/03\/laravel-queue.jpg","inLanguage":"ja","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/kinsta.com\/jp\/blog\/laravel-authentication\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/kinsta.com\/jp\/blog\/laravel-authentication\/","url":"https:\/\/kinsta.com\/jp\/blog\/laravel-authentication\/","name":"Laravel\u306e\u8a8d\u8a3c\u6a5f\u80fd\u3092\u5fb9\u5e95\u89e3\u8aac","isPartOf":{"@id":"https:\/\/kinsta.com\/jp\/#website"},"primaryImageOfPage":{"@id":"https:\/\/kinsta.com\/jp\/blog\/laravel-authentication\/#primaryimage"},"image":{"@id":"https:\/\/kinsta.com\/jp\/blog\/laravel-authentication\/#primaryimage"},"thumbnailUrl":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/03\/laravel-queue.jpg","datePublished":"2023-09-16T13:42:34+00:00","dateModified":"2025-09-01T15:52:12+00:00","description":"Laravel\u306e\u8a8d\u8a3c\u6a5f\u80fd\u3092\u4f7f\u3063\u3066\u3001\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u6b21\u306e\u30ec\u30d9\u30eb\u3078\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u3092\u542b\u3081\u3001\u5b89\u5168\u306a\u30a2\u30af\u30bb\u30b9\u3092\u8a31\u53ef\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/kinsta.com\/jp\/blog\/laravel-authentication\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kinsta.com\/jp\/blog\/laravel-authentication\/"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/kinsta.com\/jp\/blog\/laravel-authentication\/#primaryimage","url":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/03\/laravel-queue.jpg","contentUrl":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/03\/laravel-queue.jpg","width":1460,"height":730},{"@type":"BreadcrumbList","@id":"https:\/\/kinsta.com\/jp\/blog\/laravel-authentication\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/kinsta.com\/jp\/"},{"@type":"ListItem","position":2,"name":"Laravel","item":"https:\/\/kinsta.com\/jp\/topics\/laravel\/"},{"@type":"ListItem","position":3,"name":"Laravel\u306e\u8a8d\u8a3c\u6a5f\u80fd\u3092\u5fb9\u5e95\u89e3\u8aac"}]},{"@type":"WebSite","@id":"https:\/\/kinsta.com\/jp\/#website","url":"https:\/\/kinsta.com\/jp\/","name":"Kinsta\u00ae","description":"\u9ad8\u901f\u304b\u3064\u5805\u7262\u306a\u30d7\u30ec\u30df\u30a2\u30e0\u30b5\u30fc\u30d0\u30fc\u30b5\u30fc\u30d3\u30b9","publisher":{"@id":"https:\/\/kinsta.com\/jp\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kinsta.com\/jp\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/kinsta.com\/jp\/#organization","name":"Kinsta","url":"https:\/\/kinsta.com\/jp\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/kinsta.com\/jp\/#\/schema\/logo\/image\/","url":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg","contentUrl":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg","width":500,"height":500,"caption":"Kinsta"},"image":{"@id":"https:\/\/kinsta.com\/jp\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/","https:\/\/x.com\/Kinsta_JP","https:\/\/www.instagram.com\/kinstahosting\/","https:\/\/www.linkedin.com\/company\/kinsta\/","https:\/\/www.pinterest.com\/kinstahosting\/","https:\/\/www.youtube.com\/c\/Kinsta"]},{"@type":"Person","@id":"https:\/\/kinsta.com\/jp\/#\/schema\/person\/aa307e51da3929c7aead1f4b4439f3da","name":"Coman Cosmin","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/kinsta.com\/jp\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ede71ae86b38c64bcf00417fd17a686b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ede71ae86b38c64bcf00417fd17a686b?s=96&d=mm&r=g","caption":"Coman Cosmin"},"description":"Cosmin Coman is a technology writer and developer with over 3 years of experience. Apart from writing for Kinsta, he has assisted in research at nuclear physics facilities and universities. Tech-savvy and integrated into the community, he always comes up with innovative solutions.","url":"https:\/\/kinsta.com\/jp\/blog\/author\/comancosmin\/"}]}},"acf":[],"_links":{"self":[{"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/posts\/44069","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/users\/267"}],"replies":[{"embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/comments?post=44069"}],"version-history":[{"count":12,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/posts\/44069\/revisions"}],"predecessor-version":[{"id":66098,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/posts\/44069\/revisions\/66098"}],"alternate":[{"embeddable":true,"hreflang":"en","title":"English","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/44069\/translations\/en"},{"embeddable":true,"hreflang":"it","title":"Italian","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/44069\/translations\/it"},{"embeddable":true,"hreflang":"pt","title":"Portuguese","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/44069\/translations\/pt"},{"embeddable":true,"hreflang":"fr","title":"French","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/44069\/translations\/fr"},{"embeddable":true,"hreflang":"de","title":"German","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/44069\/translations\/de"},{"embeddable":true,"hreflang":"ja","title":"Japanese","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/44069\/translations\/jp"},{"embeddable":true,"hreflang":"nl","title":"Dutch","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/44069\/translations\/nl"},{"embeddable":true,"hreflang":"es","title":"Spanish","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/44069\/translations\/es"},{"embeddable":true,"hreflang":"sv","title":"Swedish","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/44069\/translations\/se"},{"embeddable":true,"hreflang":"da","title":"Danish","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/44069\/translations\/dk"},{"href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/44069\/tree"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/media\/44070"}],"wp:attachment":[{"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/media?parent=44069"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/tags?post=44069"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/topic?post=44069"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}