{"id":5466,"date":"2019-12-26T00:14:36","date_gmt":"2019-12-25T15:14:36","guid":{"rendered":"https:\/\/blog.capilano-fw.com\/?p=5466"},"modified":"2019-12-26T00:14:36","modified_gmt":"2019-12-25T15:14:36","slug":"%e3%80%90laravel%e3%80%91%e3%82%aa%e3%83%97%e3%83%88%e3%82%a4%e3%83%b3%ef%bc%8f%e3%82%aa%e3%83%97%e3%83%88%e3%82%a2%e3%82%a6%e3%83%88%e3%81%ae%e3%83%a1%e3%83%bc%e3%83%ab%e9%80%81%e4%bf%a1%e6%a9%9f","status":"publish","type":"post","link":"https:\/\/blog.capilano-fw.com\/?p=5466","title":{"rendered":"\u3010Laravel\u3011\u30aa\u30d7\u30c8\u30a4\u30f3\uff0f\u30aa\u30d7\u30c8\u30a2\u30a6\u30c8\u306e\u30e1\u30fc\u30eb\u9001\u4fe1\u6a5f\u80fd"},"content":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u3053\u306e\u9593\u306f <a href=\"https:\/\/blog.capilano-fw.com\/?p=5260\">\u30b3\u30d4\u30da\u3067OK\uff01Laravel\u304b\u3089wordpress\u306b\u6295\u7a3f\u3059\u308b\u6a5f\u80fd<\/a>\u00a0\u306a\u3069\u3044\u304f\u3064\u304b<code>Laravel<\/code>\u306e<code>Notification<\/code>\u3092\u3064\u304b\u3063\u305f\u6a5f\u80fd\u306b\u3064\u3044\u3066\u8a18\u4e8b\u3092\u516c\u958b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001<code>Notification<\/code>\u3068\u3057\u3066\u3088\u304f\u4f7f\u308f\u308c\u308b\u306e\u304c\u30e1\u30fc\u30eb\u304b\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u6700\u8fd1\u306f\u9001\u4fe1\u5185\u5bb9\u306b\u3088\u3063\u3066\u300c\u3042\u308b\u3053\u3068\u300d\u306b\u6c17\u3092\u3064\u3051\u306a\u3044\u3068\u3044\u3051\u306a\u304f\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u306f\u30fb\u30fb\u30fb<\/p>\n<p><strong style=\"font-size: 35px;\">\u7279\u5b9a\u96fb\u5b50\u30e1\u30fc\u30eb\u6cd5<\/strong><\/p>\n<p>\u3067\u3059\u3002<\/p>\n<p>\u3064\u307e\u308a\u3001<strong>\u30e1\u30eb\u30de\u30ac\u306a\u3069\u3092\u9001\u4fe1\u3059\u308b\u969b\u306f\u3001\u4e8b\u524d\u306b\u540c\u610f\u3092\u3068\u3089\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u3068\u3044\u3046\u30eb\u30fc\u30eb<\/strong>\u3067\u3059\u3002\uff08\uff1d\u30aa\u30d7\u30c8\u30a4\u30f3\uff09<\/p>\n<p>\u307e\u305f\u3001\u4e00\u5ea6\u540c\u610f\u3092\u5f97\u305f\u3068\u3057\u3066\u3082\u3001\u305d\u306e\u5f8c\u53d7\u3051\u53d6\u308a\u3092\u62d2\u5426\u3055\u308c\u305f\u5834\u5408\u306f\u30e1\u30fc\u30eb\u9001\u4fe1\u3057\u3066\u306f\u3044\u3051\u306a\u3044\u3053\u3068\u306b\u3082\u306a\u3063\u3066\u3044\u305f\u308a\u3082\u3057\u307e\u3059\u3002\uff08\uff1d\u30aa\u30d7\u30c8\u30a2\u30a6\u30c8\uff09<\/p>\n<p>\u305d\u3053\u3067\uff01<\/p>\n<p>\u4eca\u56de\u306f\u3001<code>Laravel<\/code>\u306e<code>Notification<\/code>\u3092\u4f7f\u3063\u3066\u3001\u3053\u306e\u30aa\u30d7\u30c8\u30a4\u30f3\uff0f\u30aa\u30d7\u30c8\u30a2\u30a6\u30c8\u6a5f\u80fd\u3092\u5b9f\u88c5\u3057\u3066\u307f\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<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2173 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/no_24.png\" alt=\"\" width=\"300\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/no_24.png 300w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/no_24-281x300.png 281w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p><strong>\u958b\u767a\u74b0\u5883\uff1a<\/strong> Laravel 6.x<\/p>\n<h1>\u3084\u308a\u305f\u3044\u3053\u3068<\/h1>\n<p>\u4eca\u56de\u958b\u767a\u3059\u308b\u5185\u5bb9\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<ul>\n<li>\u4e8b\u524d\u306b\u8a31\u53ef\u3057\u305f\u30e6\u30fc\u30b6\u30fc\u3060\u3051\u306b\u30e1\u30fc\u30eb\u9001\u4fe1<\/li>\n<li>\u9001\u4fe1\u3055\u308c\u305f\u30e1\u30fc\u30eb\u306b\u306f\u3001\u30af\u30ea\u30c3\u30af\u3059\u308b\u3060\u3051\u3067\u4eca\u5f8c\u306e\u53d7\u4fe1\u3092\u62d2\u5426\u3067\u304d\u308b\u30aa\u30d7\u30c8\u30a2\u30a6\u30c8\u30fb\u30ea\u30f3\u30af\u3092\u7528\u610f\u3059\u308b<\/li>\n<\/ul>\n<p>\u3067\u306f\u5b9f\u969b\u306b\u3084\u3063\u3066\u307f\u307e\u3057\u3087\u3046\uff01<\/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<h1>users\u30c6\u30fc\u30d6\u30eb\u306b\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u3064\u304f\u308b<\/h1>\n<p>\u307e\u305a\u306f\u3058\u3081\u306b\u3001\u30e1\u30fc\u30eb\u53d7\u4fe1\u3092\u540c\u610f\u3057\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u304c\u308f\u304b\u308b\u3088\u3046\u306b<code>email_accepted<\/code>\u3068\u3044\u3046\u30d5\u30a3\u30fc\u30eb\u30c9\u3092<code>users<\/code>\u30c6\u30fc\u30d6\u30eb\u306b\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>\u3064\u307e\u308a\u3001\u3053\u306e\u9805\u76ee\u304c<code>true<\/code>\u306a\u3089\u30e1\u30fc\u30eb\u9001\u4fe1OK\u3001<code>false<\/code>\u306a\u3089\u30e1\u30fc\u30eb\u9001\u4fe1NG\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3067\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><strong>php artisan make:migration add_email_accepted_to_users<\/strong><\/pre>\n<p>\u3059\u308b\u3068\u3001\u300c<strong>database\/migrations\/****_**_**_******_add_email_accepted_to_users.php<\/strong>\u300d\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\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\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 AddEmailAcceptedToUsers 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        Schema::table('users', function (Blueprint $table) {\r\n            <strong>$table-&gt;boolean('email_accepted')<\/strong>\r\n<strong>                -&gt;default(false)<\/strong>\r\n<strong>                -&gt;after('email');<\/strong>\r\n        });\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('email_accepted');<\/strong>\r\n<strong>        });<\/strong>\r\n    }\r\n}<\/pre>\n<p>\u5909\u66f4\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u884c\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre><strong>php artisan migrate<\/strong><\/pre>\n<p>\u3059\u308b\u3068\u3001\u30c6\u30fc\u30d6\u30eb\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5468\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/opt_in_out_1.png\" alt=\"\" width=\"359\" height=\"338\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/opt_in_out_1.png 359w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/opt_in_out_1-300x282.png 300w\" sizes=\"auto, (max-width: 359px) 100vw, 359px\" \/><\/p>\n<h1>\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u3092\u3064\u304f\u308b<\/h1>\n<p>\u4eca\u56de\u306f\u30e1\u30fc\u30eb\u53d7\u4fe1\u306b\u540c\u610f\u3057\u3066\u3044\u308b\u30e6\u30fc\u30b6\u30fc\u3068\u305d\u3046\u3067\u306a\u3044\u30e6\u30fc\u30b6\u30fc\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u306e\u3067\u3001<code>Seeder<\/code>\u3067\u30b5\u30af\u30c3\u3068\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u3092\u3064\u304f\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:seed UsersTableSeeder<\/strong><\/pre>\n<p>\u3059\u308b\u3068\u3001\u300c<strong>database\/seeds\/UsersTableSeeder.php<\/strong>\u300d\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\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<pre>&lt;?php\r\n\r\nuse Illuminate\\Database\\Seeder;\r\n\r\nclass UsersTableSeeder extends Seeder\r\n{\r\n    \/**\r\n     * Run the database seeds.\r\n     *\r\n     * @return void\r\n     *\/\r\n    public function run()\r\n    {\r\n        <strong>$names = [<\/strong>\r\n<strong>            'taro' =&gt; '\u592a\u90ce',<\/strong>\r\n<strong>            'jiro' =&gt; '\u6b21\u90ce',<\/strong>\r\n<strong>            'saburo' =&gt; '\u4e09\u90ce',<\/strong>\r\n<strong>            'shiro' =&gt; '\u56db\u90ce',<\/strong>\r\n<strong>            'goro' =&gt; '\u4e94\u90ce',<\/strong>\r\n<strong>            'rokuro' =&gt; '\u516d\u90ce',<\/strong>\r\n<strong>            'shichiro' =&gt; '\u4e03\u90ce',<\/strong>\r\n<strong>            'hachiro' =&gt; '\u516b\u90ce',<\/strong>\r\n<strong>            'kuro' =&gt; '\u4e5d\u90ce'<\/strong>\r\n<strong>        ];<\/strong>\r\n<strong>        $email_accepted = true;<\/strong>\r\n\r\n<strong>        foreach ($names as $name_en =&gt; $name_jp) {<\/strong>\r\n\r\n<strong>            \\App\\User::create([<\/strong>\r\n<strong>                'name' =&gt; $name_jp,<\/strong>\r\n<strong>                'email' =&gt; $name_en .'@example.com',<\/strong>\r\n<strong>                'password' =&gt; bcrypt('xxxxxxxx'),<\/strong>\r\n<strong>                'email_accepted' =&gt; $email_accepted<\/strong>\r\n<strong>            ]);<\/strong>\r\n\r\n<strong>            $email_accepted = !$email_accepted;<\/strong>\r\n\r\n<strong>        }<\/strong>\r\n<strong>    }<\/strong>\r\n}<\/pre>\n<p>\u5909\u66f4\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u3053\u306e<code>Seeder<\/code>\u3092\u767b\u9332\u3057\u307e\u3059\u3002<br \/>\n\u300c<strong>database\/seeds\/DatabaseSeeder.php<\/strong>\u300d\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre>&lt;?php\r\n\r\nuse Illuminate\\Database\\Seeder;\r\n\r\nclass DatabaseSeeder extends Seeder\r\n{\r\n    \/**\r\n     * Seed the application's database.\r\n     *\r\n     * @return void\r\n     *\/\r\n    public function run()\r\n    {\r\n         <strong>$this-&gt;call(UsersTableSeeder::class);<\/strong>\r\n    }\r\n}<\/pre>\n<p>\u3067\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067<code>Seeder<\/code>\u3092\u5b9f\u884c\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre><strong>php artisan db:seed<\/strong><\/pre>\n<p>\u3059\u308b\u3068\u3001<code>users<\/code>\u30c6\u30fc\u30d6\u30eb\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5469\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/opt_in_out_2.png\" alt=\"\" width=\"405\" height=\"465\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/opt_in_out_2.png 405w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/opt_in_out_2-261x300.png 261w\" sizes=\"auto, (max-width: 405px) 100vw, 405px\" \/><\/p>\n<p>\u203b <code>email_accepted<\/code> \u304c<code>1<\/code>\u306e\u3082\u306e\u304c\u30e1\u30fc\u30eb\u9001\u4fe1\u3057\u3066\u3082\u5927\u4e08\u592b\u306a\u30e6\u30fc\u30b6\u30fc\u3067\u3001<code>0<\/code>\u3060\u3068\u62d2\u5426\u3067\u3059\u3002<\/p>\n<h1>\u30aa\u30d7\u30c8\u30a2\u30a6\u30c8\u6a5f\u80fd\u3092\u3064\u304f\u308b<\/h1>\n<p>\u7d9a\u3044\u3066<strong>\u300c\u30af\u30ea\u30c3\u30af\u3057\u305f\u3089\u4eca\u5f8c\u306f\u30e1\u30fc\u30eb\u53d7\u4fe1\u3092\u62d2\u5426\u3059\u308b\u300d<\/strong>\u305f\u3081\u306eURL\u3092\u5148\u306b\u3064\u304f\u3063\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>\u4ed5\u7d44\u307f<\/h2>\n<p>\u4f8b\u3048\u3070\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306aURL\u3092\u3064\u304f\u3063\u3066\u30aa\u30d7\u30c8\u30a2\u30a6\u30c8\u3057\u3066\u3082\u3044\u3044\u306e\u3067\u3059\u304c\u3001\u3053\u308c\u3060\u3068\u306a\u308a\u3059\u307e\u3057\u3067\u30e1\u30fc\u30eb\u62d2\u5426\u3055\u308c\u308b\u3053\u3068\u3082\u60f3\u5b9a\u3055\u308c\u308b\u306e\u3067\u3001\u4eca\u56de\u306f\u30aa\u30d7\u30c8\u30a2\u30a6\u30c8\u3059\u308b\u305f\u3081\u306e\u300c\u30ef\u30f3\u30bf\u30a4\u30e0\u30d1\u30b9\u30ef\u30fc\u30c9\u300d\u3092\u500b\u5225\u3067\u7ba1\u7406\u3057\u3066\u5b9f\u88c5\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3059\u3002<\/p>\n<pre><strong>http:\/\/*****\/opt-out\/\uff08\u30e6\u30fc\u30b6\u30fcID\uff09<\/strong><\/pre>\n<h2>\u30e2\u30c7\u30eb\u3068\u30c6\u30fc\u30d6\u30eb\u3092\u3064\u304f\u308b<\/h2>\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 OptOutTicket -m<\/strong><\/pre>\n<p>\u3059\u308b\u3068\u30e2\u30c7\u30eb\u3068\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u305d\u308c\u305e\u308c\u4f5c\u6210\u3055\u308c\u308b\u306e\u3067\u3001\u300c<strong>database\/migrations\/****_**_**_******_create_opt_out_tickets_table.php<\/strong>\u300d\u306e\u4e2d\u8eab\u3092\u6b21\u306e\u3088\u3046\u306b\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\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 CreateOptOutTicketsTable 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::create('opt_out_tickets', function (Blueprint $table) {<\/strong>\r\n<strong>            $table-&gt;bigIncrements('id');<\/strong>\r\n<strong>            $table-&gt;unsignedBigInteger('user_id');<\/strong>\r\n<strong>            $table-&gt;string('uuid');<\/strong>\r\n<strong>            $table-&gt;timestamps();<\/strong>\r\n\r\n<strong>            $table-&gt;foreign('user_id')<\/strong>\r\n<strong>                -&gt;references('id')-&gt;on('users')<\/strong>\r\n<strong>                -&gt;onDelete('cascade');<\/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::dropIfExists('opt_out_tickets');<\/strong>\r\n    }\r\n}<\/pre>\n<p>\u3067\u306f\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u884c\u3057\u3066\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre><strong>php artisan migrate<\/strong><\/pre>\n<p>\u5b9f\u884c\u5f8c\u3001\u30c6\u30fc\u30d6\u30eb\u306f\u3053\u3046\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5470\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/opt_in_out_3.png\" alt=\"\" width=\"348\" height=\"255\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/opt_in_out_3.png 348w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/opt_in_out_3-300x220.png 300w\" sizes=\"auto, (max-width: 348px) 100vw, 348px\" \/><\/p>\n<h2>\u30eb\u30fc\u30c8\u3092\u3064\u304f\u308b<\/h2>\n<p>\u7d9a\u3044\u3066\u3001\u30aa\u30d7\u30c8\u30a2\u30a6\u30c8\u3059\u308b\u305f\u3081\u306eURL\u3092\u3064\u304f\u308a\u307e\u3059\u3002<br \/>\n\u300c<strong>routes\/web.php<\/strong>\u300d\u306b\u4ee5\u4e0b\u306e\u30eb\u30fc\u30c8\u3092\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><strong>Route::get('opt_out\/{uuid}', 'OptOutController@update')-&gt;name('opt_out');<\/strong><\/pre>\n<h2>\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3092\u3064\u304f\u308b<\/h2>\n<p>\u5148\u307b\u3069\u30eb\u30fc\u30c8\u3067\u8a2d\u5b9a\u3057\u305f\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3092\u3064\u304f\u308a\u307e\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><strong>php artisan make:controller OptOutController<\/strong><\/pre>\n<p>\u3059\u308b\u3068\u3001\u300c<strong>app\/Http\/Controllers\/OptOutController.php<\/strong>\u300d\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\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<pre>&lt;?php\r\n\r\nnamespace App\\Http\\Controllers;\r\n\r\nuse App\\Notifications\\NewsLetter;\r\nuse Illuminate\\Http\\Request;\r\n\r\nclass OptOutController extends Controller\r\n{\r\n    <strong>public function update($uuid) {<\/strong>\r\n\r\n<strong>        $ticket = \\App\\OptOutTicket::where('uuid', $uuid)-&gt;first();<\/strong>\r\n\r\n<strong>        if(is_null($ticket)) {<\/strong>\r\n\r\n<strong>            abort(404);<\/strong>\r\n\r\n<strong>        }<\/strong>\r\n\r\n<strong>        \/\/ \u30e6\u30fc\u30b6\u30fc\u306e\u53d7\u4fe1\u8a2d\u5b9a\u3092\u300c\u62d2\u5426\u300d\u3078\u5909\u66f4<\/strong>\r\n<strong>        $user = \\App\\User::find($ticket-&gt;user_id);<\/strong>\r\n<strong>        $user-&gt;email_accepted = false;<\/strong>\r\n<strong>        $user-&gt;save();<\/strong>\r\n\r\n<strong>        \/\/ \u30aa\u30d7\u30c8\u30a2\u30a6\u30c8\u306e\u30c7\u30fc\u30bf\u3092\u524a\u9664<\/strong>\r\n<strong>        $ticket-&gt;delete();<\/strong>\r\n\r\n<strong>        return '\u30e1\u30fc\u30eb\u53d7\u4fe1\u8a2d\u5b9a\u3092\u300c\u62d2\u5426\u300d\u306b\u5909\u66f4\u3057\u307e\u3057\u305f\u3002';<\/strong>\r\n\r\n<strong>    }<\/strong>\r\n}<\/pre>\n<p>\u203b \u4eca\u56de\u306f\u30e1\u30a4\u30f3\u304c\u30aa\u30d7\u30c8\u30a4\u30f3\uff0f\u30aa\u30d7\u30c8\u30a2\u30a6\u30c8\u306a\u306e\u3067\u30d3\u30e5\u30fc\u306f\u4f7f\u308f\u305a\u5358\u306b\u30c6\u30ad\u30b9\u30c8\u3092<code>return<\/code>\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h1>Notification\u3092\u3064\u304f\u308b<\/h1>\n<p>\u3067\u306f\u3084\u3063\u3068\u672c\u984c\u306e<code>Notification<\/code>\u3067\u30e1\u30fc\u30eb\u9001\u4fe1\u3059\u308b\u90e8\u5206\u3092\u3064\u304f\u3063\u3066\u3044\u304d\u307e\u3059\u3002<br \/>\n\u306a\u304a\u3001\u4eca\u56de\u306f\u30e1\u30fc\u30eb\u30de\u30ac\u30b8\u30f3\u3092\u9001\u4fe1\u3059\u308b\u3053\u3068\u3092\u60f3\u5b9a\u3057\u3066\u5b9f\u88c5\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u306f\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067<code>NewsLetter<\/code>\u3068\u3044\u3046\u540d\u524d\u306e<code>Notification<\/code>\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><strong>php artisan make:notification NewsLetter<\/strong><\/pre>\n<p>\u3059\u308b\u3068\u3001\u300c<strong>app\/Notifications\/NewsLetter.php<\/strong>\u300d\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u308b\u306e\u3067\u3001\u4e2d\u8eab\u3092\u6b21\u306e\u3088\u3046\u306b\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre>&lt;?php\r\n\r\nnamespace App\\Notifications;\r\n\r\nuse Illuminate\\Bus\\Queueable;\r\nuse Illuminate\\Contracts\\Queue\\ShouldQueue;\r\nuse Illuminate\\Notifications\\Messages\\MailMessage;\r\nuse Illuminate\\Notifications\\Notification;\r\nuse Illuminate\\Support\\Str;\r\n\r\nclass NewsLetter extends Notification\r\n{\r\n   <strong> private $view = '';<\/strong>\r\n\r\n    use Queueable;\r\n\r\n    \/**\r\n     * Create a new notification instance.\r\n     *\r\n     * @return void\r\n     *\/\r\n    public function __construct($view)\r\n    {\r\n        <strong>$this-&gt;view = $view;<\/strong>\r\n    }\r\n\r\n    \/**\r\n     * Get the notification's delivery channels.\r\n     *\r\n     * @param  mixed  $notifiable\r\n     * @return array\r\n     *\/\r\n    public function via($notifiable)\r\n    {\r\n<strong>        if(!$notifiable-&gt;email_accepted) {  \/\/ \u30e1\u30fc\u30eb\u53d7\u4fe1\u3092\u62d2\u5426\u3057\u3066\u3044\u308b\u5834\u5408<\/strong>\r\n\r\n<strong>            return [];<\/strong>\r\n\r\n<strong>        }<\/strong>\r\n\r\n        return ['mail'];\r\n    }\r\n\r\n    \/**\r\n     * Get the mail representation of the notification.\r\n     *\r\n     * @param  mixed  $notifiable\r\n     * @return \\Illuminate\\Notifications\\Messages\\MailMessage\r\n     *\/\r\n    <strong>public function toMail($notifiable)<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        \/\/ \u30aa\u30d7\u30c8\u30a2\u30a6\u30c8\u306e\u30c7\u30fc\u30bf\u3092\u4f5c\u6210\u3059\u308b<\/strong>\r\n<strong>        $ticket = new \\App\\OptOutTicket();<\/strong>\r\n<strong>        $ticket-&gt;user_id = $notifiable-&gt;id;<\/strong>\r\n<strong>        $ticket-&gt;uuid = Str::uuid();<\/strong>\r\n<strong>        $ticket-&gt;save();<\/strong>\r\n\r\n<strong>        return (new MailMessage)<\/strong>\r\n<strong>            -&gt;view($this-&gt;view, [<\/strong>\r\n<strong>                'user' =&gt; $notifiable,<\/strong>\r\n<strong>                'ticket' =&gt; $ticket<\/strong>\r\n<strong>            ]);<\/strong>\r\n<strong>    }<\/strong>\r\n\r\n    \/**\r\n     * Get the array representation of the notification.\r\n     *\r\n     * @param  mixed  $notifiable\r\n     * @return array\r\n     *\/\r\n    public function toArray($notifiable)\r\n    {\r\n        return [\r\n            \/\/\r\n        ];\r\n    }\r\n}<\/pre>\n<p>\u306a\u304a\u3001\u3053\u306e\u4e2d\u3067\u91cd\u8981\u306a\u306e\u306f\u6b21\u306e\uff13\u30f6\u6240\u3067\u3059\u3002<\/p>\n<h3>\u30e1\u30fc\u30eb\u53d7\u4fe1\u3092\u62d2\u5426\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u30ad\u30e3\u30f3\u30bb\u30eb\u3059\u308b<\/h3>\n<p>\u307e\u305a\u3001\u30e1\u30fc\u30eb\u53d7\u4fe1\u3092\u62d2\u5426\u3057\u3066\u3044\u308b\uff08\u3064\u307e\u308a\u3001<code>users<\/code>\u30c6\u30fc\u30d6\u30eb\u306e<code>email_accepted<\/code>\u304c<code>false<\/code>\u306e\u5834\u5408\uff09\u306f\u30e1\u30fc\u30eb\u9001\u4fe1\u3092\u30ad\u30e3\u30f3\u30bb\u30eb\u3057\u306a\u3051\u308c\u3070\u3044\u3051\u307e\u305b\u3093\u304c\u3001\u3084\u308a\u65b9\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b<code>via()<\/code>\u306e\u8fd4\u308a\u5024\u3092\u7a7a\u767d\u306e\u914d\u5217\u306b\u3059\u308b\u3053\u3068\u3067\u5b9f\u88c5\u3057\u307e\u3059\u3002<\/p>\n<pre>public function via($notifiable)\r\n{\r\n    <strong>if(!$notifiable-&gt;email_accepted) {<\/strong>\r\n\r\n<strong>        return [];<\/strong>\r\n\r\n<strong>    }<\/strong>\r\n\r\n    return ['mail'];\r\n}<\/pre>\n<h2>\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3059\u308b\u90e8\u5206<\/h2>\n<p><code>toMail()<\/code>\u5185\u3067\u30e1\u30fc\u30eb\u9001\u4fe1\u3059\u308b\u30b3\u30fc\u30c9\u81ea\u4f53\u306f\u901a\u5e38\u306e<code>Notification<\/code>\u3068\u540c\u3058\u3067\u3059\u304c\u3001\u91cd\u8981\u306a\u306e\u306f<code>$notifiable<\/code>\u304c\u3001\u3053\u306e\u30b1\u30fc\u30b9\u306e\u5834\u5408\u306f<code>users<\/code>\u30c6\u30fc\u30d6\u30eb\u306e\u30c7\u30fc\u30bf\u306b\u306a\u308b\u3068\u3044\u3046\u90e8\u5206\u3067\u3059\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001<code>$notifiable-&gt;id<\/code>\u306f\u3001\u30e6\u30fc\u30b6\u30fcID\u3092\u53d6\u5f97\u3067\u304d\u307e\u3059\u3057\u3001<code>$notifiable-&gt;name<\/code>\u306f\u30e6\u30fc\u30b6\u30fc\u306e\u540d\u524d\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u30d3\u30e5\u30fc\u3092\u6307\u5b9a\u3059\u308b\u90e8\u5206<\/h3>\n<p>\u4eca\u56de\u306f\u30e1\u30fc\u30eb\u30de\u30ac\u30b8\u30f3\u3092\u60f3\u5b9a\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u5185\u5bb9\u304c\u6bce\u56de\u5909\u308f\u308b\u3068\u3044\u3046\u524d\u63d0\u3067\u30b3\u30fc\u30c9\u3092\u66f8\u304d\u307e\u3057\u305f\u3002\u305d\u306e\u305f\u3081\u3001<code>NewsLetter<\/code>\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30d3\u30e5\u30fc\u3092\u6307\u5b9a\u3059\u308b\u5f62\u3067\u5b9f\u884c\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre><strong>new NewsLetter('emails.news_letter')<\/strong><\/pre>\n<h2>\u30d3\u30e5\u30fc\u3092\u3064\u304f\u308b<\/h2>\n<p>\u3067\u306f\u3001\u30e1\u30fc\u30eb\u30de\u30ac\u30b8\u30f3\u306e\u5185\u5bb9\u3092\u30d3\u30e5\u30fc\u3068\u3057\u3066\u3064\u304f\u308a\u307e\u3057\u3087\u3046\u3002<br \/>\n\u300c<strong>resources\/views\/emails\/news_letter.blade.php<\/strong>\u300d\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><strong>{{ $user-&gt;name }} \u3055\u3093\u3001\u3053\u3093\u306b\u3061\u306f\u3002&lt;br&gt;&lt;br&gt;<\/strong>\r\n\r\n<strong>\uff08\u30e1\u30fc\u30eb\u30de\u30ac\u30b8\u30f3\u306e\u5185\u5bb9\uff09&lt;br&gt;<\/strong>\r\n<strong>\uff08\u30e1\u30fc\u30eb\u30de\u30ac\u30b8\u30f3\u306e\u5185\u5bb9\uff09&lt;br&gt;<\/strong>\r\n<strong>\uff08\u30e1\u30fc\u30eb\u30de\u30ac\u30b8\u30f3\u306e\u5185\u5bb9\uff09&lt;br&gt;&lt;br&gt;<\/strong>\r\n\r\n<strong>&lt;a href=\"{{ url('\/your\/event\/url') }}\"&gt;\u8a73\u3057\u3044\u60c5\u5831\u306f\u3053\u3061\u3089&lt;\/a&gt;&lt;br&gt;&lt;br&gt;<\/strong>\r\n\r\n<strong>\u306a\u304a\u3001\u4eca\u5f8c\u540c\u69d8\u306e\u30e1\u30fc\u30eb\u3092\u53d7\u4fe1\u3057\u306a\u3044\u5834\u5408\u306f&lt;a href=\"{{ route('opt_out', $ticket-&gt;uuid) }}\"&gt;\u3053\u3061\u3089&lt;\/a&gt;<\/strong><\/pre>\n<h1>\u30c6\u30b9\u30c8\u3057\u3066\u307f\u308b<\/h1>\n<p>\u3067\u306f\u3001\u5b9f\u969b\u306b\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3057\u3066\u307f\u307e\u3057\u3087\u3046\uff01<\/p>\n<p>\u3046\u307e\u304f\u3044\u3063\u3066\u3044\u308b\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u305f\u3081\u306b\u6b21\u306e\u30eb\u30fc\u30c8\u3092\u300c<strong>routes\/web.php<\/strong>\u300d\u306b\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><strong>Route::get('opt_out_test', 'OptOutController@test');<\/strong><\/pre>\n<p>\u305d\u3057\u3066\u3001\u300c<strong>app\/Http\/Controllers\/OptOutController.php<\/strong>\u300d\u306b\u30c6\u30b9\u30c8\u7528\u306e\u30e1\u30bd\u30c3\u30c9<code>test()<\/code>\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<pre>&lt;?php\r\n\r\nnamespace App\\Http\\Controllers;\r\n\r\nuse App\\Notifications\\NewsLetter;\r\nuse Illuminate\\Http\\Request;\r\n\r\nclass OptOutController extends Controller\r\n{\r\n    \/\/ \u7701\u7565\r\n\r\n    <strong>public function test() {<\/strong>\r\n\r\n<strong>        $users = \\App\\User::all();<\/strong>\r\n<strong>        $view = 'emails.news_letter';<\/strong>\r\n<strong>        \\Notification::send($users, new NewsLetter($view));<\/strong>\r\n\r\n<strong>    }<\/strong>\r\n}<\/pre>\n<p>\u3053\u308c\u3067\u3001\u300c<strong>http:\/\/******\/opt_out_test<\/strong>\u300d\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u5168\u3066\u306e\u30e6\u30fc\u30b6\u30fc\u306b\u5bfe\u3057\u3066<code>Notification<\/code>\u304c\u5b9f\u884c\u3055\u308c\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001\u30c1\u30a7\u30c3\u30af\u3059\u308b\u9805\u76ee\u306f\u4ee5\u4e0b\u306e\uff12\u3064\u3067\u3059\u3002<\/p>\n<ul>\n<li>\u30e1\u30fc\u30eb\u53d7\u4fe1\u306b\u540c\u610f\u3057\u3066\u3044\u308b\u4eba\u3060\u3051\u306b\u9001\u4fe1\u3067\u304d\u3066\u3044\u308b\u304b\uff08\u62d2\u5426\u3057\u3066\u3044\u308b\u4eba\u306e\u30e1\u30fc\u30eb\u9001\u4fe1\u3092\u30ad\u30e3\u30f3\u30bb\u30eb\u3067\u304d\u3066\u3044\u308b\u304b\uff09<\/li>\n<li>\u30e1\u30fc\u30eb\u306b\u304b\u304b\u308c\u3066\u3044\u308b\u300c\u62d2\u5426\u30ea\u30f3\u30af\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u305f\u3089\u30e1\u30fc\u30eb\u53d7\u4fe1\u3092\u62d2\u5426\u3059\u308b\u8a2d\u5b9a\u306b\u3067\u304d\u308b\u304b<\/li>\n<\/ul>\n<p>\u3067\u306f\u3001\u307e\u305a\u306f\u30c6\u30fc\u30d6\u30eb\u5185\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<br \/>\n\u8d64\u67a0\u306e\u4eba\u305f\u3061\u304c\u30e1\u30fc\u30eb\u53d7\u4fe1\u306b\u540c\u610f\u3057\u3066\u3044\u308b\u30e6\u30fc\u30b6\u30fc\u3067\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5471\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/opt_in_out_4.png\" alt=\"\" width=\"544\" height=\"464\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/opt_in_out_4.png 544w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/opt_in_out_4-300x256.png 300w\" sizes=\"auto, (max-width: 544px) 100vw, 544px\" \/><\/p>\n<p>\u3067\u306f\u5b9f\u969b\u306b\u300c<strong>http:\/\/******\/opt_out_test<\/strong>\u300d\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u30e1\u30fc\u30eb\u9001\u4fe1\u3057\u3066\u307f\u307e\u3057\u3087\u3046\uff01<\/p>\n<p>\u9001\u4fe1\u3055\u308c\u305f\u5168\u30e1\u30fc\u30eb\u3067\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5472\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/opt_in_out_5.png\" alt=\"\" width=\"466\" height=\"148\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/opt_in_out_5.png 466w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/opt_in_out_5-300x95.png 300w\" sizes=\"auto, (max-width: 466px) 100vw, 466px\" \/><\/p>\n<p><code>To<\/code>\u306e\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u898b\u3066\u307f\u308b\u3068\u3001\u53d7\u4fe1\u306b\u540c\u610f\u3057\u305f\u30e6\u30fc\u30b6\u30fc\u3060\u3051\u306b\u30e1\u30fc\u30eb\u9001\u4fe1\u3067\u304d\u3066\u3044\u308b\u3053\u3068\u304c\u5206\u304b\u308a\u307e\u3059\ud83d\ude0a\u2728<\/p>\n<p>\u3067\u306f\u3001\u6b21\u306b\u300c\u592a\u90ce\u3055\u3093\u300d\u306b\u9001\u4fe1\u3055\u308c\u305f\u30e1\u30fc\u30eb\u306e\u4e2d\u306b\u3042\u308b\u300c\u62d2\u5426\u30ea\u30f3\u30af\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u3001\u3046\u307e\u304f\u51e6\u7406\u304c\u3067\u304d\u308b\u304b\u30c1\u30a7\u30c3\u30af\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5473\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/opt_in_out_6.png\" alt=\"\" width=\"402\" height=\"351\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/opt_in_out_6.png 402w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/opt_in_out_6-300x262.png 300w\" sizes=\"auto, (max-width: 402px) 100vw, 402px\" \/><\/p>\n<p>\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u8868\u793a\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5474\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/opt_in_out_7.png\" alt=\"\" width=\"340\" height=\"45\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/opt_in_out_7.png 340w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/opt_in_out_7-300x40.png 300w\" sizes=\"auto, (max-width: 340px) 100vw, 340px\" \/><\/p>\n<p>\u3067\u306f\u3001\u5ff5\u306e\u305f\u3081\u30c6\u30fc\u30d6\u30eb\u3082\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5475\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/opt_in_out_8.png\" alt=\"\" width=\"563\" height=\"328\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/opt_in_out_8.png 563w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/opt_in_out_8-300x175.png 300w\" sizes=\"auto, (max-width: 563px) 100vw, 563px\" \/><\/p>\n<p>\u306f\u3044\uff01\u300c\u592a\u90ce\u3055\u3093\u300d\u306e<code>email_accepted<\/code>\u304c<code>false<\/code>\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u5168\u3066\u3046\u307e\u304f\u3044\u304d\u307e\u3057\u305f\ud83d\ude0a\u2728<\/p>\n<h1>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b<\/h1>\n<p>\u4eca\u56de\u5b9f\u969b\u306b\u958b\u767a\u3057\u305f\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u4e00\u5f0f\u3092\u4ee5\u4e0b\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u203b \u305f\u3060\u3057\u3001\u30ed\u30b0\u30a4\u30f3\u6a5f\u80fd\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306a\u3069\u306f\u3054\u81ea\u8eab\u3067\u884c\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<a  data-e-Disable-Page-Transition=\"true\" class=\"download-link\" title=\"\" href=\"https:\/\/blog.capilano-fw.com?download=5477&amp;tmstv=1777527541\" rel=\"nofollow\" id=\"download-link-5477\" data-redirect=\"false\" >\n\tLaravel\u3011\u30aa\u30d7\u30c8\u30a4\u30f3\uff0f\u30aa\u30d7\u30c8\u30a2\u30a6\u30c8\u306e\u30e1\u30fc\u30eb\u9001\u4fe1\u6a5f\u80fd<\/a>\n\n<h1>\u304a\u308f\u308a\u306b<\/h1>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4eca\u56de\u306f<code>Laravel<\/code>\u3092\u4f7f\u3063\u3066\u300c\u30aa\u30d7\u30c8\u30a4\u30f3\uff0f\u30aa\u30d7\u30c8\u30a2\u30a6\u30c8\u300d\u6a5f\u80fd\u3092\u3064\u304f\u3063\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u3053\u308c\u3092\u5fdc\u7528\u3059\u308c\u3070\u3001\u30e1\u30fc\u30eb\u30de\u30ac\u30b8\u30f3\u3092\u9001\u4fe1\u3059\u308b\u6a5f\u80fd\u3060\u3051\u3067\u306a\u304f\u3001\u30a4\u30d9\u30f3\u30c8\u60c5\u5831\u306e\u304a\u77e5\u3089\u305b\u3084\u30d0\u30fc\u30b2\u30f3\u306e\u901a\u77e5\u306a\u3069\u3082\u3067\u304d\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u305c\u3072\u307f\u306a\u3055\u3093\u306e\u30b5\u30a4\u30c8\u3067\u3082\u6d3b\u7528\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-3467 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_9.png\" alt=\"\" width=\"216\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_9.png 216w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_9-203x300.png 203w\" sizes=\"auto, (max-width: 216px) 100vw, 216px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u3053\u306e\u9593\u306f \u30b3\u30d4\u30da\u3067OK\uff01Laravel\u304b\u3089wordpress\u306b\u6295\u7a3f\u3059\u308b\u6a5f\u80fd\u00a0\u306a\u3069\u3044\u304f\u3064\u304bLaravel\u306eNotification\u3092\u3064\u304b\u3063\u305f\u6a5f\u80fd\u306b\u3064\u3044\u3066 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.capilano-fw.com\/?p=5466\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;\u3010Laravel\u3011\u30aa\u30d7\u30c8\u30a4\u30f3\uff0f\u30aa\u30d7\u30c8\u30a2\u30a6\u30c8\u306e\u30e1\u30fc\u30eb\u9001\u4fe1\u6a5f\u80fd&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":5483,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,97],"tags":[193,81],"class_list":["post-5466","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-laravel","category-97","tag-notification","tag-81"],"_links":{"self":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/5466","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=5466"}],"version-history":[{"count":5,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/5466\/revisions"}],"predecessor-version":[{"id":5482,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/5466\/revisions\/5482"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/media\/5483"}],"wp:attachment":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5466"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5466"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5466"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}