{"id":4942,"date":"2019-11-13T00:12:48","date_gmt":"2019-11-12T15:12:48","guid":{"rendered":"https:\/\/blog.capilano-fw.com\/?p=4942"},"modified":"2020-10-22T23:11:32","modified_gmt":"2020-10-22T14:11:32","slug":"%e3%80%90laravel%e3%80%91%e3%83%a1%e3%83%bc%e3%83%ab%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%9f%ef%bc%92%e6%ae%b5%e9%9a%8e%e8%aa%8d%e8%a8%bc%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=4942","title":{"rendered":"\u3010Laravel\u3011\u30e1\u30fc\u30eb\u3092\u4f7f\u3063\u305f\uff12\u6bb5\u968e\u8a8d\u8a3c\u3092\u5b9f\u88c5\u3059\u308b"},"content":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u524d\u56de\u8a18\u4e8b\u3067\u306f\u300c\u81ea\u7531\u7814\u7a76\u300d\u7684\u306a\u8a18\u4e8b\u3092\u516c\u958b\u3055\u305b\u3066\u3082\u3089\u3063\u305f\u306e\u3067\u3001\u4eca\u56de\u306f\u901a\u5e38\u901a\u308a\u306e\u6d41\u308c\u306b\u623b\u3057\u3066<code>Laravel<\/code>\u306e\u8a71\u984c\u3092\u304a\u5c4a\u3051\u3057\u307e\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001\u4eca\u56de\u306e\u8a71\u984c\u306f\u6570\u30ab\u6708\u307b\u3069\u524d\u306b\u601d\u3044\u3064\u3044\u305f\u3082\u306e\u3067\u3059\u304c\u3001\u5b9f\u306f\u300c\u3042\u308b\u9593\u3092\u9a12\u304c\u305b\u305f\u300d\u3042\u308b\u6c7a\u6e08\u7cfb\u30b5\u30fc\u30d3\u30b9\u306e\u30cb\u30e5\u30fc\u30b9\u304c\u5143\u306b\u306a\u3063\u3066\u3044\u305f\u306e\u3067\u3001\u7686\u3055\u3093\u306b\u300c\u306f\u306f\u30fc\u3093\u3001\u3042\u306e\u30cb\u30e5\u30fc\u30b9\u306e\u5f71\u97ff\u3092\u53d7\u3051\u305f\u306d\ud83d\ude02\u300d\u3063\u3066\u601d\u308f\u308c\u305f\u304f\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u5c11\u3057\u3070\u304b\u308a\u5bdd\u304b\u305b\u3066\u307e\u3057\u305f\uff08\u7b11\uff09<\/p>\n<p>\u3067\u3001\u305d\u306e\u5185\u5bb9\u3068\u306f\u30ba\u30d0\u30ea\u3001<\/p>\n<p><strong style=\"font-size: 35px;\">\uff12\u6bb5\u968e\u8a8d\u8a3c<\/strong><\/p>\n<p>\u3067\u3059\u3002<\/p>\n<p>\u6bce\u65e5\u30cb\u30e5\u30fc\u30b9\u304c\u305f\u304f\u3055\u3093\u51fa\u3066\u304f\u308b\u306e\u3067\u3001\u3042\u307e\u308a\u899a\u3048\u3066\u306a\u3044\u65b9\u3082\u591a\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u3053\u306e\u6a5f\u80fd\u3092\u4f5c\u3063\u3066\u3044\u306a\u304b\u3063\u305f\u305f\u3081\u306b\u3001\u52dd\u624b\u306b\u4ed6\u4eba\u306b\u81ea\u5206\u306e\u304a\u91d1\u3092\u4f7f\u308f\u308c\u3066\u3057\u307e\u3063\u305f\u3068\u3044\u3046\u4e8b\u4ef6\u304c\u3042\u308a\u307e\u3057\u305f\u3002\u675c\u64b0\u306a\u30b7\u30b9\u30c6\u30e0\u3060\u3063\u305f\u306e\u306f\u9593\u9055\u3044\u306a\u3044\u3067\u3059\u304c\u3001\u3084\u306f\u308a\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3063\u3066\uff11\u3064\u9593\u9055\u3046\u3068\u3068\u3093\u3067\u3082\u306a\u3044\u7d50\u679c\u3092\u5f15\u304d\u8d77\u3053\u3059\u3068\u3044\u3046\u3053\u3068\u3092\u518d\u8a8d\u8b58\u3057\u305f\u51fa\u6765\u4e8b\u3067\u3057\u305f\u3002<\/p>\n<p>\u305d\u3053\u3067\uff01<\/p>\n<p>\u4eca\u56de\u306f<code>Laravel<\/code>\u3067\u30e1\u30fc\u30eb\u3092\u4f7f\u3063\u305f\uff12\u6bb5\u968e\u8a8d\u8a3c\u30b7\u30b9\u30c6\u30e0\u3092\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5\u3092\u304a\u5c4a\u3051\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u305c\u3072\u7686\u3055\u3093\u306e\u304a\u5f79\u306b\u7acb\u3066\u308b\u3068\u5b09\u3057\u3044\u3067\u3059\ud83d\ude0a\u2728<br \/>\n\uff08\u6700\u5f8c\u306b\u5b9f\u969b\u306b\u958b\u767a\u3057\u305f\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u304d\u307e\u3059\uff09<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3344 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_22.png\" alt=\"\" width=\"320\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_22.png 320w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_22-150x150.png 150w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_22-300x300.png 300w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_22-100x100.png 100w\" sizes=\"auto, (max-width: 320px) 100vw, 320px\" \/><\/p>\n<p>\u958b\u767a\u74b0\u5883\uff1a Laravel 6.x<\/p>\n<h1>\u524d\u63d0\u3068\u3057\u3066<\/h1>\n<p>\u4eca\u56de\u306e\u8a18\u4e8b\u306f\u3001<code>Laravel<\/code>\u306e\u30ed\u30b0\u30a4\u30f3\u6a5f\u80fd\u304c\u3059\u3067\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u524d\u63d0\u3068\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001\u3082\u3057\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u307e\u3060\u306e\u65b9\u306f\u4ee5\u4e0b\u3092\u53c2\u8003\u306b\u3057\u3066\u6e96\u5099\u3057\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<ul>\n<li>Laravel 6.x \u4ee5\u4e0a\u3000\u30fb\u30fb\u30fb\u3000<a href=\"https:\/\/blog.capilano-fw.com\/?p=4576\">Laravel6.0\u3067\u30ed\u30b0\u30a4\u30f3\u6a5f\u80fd\u3092\u4f7f\u3046\u65b9\u6cd5<\/a><\/li>\n<li>\u305d\u308c\u672a\u6e80\u3000\u30fb\u30fb\u30fb\u3000<a href=\"https:\/\/blog.capilano-fw.com\/?p=289\">\u3010Laravel5.6\u3011\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u76f4\u5f8c\u306b\u3084\u308b\u3053\u3068\uff13\u70b9<\/a><\/li>\n<\/ul>\n<p>\u3067\u306f\u3001\u306f\u308a\u304d\u3063\u3066\u3044\u304d\u307e\u3057\u3087\u3046\uff01<\/p>\n<h1>\uff12\u6bb5\u968e\u8a8d\u8a3c\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u3092users\u30c6\u30fc\u30d6\u30eb\u306b\u8ffd\u52a0\u3059\u308b<\/h1>\n<p>\u307e\u305a\uff12\u6bb5\u968e\u8a8d\u8a3c\u306b\u5fc5\u8981\u306a\u4ee5\u4e0b\uff12\u3064\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u3092DB\u30c6\u30fc\u30d6\u30eb<code>users<\/code>\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u30e1\u30fc\u30eb\u3067\u9001\u4fe1\u3059\u308b\uff12\u6bb5\u968e\u76ee\u306e\u30ef\u30f3\u30bf\u30a4\u30e0\u30fb\u30d1\u30b9\u30ef\u30fc\u30c9<\/li>\n<li>\u30ef\u30f3\u30bf\u30a4\u30e0\u30fb\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u6709\u52b9\u671f\u9650<\/li>\n<\/ul>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u30fb\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><strong>php artisan make:migration add_two_factor_auth_fields_to_users<\/strong><\/pre>\n<p>\u3059\u308b\u3068\u3001<code>database\/migrations\/****_**_**_******_add_two_factor_auth_fields_to_users.php<\/code>\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u306e\u3067\u3001\u958b\u3044\u3066\u4e2d\u8eab\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<pre>&lt;?php\r\n\r\nuse Illuminate\\Database\\Migrations\\Migration;\r\nuse Illuminate\\Database\\Schema\\Blueprint;\r\nuse Illuminate\\Support\\Facades\\Schema;\r\n\r\nclass AddTwoFactorAuthFieldsToUsers extends Migration\r\n{\r\n    \/**\r\n     * Run the migrations.\r\n     *\r\n     * @return void\r\n     *\/\r\n    public function up()\r\n    {\r\n        <strong>Schema::table('users', function (Blueprint $table) {<\/strong>\r\n<strong>            $table-&gt;string('tfa_token')<\/strong>\r\n<strong>                -&gt;nullable()<\/strong>\r\n<strong>                -&gt;after('remember_token');<\/strong>\r\n<strong>            $table-&gt;dateTime('tfa_expiration')<\/strong>\r\n<strong>                -&gt;nullable()<\/strong>\r\n<strong>                -&gt;after('tfa_token');<\/strong>\r\n<strong>        });<\/strong>\r\n    }\r\n\r\n    \/**\r\n     * Reverse the migrations.\r\n     *\r\n     * @return void\r\n     *\/\r\n    public function down()\r\n    {\r\n        <strong>Schema::table('users', function (Blueprint $table) {<\/strong>\r\n<strong>            $table-&gt;dropColumn('tfa_token');<\/strong>\r\n<strong>            $table-&gt;dropColumn('tfa_expiration');<\/strong>\r\n<strong>        });<\/strong>\r\n    }\r\n}<\/pre>\n<p>\u203b \u3061\u306a\u307f\u306b<code>tfa_<\/code>\u3068\u3044\u3046\u30d7\u30ea\u30d5\u30a3\u30c3\u30af\u30b9\u306f<code>two factor auth<\/code>\u306e\u7565\u3067\u3059\u3002<\/p>\n<p>\u30d5\u30a1\u30a4\u30eb\u304c\u5b8c\u6210\u3057\u305f\u3089\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u884c\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre><strong>php artisan migrate<\/strong><\/pre>\n<p>\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u304c\u5b8c\u4e86\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4945\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/11\/two_factor_auth_1.png\" alt=\"\" width=\"359\" height=\"358\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/11\/two_factor_auth_1.png 359w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/11\/two_factor_auth_1-150x150.png 150w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/11\/two_factor_auth_1-300x300.png 300w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/11\/two_factor_auth_1-100x100.png 100w\" sizes=\"auto, (max-width: 359px) 100vw, 359px\" \/><\/p>\n<h1>\u30eb\u30fc\u30c8\u3092\u3064\u304f\u308b<\/h1>\n<p>\u6b21\u306b\u30d6\u30e9\u30a6\u30b6\u3084<code>Ajax<\/code>\u3067\u30a2\u30af\u30bb\u30b9\u3059\u308bURL\u3092\u4f5c\u308a\u307e\u3059\u3002<\/p>\n<pre><strong>Route::get('two_factor_auth\/login_form', 'TwoFactorAuthController@login_form');<\/strong>\r\n<strong>Route::post('ajax\/two_factor_auth\/first_auth', 'TwoFactorAuthController@first_auth');<\/strong>\r\n<strong>Route::post('ajax\/two_factor_auth\/second_auth', 'TwoFactorAuthController@second_auth');<\/strong><\/pre>\n<p>\u4e0a\u304b\u3089\u3001<\/p>\n<ul>\n<li>\u30ed\u30b0\u30a4\u30f3\u30d5\u30a9\u30fc\u30e0<\/li>\n<li>\uff11\u6bb5\u968e\u76ee\u306e\u8a8d\u8a3c<\/li>\n<li>\uff12\u6bb5\u968e\u76ee\u306e\u8a8d\u8a3c<\/li>\n<\/ul>\n<p>\u306e\u30eb\u30fc\u30c8\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h1>\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u9001\u4fe1\u3059\u308b\u30e1\u30fc\u30eb\u6a5f\u80fd\u3092\u3064\u304f\u308b<\/h1>\n<p>\u3055\u3089\u306b\u3001\u6b21\u306e\u9805\u76ee\u3067\u5fc5\u8981\u306b\u306a\u3063\u3066\u304f\u308b\u306e\u3067\u3001\u30ef\u30f3\u30bf\u30a4\u30e0\u30fb\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u9001\u4fe1\u3059\u308b\u30e1\u30fc\u30eb\u6a5f\u80fd\u3092\u5148\u306b\u4f5c\u3063\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><strong>php artisan make:mail TwoFactorAuthPassword<\/strong><\/pre>\n<p>\u3059\u308b\u3068\u3001<code>app\/Mail\/TwoFactorAuthPassword.php<\/code>\u304c\u4f5c\u6210\u3055\u308c\u308b\u306e\u3067\u3001\u958b\u3044\u3066\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<pre>&lt;?php\r\n\r\nnamespace App\\Mail;\r\n\r\nuse Illuminate\\Bus\\Queueable;\r\nuse Illuminate\\Contracts\\Queue\\ShouldQueue;\r\nuse Illuminate\\Mail\\Mailable;\r\nuse Illuminate\\Queue\\SerializesModels;\r\n\r\nclass TwoFactorAuthPassword extends Mailable\r\n{\r\n    use Queueable, SerializesModels;\r\n\r\n    <strong>private $tfa_token = '';<\/strong>\r\n\r\n    \/**\r\n     * Create a new message instance.\r\n     *\r\n     * @return void\r\n     *\/\r\n<strong>    public function __construct($tfa_token)\r\n    {\r\n        $this-&gt;tfa_token = $tfa_token;\r\n    }<\/strong>\r\n\r\n    \/**\r\n     * Build the message.\r\n     *\r\n     * @return $this\r\n     *\/\r\n    public function build()\r\n    {\r\n        <strong>return $this-&gt;from('test@example.com', '\u30b5\u30a4\u30c8\u540d')<\/strong>\r\n<strong>            -&gt;subject('\uff12\u6bb5\u968e\u8a8d\u8a3c\u306e\u30d1\u30b9\u30ef\u30fc\u30c9')<\/strong>\r\n<strong>            -&gt;view('emails.two_factor_auth.password')<\/strong>\r\n<strong>            -&gt;with('tfa_token', $this-&gt;tfa_token);<\/strong>\r\n    }\r\n}<\/pre>\n<p><strong>\u3010\u8ffd\u8a18\uff1a2020.02.10\u3011<\/strong>\u8a2a\u554f\u30e6\u30fc\u30b6\u30fc\u69d8\u306e\u3054\u6307\u6458\u306b\u3088\u308a\u592a\u5b57\u90e8\u5206\u3092\u4fee\u6b63\u3057\u307e\u3057\u305f\u3002\u7686\u69d8\u3001\u3044\u3064\u3082\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002m_ _m<\/p>\n<p>\u305d\u3057\u3066\u3001\u307e\u3060\u30e1\u30fc\u30eb\u306e\u30d3\u30e5\u30fc\u306f\u5b58\u5728\u3057\u3066\u3044\u306a\u3044\u306e\u3067\u3001<code>resources\/views\/emails\/two_factor_auth\/password.blade.php<\/code>\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u3092\u3064\u304f\u308a\u307e\u3059\u3002<\/p>\n<p>\u4e2d\u8eab\u306f\u3053\u3046\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre><strong>\uff12\u6bb5\u968e\u8a8d\u8a3c\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u3054\u9001\u4ed8\u3057\u307e\u3059\u3002&lt;br&gt;<\/strong>\r\n\r\n<strong>\u3010\u30d1\u30b9\u30ef\u30fc\u30c9\u3011<\/strong>\r\n<strong>{{ $tfa_token }}<\/strong><\/pre>\n<p>\u3053\u308c\u3067\u3001\u3082\u3057\u30e1\u30fc\u30eb\u304c\u9001\u4fe1\u3055\u308c\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u5185\u5bb9\u304c\u9001\u4ed8\u3055\u308c\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4946\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/11\/two_factor_auth_2.png\" alt=\"\" width=\"322\" height=\"62\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/11\/two_factor_auth_2.png 322w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/11\/two_factor_auth_2-300x58.png 300w\" sizes=\"auto, (max-width: 322px) 100vw, 322px\" \/><\/p>\n<h1>\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3092\u3064\u304f\u308b<\/h1>\n<p>\u3067\u306f\u3001\uff12\u6bb5\u968e\u8a8d\u8a3c\u306e\u30e1\u30a4\u30f3\u306b\u306a\u308b\u90e8\u5206\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3092\u3064\u304f\u3063\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u306f\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3092\u3064\u304f\u308a\u307e\u3059\u3002<\/p>\n<pre><strong>php artisan make:controller TwoFactorAuthController<\/strong><\/pre>\n<p><strong>app\/Http\/Controllers\/TwoFactorAuthController.php<\/strong>\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u308b\u306e\u3067\u3001\u4e2d\u8eab\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<pre>&lt;?php\r\n\r\nnamespace App\\Http\\Controllers;\r\n\r\n<strong>use App\\Mail\\TwoFactorAuthPassword;<\/strong>\r\nuse Carbon\\Carbon;\r\nuse Illuminate\\Http\\Request;\r\n\r\nclass TwoFactorAuthController extends Controller\r\n{\r\n    <strong>public function login_form() {  \/\/ \u30ed\u30b0\u30a4\u30f3\u30d5\u30a9\u30fc\u30e0<\/strong>\r\n\r\n<strong>        return view('two_factor_auth.login_form');<\/strong>\r\n\r\n<strong>    }<\/strong>\r\n\r\n<strong>    public function first_auth(Request $request) {  \/\/ \uff11\u6bb5\u968e\u76ee\u306e\u8a8d\u8a3c<\/strong>\r\n\r\n<strong>        $credentials = $request-&gt;only('email', 'password');<\/strong>\r\n\r\n<strong>        if(\\Auth::validate($credentials)) {<\/strong>\r\n\r\n<strong>            $random_password = '';<\/strong>\r\n\r\n<strong>            for($i = 0 ; $i &lt; 4 ; $i++) {<\/strong>\r\n\r\n<strong>                $random_password .= strval(rand(0, 9));<\/strong>\r\n\r\n<strong>            }<\/strong>\r\n\r\n<strong>            $user = \\App\\User::where('email', $request-&gt;email)-&gt;first();<\/strong>\r\n<strong>            $user-&gt;tfa_token = $random_password;            \/\/ 4\u6841\u306e\u30e9\u30f3\u30c0\u30e0\u306a\u6570\u5b57<\/strong>\r\n<strong>            $user-&gt;tfa_expiration = now()-&gt;addMinutes(10);  \/\/ 10\u5206\u9593\u3060\u3051\u6709\u52b9<\/strong>\r\n<strong>            $user-&gt;save();<\/strong>\r\n\r\n<strong>            \/\/ \u30e1\u30fc\u30eb\u9001\u4fe1<\/strong>\r\n<strong>            \\Mail::to($user)-&gt;send(new TwoFactorAuthPassword($random_password));<\/strong>\r\n\r\n<strong>            return [<\/strong>\r\n<strong>                'result' =&gt; true,<\/strong>\r\n<strong>                'user_id' =&gt; $user-&gt;id<\/strong>\r\n<strong>            ];<\/strong>\r\n\r\n<strong>        }<\/strong>\r\n\r\n<strong>        return ['result' =&gt; false];<\/strong>\r\n\r\n<strong>    }<\/strong>\r\n\r\n<strong>    public function second_auth(Request $request) {  \/\/ \uff12\u6bb5\u968e\u76ee\u306e\u8a8d\u8a3c<\/strong>\r\n\r\n<strong>        $result = false;<\/strong>\r\n\r\n<strong>        if($request-&gt;filled('tfa_token', 'user_id')) {<\/strong>\r\n\r\n<strong>            $user = \\App\\User::find($request-&gt;user_id);<\/strong>\r\n<strong>            $expiration = new Carbon($user-&gt;tfa_expiration);<\/strong>\r\n\r\n<strong>            if($user-&gt;tfa_token === $request-&gt;tfa_token &amp;&amp; $expiration &gt; now()) {<\/strong>\r\n\r\n<strong>                $user-&gt;tfa_token = null;<\/strong>\r\n<strong>                $user-&gt;tfa_expiration = null;<\/strong>\r\n<strong>                $user-&gt;save();<\/strong>\r\n\r\n<strong>                \\Auth::login($user);    \/\/ \u81ea\u52d5\u30ed\u30b0\u30a4\u30f3<\/strong>\r\n<strong>                $result = true;<\/strong>\r\n\r\n<strong>            }<\/strong>\r\n\r\n<strong>        }<\/strong>\r\n\r\n<strong>        return ['result' =&gt; $result];<\/strong>\r\n\r\n<strong>    }<\/strong>\r\n}<\/pre>\n<p><strong>\u3010\u8ffd\u8a18\uff1a2020.10.22\u3011<\/strong>\u8a2a\u554f\u30e6\u30fc\u30b6\u30fc\u3055\u3093\u306b\u3054\u6307\u6458\u3092\u3044\u305f\u3060\u304d\u3001\u30b3\u30fc\u30c9\u304c\u9593\u9055\u3063\u3066\u3044\u305f\u306e\u3067\u4fee\u6b63\u3057\u307e\u3057\u305f\u3002\u4fee\u6b63\u7b87\u6240\u306f\u3001<code>Auth::attempt()<\/code> \u2192 <code>Auth::validate()<\/code>\u3067\u3059\u3002<br \/>\n\u3044\u3064\u3082\u3054\u5354\u529b\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002m(_ _)m<\/p>\n<p>\u3053\u306e\u4e2d\u3067\u306e\u6d41\u308c\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<ol>\n<li>\u30ed\u30b0\u30a4\u30f3\u30d5\u30a9\u30fc\u30e0\u3067\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u9001\u4fe1<\/li>\n<li>\u5408\u3063\u3066\u3044\u308c\u3070\u3001\uff12\u6bb5\u968e\u8a8d\u8a3c\u306e\u30ef\u30f3\u30bf\u30a4\u30e0\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u30e1\u30fc\u30eb\u3067\u9001\u4fe1<\/li>\n<li>\uff12\u6bb5\u968e\u8a8d\u8a3c\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3082\u5408\u3063\u3066\u3044\u308c\u3070\u3001\u305d\u306e\u30e6\u30fc\u30b6\u30fc\u3092\u30ed\u30b0\u30a4\u30f3\u3055\u305b\u308b<\/li>\n<\/ol>\n<p>\u306a\u304a\u3001<code>first_auth()<\/code>\u3068<code>second_auth()<\/code>\u306f<code>Ajax<\/code>\u3067\u30a2\u30af\u30bb\u30b9\u3055\u308c\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h1>\u30d3\u30e5\u30fc\uff08\u30ed\u30b0\u30a4\u30f3\u30d5\u30a9\u30fc\u30e0\uff09\u3092\u3064\u304f\u308b<\/h1>\n<p>\u3067\u306f\u3001\u6700\u5f8c\u306b\u5148\u307b\u3069\u3064\u304f\u3063\u305f\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3068\u9023\u643a\u3059\u308b\u30ed\u30b0\u30a4\u30f3\u30fb\u30d5\u30a9\u30fc\u30e0\u306e\u30d3\u30e5\u30fc\u3092\u3064\u304f\u3063\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002\u30d5\u30a1\u30a4\u30eb\u306e\u30d1\u30b9\u306f\u3001<code>\/views\/two_factor_auth\/login_form.blade.php<\/code>\u3067\u3059\u3002<\/p>\n<pre>&lt;html&gt;\r\n&lt;head&gt;\r\n    &lt;link href=\"https:\/\/stackpath.bootstrapcdn.com\/bootstrap\/4.3.1\/css\/bootstrap.min.css\" rel=\"stylesheet\"&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n    &lt;div id=\"app\" class=\"p-5\"&gt;\r\n        &lt;div class=\"alert alert-info\" v-if=\"message\" v-text=\"message\"&gt;&lt;\/div&gt;\r\n\r\n        &lt;!-- \uff11\u6bb5\u968e\u76ee\u306e\u30ed\u30b0\u30a4\u30f3\u30d5\u30a9\u30fc\u30e0 --&gt;\r\n        <strong>&lt;div v-if=\"step==1\"&gt;<\/strong>\r\n<strong>            &lt;div class=\"form-group\"&gt;<\/strong>\r\n<strong>                &lt;label&gt;\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9&lt;\/label&gt;<\/strong>\r\n<strong>                &lt;input type=\"text\" class=\"form-control\" v-model=\"email\"&gt;<\/strong>\r\n<strong>            &lt;\/div&gt;<\/strong>\r\n<strong>            &lt;div class=\"form-group\"&gt;<\/strong>\r\n<strong>                &lt;label&gt;\u30d1\u30b9\u30ef\u30fc\u30c9&lt;\/label&gt;<\/strong>\r\n<strong>                &lt;input type=\"password\" class=\"form-control\" v-model=\"password\"&gt;<\/strong>\r\n<strong>            &lt;\/div&gt;<\/strong>\r\n<strong>            &lt;button type=\"button\" class=\"btn btn-primary\" @click=\"firstAuth\"&gt;\u9001\u4fe1\u3059\u308b&lt;\/button&gt;<\/strong>\r\n<strong>        &lt;\/div&gt;<\/strong>\r\n\r\n        &lt;!-- \uff12\u6bb5\u968e\u76ee\u30fb\u30ed\u30b0\u30a4\u30f3\u30d5\u30a9\u30fc\u30e0 --&gt;\r\n        <strong>&lt;div v-if=\"step==2\"&gt;<\/strong>\r\n<strong>            \uff12\u6bb5\u968e\u8a8d\u8a3c\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u306b\u767b\u9332\u3057\u307e\u3057\u305f\u3002\uff08\u6709\u52b9\u6642\u9593\uff1a10\u5206\u9593\uff09<\/strong>\r\n<strong>            &lt;hr&gt;<\/strong>\r\n<strong>            &lt;div class=\"form-group\"&gt;<\/strong>\r\n<strong>                &lt;label&gt;\uff12\u6bb5\u968e\u30d1\u30b9\u30ef\u30fc\u30c9&lt;\/label&gt;<\/strong>\r\n<strong>                &lt;input type=\"text\" class=\"form-control\" v-model=\"token\"&gt;<\/strong>\r\n<strong>            &lt;\/div&gt;<\/strong>\r\n<strong>            &lt;button type=\"button\" class=\"btn btn-primary\" @click=\"secondAuth\"&gt;\u9001\u4fe1\u3059\u308b&lt;\/button&gt;<\/strong>\r\n<strong>        &lt;\/div&gt;<\/strong>\r\n\r\n    &lt;\/div&gt;\r\n    &lt;script src=\"https:\/\/cdn.jsdelivr.net\/npm\/vue@2.6.0\"&gt;&lt;\/script&gt;\r\n    &lt;script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/axios\/0.19.0\/axios.min.js\"&gt;&lt;\/script&gt;\r\n    &lt;script&gt;\r\n\r\n        new Vue({\r\n            el: '#app',\r\n            data: {\r\n                step: 1,\r\n                email: '',\r\n                password: '',\r\n                token: '',\r\n                userId: -1,\r\n                message: ''\r\n            },\r\n            methods: {\r\n                <strong>firstAuth() {<\/strong>\r\n\r\n<strong>                    this.message = '';<\/strong>\r\n\r\n<strong>                    const url = '\/ajax\/two_factor_auth\/first_auth';<\/strong>\r\n<strong>                    const params = {<\/strong>\r\n<strong>                        email: this.email,<\/strong>\r\n<strong>                        password: this.password<\/strong>\r\n<strong>                    };<\/strong>\r\n<strong>                    axios.post(url, params)<\/strong>\r\n<strong>                        .then(response =&gt; {<\/strong>\r\n\r\n<strong>                            const result = response.data.result;<\/strong>\r\n\r\n<strong>                            if(result) {<\/strong>\r\n\r\n<strong>                                this.userId = response.data.user_id;<\/strong>\r\n<strong>                                this.step = 2;<\/strong>\r\n\r\n<strong>                            } else {<\/strong>\r\n\r\n<strong>                                this.message = '\u30ed\u30b0\u30a4\u30f3\u60c5\u5831\u304c\u9593\u9055\u3063\u3066\u3044\u307e\u3059\u3002';<\/strong>\r\n\r\n<strong>                            }<\/strong>\r\n\r\n<strong>                        });<\/strong>\r\n\r\n<strong>                },<\/strong>\r\n<strong>                secondAuth() {<\/strong>\r\n\r\n<strong>                    const url = '\/ajax\/two_factor_auth\/second_auth';<\/strong>\r\n<strong>                    const params = {<\/strong>\r\n<strong>                        user_id: this.userId,<\/strong>\r\n<strong>                        tfa_token: this.token<\/strong>\r\n<strong>                    };<\/strong>\r\n\r\n<strong>                    axios.post(url, params)<\/strong>\r\n<strong>                        .then(response =&gt; {<\/strong>\r\n\r\n<strong>                            const result = response.data.result;<\/strong>\r\n\r\n<strong>                            if(result) {<\/strong>\r\n\r\n<strong>                                \/\/ \uff12\u6bb5\u968e\u8a8d\u8a3c\u6210\u529f<\/strong>\r\n<strong>                                location.href = '\/home';<\/strong>\r\n\r\n<strong>                            } else {<\/strong>\r\n\r\n<strong>                                this.message = '\uff12\u6bb5\u968e\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u6b63\u3057\u304f\u3042\u308a\u307e\u305b\u3093\u3002';<\/strong>\r\n<strong>                                this.token = '';<\/strong>\r\n\r\n<strong>                            }<\/strong>\r\n\r\n<strong>                        });<\/strong>\r\n\r\n<strong>                }<\/strong>\r\n            }\r\n        });\r\n\r\n    &lt;\/script&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p>\u5148\u307b\u3069\u8aac\u660e\u3057\u305f\u6d41\u308c\u306b\u6cbf\u3063\u3066<code>Ajax<\/code>\u9001\u4fe1\u3057\u3066\u3044\u308b\u3060\u3051\u306a\u306e\u3067\u3001\u30b3\u30fc\u30c9\u306f\u5c11\u3057\u9577\u3044\u3067\u3059\u304c\u5185\u5bb9\u3068\u3057\u3066\u306f\u30b7\u30f3\u30d7\u30eb\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001\uff12\u6bb5\u968e\u8a8d\u8a3c\u304c\u6210\u529f\u3059\u308b\u3068\u300c\uff12\u6bb5\u968e\u8a8d\u8a3c\u6210\u529f\u300d\u3068\u66f8\u304b\u308c\u3066\u3044\u308b\u90e8\u5206\u3067\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3092\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u304a\u597d\u307f\u3067\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/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\u3059\u3002<\/p>\n<p>\u307e\u305a\u306f\u3001\u30ed\u30b0\u30a4\u30f3\u30d5\u30a9\u30fc\u30e0\u306b\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4950\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/11\/two_factor_auth_3.png\" alt=\"\" width=\"500\" height=\"303\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/11\/two_factor_auth_3.png 500w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/11\/two_factor_auth_3-300x182.png 300w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/p>\n<p>\u9001\u4fe1\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001\u30e1\u30fc\u30eb\u306b\uff12\u6bb5\u968e\u8a8d\u8a3c\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u9001\u4fe1\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4949\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/11\/two_factor_auth_4.png\" alt=\"\" width=\"364\" height=\"189\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/11\/two_factor_auth_4.png 364w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/11\/two_factor_auth_4-300x156.png 300w\" sizes=\"auto, (max-width: 364px) 100vw, 364px\" \/><\/p>\n<p>\u3053\u3053\u306b\u66f8\u304b\u308c\u3066\u3044\u308b\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u81ea\u52d5\u7684\u306b\u5207\u308a\u66ff\u308f\u3063\u305f\u30ed\u30b0\u30a4\u30f3\u30d5\u30a9\u30fc\u30e0\u306b\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4948\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/11\/two_factor_auth_5.png\" alt=\"\" width=\"500\" height=\"303\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/11\/two_factor_auth_5.png 500w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/11\/two_factor_auth_5-300x182.png 300w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/p>\n<p>\u9001\u4fe1\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001\u30ed\u30b0\u30a4\u30f3\u304c\u5b9f\u884c\u3055\u308c\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4947\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/11\/two_factor_auth_6.png\" alt=\"\" width=\"199\" height=\"113\" \/><\/p>\n<p>\u30ed\u30b0\u30a4\u30f3\u304c\u3046\u307e\u304f\u3044\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u30da\u30fc\u30b8\u53f3\u4e0a\u306b\u540d\u524d\u3068\u30ed\u30b0\u30a2\u30a6\u30c8\u30ea\u30f3\u30af\u304c\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u6210\u529f\u3067\u3059\ud83d\ude0a\u2728<\/p>\n<h1>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b<\/h1>\n<p>\u4ee5\u4e0b\u304b\u3089\u4eca\u56de\u5b9f\u969b\u306b\u958b\u767a\u3057\u305f\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u4e00\u5f0f\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u203b \u305f\u3060\u3057\u3001\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u306a\u3069\u306f\u3054\u81ea\u8eab\u3067\u5b9f\u884c\u3057\u3066\u3044\u305f\u3060\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u307e\u305f\u3001\u3053\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3059\u308b\u958b\u767a\u306a\u3069\u3082\u3054\u4f9d\u983c\u3044\u305f\u3060\u3051\u307e\u3059\u306e\u3067\u3001\u305d\u306e\u969b\u306f<a href=\"https:\/\/docs.google.com\/forms\/d\/e\/1FAIpQLSdqMmc1sGcm4BaHTInlMTn-8tFf4pV1k4JV0GovSfTqUddnrg\/viewform\">\u304a\u554f\u3044\u5408\u308f\u305b<\/a>\u304b\u3089\u3054\u9023\u7d61\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><strong>\u3010\u8ffd\u8a18\uff1a2020.02.10\u3011<\/strong><code>app\/Mail<\/code>\u30d5\u30a9\u30eb\u30c0\u304c\u629c\u3051\u3066\u3044\u305f\u306e\u3067\u8ffd\u52a0\u3057\u307e\u3057\u305f\u3002\u3069\u3046\u3082\u3059\u307f\u307e\u305b\u3093\ud83d\ude05<\/p>\n<a  data-e-Disable-Page-Transition=\"true\" class=\"download-link\" title=\"\" href=\"https:\/\/blog.capilano-fw.com?download=4951&amp;tmstv=1777360267\" rel=\"nofollow\" id=\"download-link-4951\" data-redirect=\"false\" >\n\t\u3010Laravel\u3011\u30e1\u30fc\u30eb\u3092\u4f7f\u3063\u305f\uff12\u6bb5\u968e\u8a8d\u8a3c<\/a>\n\n<h1>\u304a\u308f\u308a\u306b<\/h1>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4eca\u56de\u306f<code>Laravel<\/code> + \u30e1\u30fc\u30eb\u306e\uff12\u6bb5\u968e\u8a8d\u8a3c\u3092\u3064\u304f\u3063\u3066\u307f\u307e\u3057\u305f\u3002\u6709\u52b9\u671f\u9650\u304c10\u5206\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u3042\u308b\u7a0b\u5ea6\u306f\u5f37\u529b\u306a\u8a8d\u8a3c\u30b7\u30b9\u30c6\u30e0\u306b\u306a\u3063\u3066\u3044\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u6b63\u76f4\u306a\u3068\u3053\u308d\u3001\u6bce\u56de\u3053\u306e\uff12\u6bb5\u968e\u8a8d\u8a3c\u3092\u3055\u305b\u3089\u308c\u308b\u306e\u306f\u3081\u3093\u3069\u3046\u3067\u3057\u304b\u305f\u306a\u3044\u3067\u3059\u304c\u3001\u4f8b\u3048\u3070\u300c\u305f\u307e\u306b\u3057\u304b\u4f7f\u308f\u306a\u3044\u3051\u3069\u3001\u3068\u3066\u3082\u91cd\u8981\u306a\u30c7\u30fc\u30bf\u300d\u3092\u6271\u3046\u30b7\u30b9\u30c6\u30e0\u306b\u306f\u5fc5\u8981\u306a\u3082\u306e\u3068\u3044\u3063\u3066\u3044\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u307e\u305f\u3001\u4eca\u56de\u306e\u6a5f\u80fd\u3092\u5fdc\u7528\u3059\u308c\u3070<code>LINE<\/code>\u306e\u3088\u3046\u306bQR\u30b3\u30fc\u30c9\u3092\u8aad\u307f\u3068\u3063\u3066\u3082\u3089\u3063\u3066\u30b9\u30de\u30db\u5074\u306b\u30ef\u30f3\u30bf\u30a4\u30e0\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8868\u793a\u3057\u3001\u30d6\u30e9\u30a6\u30b6\u5074\u3067\u305d\u308c\u3092\u5165\u529b\u3057\u3066\u3082\u3089\u3046\u3068\u3044\u3046\u4f7f\u3044\u65b9\u3082\u3067\u304d\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u305c\u3072\u7686\u3055\u3093\u3082\u3044\u308d\u3044\u308d\u3068\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u306d\u3002<\/p>\n<p>\u3067\u306f\u3067\u306f\u301c\uff01<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-427 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/04\/24.png\" alt=\"\" width=\"182\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/04\/24.png 182w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/04\/24-171x300.png 171w\" sizes=\"auto, (max-width: 182px) 100vw, 182px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u524d\u56de\u8a18\u4e8b\u3067\u306f\u300c\u81ea\u7531\u7814\u7a76\u300d\u7684\u306a\u8a18\u4e8b\u3092\u516c\u958b\u3055\u305b\u3066\u3082\u3089\u3063\u305f\u306e\u3067\u3001\u4eca\u56de\u306f\u901a\u5e38\u901a\u308a\u306e\u6d41\u308c\u306b\u623b\u3057\u3066Laravel\u306e\u8a71\u984c\u3092\u304a\u5c4a\u3051\u3057\u307e\u3059\u3002 \u306a\u304a\u3001\u4eca\u56de\u306e\u8a71\u984c\u306f\u6570\u30ab\u6708\u307b &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.capilano-fw.com\/?p=4942\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;\u3010Laravel\u3011\u30e1\u30fc\u30eb\u3092\u4f7f\u3063\u305f\uff12\u6bb5\u968e\u8a8d\u8a3c\u3092\u5b9f\u88c5\u3059\u308b&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":4956,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,12,97],"tags":[81,58],"class_list":["post-4942","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-laravel","category-vue-js","category-97","tag-81","tag-58"],"_links":{"self":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/4942","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=4942"}],"version-history":[{"count":15,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/4942\/revisions"}],"predecessor-version":[{"id":8176,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/4942\/revisions\/8176"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/media\/4956"}],"wp:attachment":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4942"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4942"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4942"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}