{"id":12814,"date":"2020-07-14T11:46:46","date_gmt":"2020-07-14T02:46:46","guid":{"rendered":"https:\/\/sendgrid.kke.co.jp\/blog\/?p=12814"},"modified":"2020-07-14T11:46:46","modified_gmt":"2020-07-14T02:46:46","slug":"laravel-php%e3%81%a7sendgrid%e3%81%ae%e3%83%a1%e3%83%bc%e3%83%ab%e3%82%92%e3%82%ad%e3%83%a5%e3%83%bc%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e9%80%81%e4%bf%a1%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/sendgrid.kke.co.jp\/blog\/?p=12814","title":{"rendered":"Laravel PHP\u3067SendGrid\u306e\u30e1\u30fc\u30eb\u3092\u30ad\u30e5\u30fc\u3092\u4f7f\u3063\u3066\u9001\u4fe1\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2020\/07\/Queue_Emails_in_Laravel_with_Twilio_SendGrid.width-808.png\" alt=\"Laravel PHP\u3067SendGrid\u306e\u30e1\u30fc\u30eb\u3092\u30ad\u30e5\u30fc\u3092\u4f7f\u3063\u3066\u9001\u4fe1\u3059\u308b\u65b9\u6cd5\" width=\"100%\" class=\"aligncenter size-full wp-image-12815\" srcset=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2020\/07\/Queue_Emails_in_Laravel_with_Twilio_SendGrid.width-808.png 808w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2020\/07\/Queue_Emails_in_Laravel_with_Twilio_SendGrid.width-808-300x157.png 300w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2020\/07\/Queue_Emails_in_Laravel_with_Twilio_SendGrid.width-808-768x401.png 768w\" sizes=\"(max-width: 808px) 100vw, 808px\" \/><\/p>\n<blockquote>\n<p>\u3053\u306e\u8a18\u4e8b\u306f <a href=\"https:\/\/www.twilio.com\/blog\/how-queue-emails-laravel-php-twilio-sendgrid\" target=\"_blank\">How to Queue Emails in Laravel PHP with Twilio SendGrid<\/a> \u306e\u6284\u8a33\u3067\u3059\u3002<\/p>\n<\/blockquote>\n<p><a href=\"https:\/\/sendgrid.kke.co.jp\/blog\/?p=12760\" rel=\"noopener\" target=\"_blank\">\u524d\u56de<\/a>\u306fLarevel\u3092\u4f7f\u3063\u3066\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u306e\u78ba\u8a8d\u6a5f\u80fd\u3092\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>Laravel\u304c\u4ed6\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3068\u7570\u306a\u308b\u6a5f\u80fd\u306e1\u3064\u306b\u3001\u6642\u9593\u306e\u304b\u304b\u308b\u30bf\u30b9\u30af\u3092\u975e\u540c\u671f\u3067\u5b9f\u884c\u3059\u308b\u300cLaravel\u30ad\u30e5\u30fc\u300d\u304c\u3042\u308a\u307e\u3059\u3002 <\/p>\n<p>\u4eca\u56de\u306f\u524d\u56de\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u30d9\u30fc\u30b9\u306b\u3001Laravel\u30ad\u30e5\u30fc\u3092\u4f7f\u3063\u3066\u767b\u9332\u30e6\u30fc\u30b6\u306b\u30e1\u30fc\u30eb\u3092\u9001\u4fe1\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<br \/>\n\u30ad\u30e5\u30fc\u3092\u4f7f\u3046\u3053\u3068\u3067\u30bf\u30b9\u30af\u304c\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u3059\u308b\u306e\u3092\u9632\u304e\u3001\u30e1\u30fc\u30eb\u306e\u914d\u4fe1\u6027\u80fd\u3092\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u5fc5\u8981\u6761\u4ef6<\/h3>\n<table border>\n<tr>\n<td>\n1. \u524d\u56de\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306e\u5b9f\u88c5\u3092\u7d42\u3048\u3066\u3044\u308b\u3053\u3068<br \/>\n2. \u3042\u306a\u305f\u306e\u60c5\u71b1&#x1f600;\n<\/td>\n<\/tr>\n<\/table>\n<h3>Laravel\u30ad\u30e5\u30fc\u306e\u5b9f\u88c5<\/h3>\n<p>\u524d\u56de\u4f5c\u6210\u3057\u305f\u3082\u306e\u3092\u30d9\u30fc\u30b9\u306b\u3001Laravel \u30ad\u30e5\u30fc\u3092\u5b9f\u88c5\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002Laravel\u30ad\u30e5\u30fc\u3092\u5229\u7528\u3059\u308b\u3068\u3001\u30e1\u30fc\u30eb\u30921\u901a\u305a\u3064\u78ba\u5b9f\u306b\u914d\u4fe1\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u305f\u3081\u3001\u5e83\u304f\u5229\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u307e\u305f\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u30e1\u30fc\u30eb\u306b\u512a\u5148\u9806\u4f4d\u3092\u3064\u3051\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>Laravel\u30ad\u30e5\u30fc\u3092\u5b9f\u88c5\u3059\u308b\u524d\u306b\u3001Laravel\u304c\u3069\u306e\u3088\u3046\u306b\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u306e\u78ba\u8a8d\u6a5f\u80fd\u3092\u5b9f\u88c5\u3057\u3066\u3044\u308b\u304b\u3092\u78ba\u8a8d\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>Laravel\u306f\u767b\u9332\u30d7\u30ed\u30bb\u30b9\u306e\u4e2d\u3067<strong>\u30a4\u30d9\u30f3\u30c8<\/strong>\u3092\u767a\u751f\u3055\u305b\u307e\u3059\u3002\u65b0\u898f\u30e6\u30fc\u30b6\u304c\u767b\u9332\u3055\u308c\u308b\u305f\u3073\u306b\u30a4\u30d9\u30f3\u30c8\u304c\u767a\u751f\u3057\u3001<span style=\"background-color:#d3d3d3\">SendEmailVerificationNotification<\/span>\u30af\u30e9\u30b9\u306b\u3088\u3063\u3066\u30ea\u30c3\u30b9\u30f3\u3055\u308c\u307e\u3059\u3002\u3053\u306e\u30a4\u30d9\u30f3\u30c8\u306f\u3001<span style=\"background-color:#d3d3d3\">app\/Providers<\/span>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u4e0b\u306b\u3042\u308b<span style=\"background-color:#d3d3d3\">EventServiceProvider.php<\/span>\u30d5\u30a1\u30a4\u30eb\u3067\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u767b\u9332\u30a4\u30d9\u30f3\u30c8\u3092\u30ea\u30c3\u30b9\u30f3\u3059\u308b\u30ea\u30b9\u30ca\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306b\u5fc5\u8981\u306a\u3082\u306e\u306f\u3053\u308c\u3067\u5168\u3066\u3067\u3059\u3002\u3053\u308c\u4ee5\u964d\u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u8a2d\u5b9a\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u306a\u304f\u3001\u72ec\u81ea\u306e\u30e1\u30fc\u30eb\u9001\u4fe1\u30d5\u30ed\u30fc\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u30ea\u30b9\u30ca\u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3059\u308b<\/h3>\n<p>Laravel\u3067\u306f\u3001\u30a4\u30d9\u30f3\u30c8\u30ea\u30b9\u30ca\u306f<span style=\"background-color:#d3d3d3\">handle()<\/span>\u30e1\u30bd\u30c3\u30c9\u3067\u30a4\u30d9\u30f3\u30c8\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u53d7\u3051\u53d6\u308a\u307e\u3059\u3002<span style=\"background-color:#d3d3d3\">handle()<\/span>\u30e1\u30bd\u30c3\u30c9\u5185\u3067\u3001\u30a4\u30d9\u30f3\u30c8\u304c\u767a\u751f\u3057\u305f\u969b\u306e\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u5b9f\u88c5\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002Artisan CLI\u3092\u4f7f\u3063\u3066\u30ea\u30b9\u30ca\u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3057\u3066\u307f\u307e\u3057\u3087\u3046:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ php artisan make:listener EmailVerificationListener\r\n<\/pre>\n<p>\u5b58\u5728\u3057\u306a\u3051\u308c\u3070\u65b0\u3057\u304f<span style=\"background-color:#d3d3d3\">app\/Listener<\/span>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u4f5c\u6210\u3055\u308c\u3001\u305d\u306e\u4e2d\u306b<span style=\"background-color:#d3d3d3\">EmailVerificationListener.php<\/span>\u30d5\u30a1\u30a4\u30eb\u304c\u751f\u6210\u3055\u308c\u307e\u3059\u3002\u305d\u306e\u4e2d\u306e<span style=\"background-color:#d3d3d3\">handle()<\/span>\u95a2\u6570\u306e\u4e2d\u3067\u30a4\u30d9\u30f3\u30c8\u3092\u51e6\u7406\u3057\u307e\u3059\u3002\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u30e1\u30bd\u30c3\u30c9\u306f\u5fc5\u8981\u306a\u3044\u306e\u3067\u3001\u524a\u9664\u3057\u3066\u3082\u69cb\u3044\u307e\u305b\u3093\u3002<span style=\"background-color:#d3d3d3\">handle()<\/span>\u95a2\u6570\u304b\u3089\u3001\u30e1\u30fc\u30eb\u9001\u4fe1\u306e\u30b8\u30e7\u30d6\u3092\u30c7\u30a3\u30b9\u30d1\u30c3\u30c1\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u30d5\u30a1\u30a4\u30eb\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n&lt;?php\r\nnamespace App\\Listeners;\r\n \r\nuse Illuminate\\Auth\\Events\\Registered;\r\nuse App\\Jobs\\EmailVerification;\r\n \r\nclass EmailVerificationListener\r\n{\r\n  \/**\r\n   * Handle the event.\r\n   *\r\n   * @param  object  $event\r\n   * @return void\r\n   *\/\r\n  public function handle(Registered $event)\r\n  {\r\n      EmailVerification::dispatch($event);\r\n  }\r\n}\r\n<\/pre>\n<p>\u3053\u3053\u3067\u3001<span style=\"background-color:#d3d3d3\">EventServiceProvider<\/span>\u30d5\u30a1\u30a4\u30eb\u5185\u306b\u767b\u9332\u3055\u308c\u3066\u3044\u308b\u30a4\u30d9\u30f3\u30c8\u3092\u30ea\u30c3\u30b9\u30f3\u3059\u308b<span style=\"background-color:#d3d3d3\">EmailVerificationListener<\/span>\u3092\u8ffd\u52a0\u3057\u3001<span style=\"background-color:#d3d3d3\">SendEmailVerificationNotification<\/span>\u30ea\u30b9\u30ca\u3092\u524a\u9664\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n...\r\nuse App\\Listeners\\EmailVerificationListener;\r\nclass EventServiceProvider extends ServiceProvider\r\n{\r\n  \/**\r\n   * The event listener mappings for the application.\r\n   *\r\n   * @var array\r\n   *\/\r\n \r\n  protected $listen = &#x5B;\r\n      Registered::class =&gt; &#x5B;\r\n          EmailVerificationListener::clss,\r\n      ],\r\n  ];\r\n...\r\n<\/pre>\n<h3>\u30b8\u30e7\u30d6\u3092\u4f5c\u6210\u3059\u308b<\/h3>\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30ad\u30e5\u30fc\u30a4\u30f3\u30b0\u53ef\u80fd\u306a\u30b8\u30e7\u30d6\u306f\u3059\u3079\u3066<span style=\"background-color:#d3d3d3\">app\/Jobs<\/span> \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u4fdd\u5b58\u3055\u308c\u307e\u3059\u3002<span style=\"background-color:#d3d3d3\">app\/Jobs<\/span>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u5b58\u5728\u3057\u306a\u3044\u5834\u5408\u3001<span style=\"background-color:#d3d3d3\">make:job<\/span> Artisan\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002\u4ee5\u4e0b\u306eArtisan CLI\u3092\u4f7f\u7528\u3057\u3066\u3001EmailVerification\u30b8\u30e7\u30d6\u3092\u751f\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ php artisan make:job EmailVerification\r\n<\/pre>\n<p>\u30e6\u30fc\u30b6\u306b\u30e1\u30fc\u30eb\u3067\u9001\u4fe1\u3055\u308c\u308b<span style=\"background-color:#d3d3d3\">URL<\/span>\u30d5\u30a1\u30b5\u30fc\u30c9\u3092\u4f7f\u7528\u3057\u3001<span style=\"background-color:#d3d3d3\">temporarySignedRoute()<\/span>\u30e1\u30bd\u30c3\u30c9\u3092\u4ecb\u3057\u3066\u78ba\u8a8d\u7528\u306e\u30ea\u30f3\u30af\u3092\u4f5c\u6210\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u305d\u306e\u5f8c\u3001<span style=\"background-color:#d3d3d3\">$event<\/span>\u5909\u6570\u306e\u4e0b\u306b\u3042\u308b<span style=\"background-color:#d3d3d3\">Mail<\/span>\u30d5\u30a1\u30b5\u30fc\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u30e6\u30fc\u30b6\u5b9b\u306e\u30e1\u30fc\u30eb\u3092\u30ad\u30e5\u30fc\u306b\u5165\u308c\u307e\u3059\u3002\u3053\u306e\u30b8\u30e7\u30d6\u5185\u3067\u306f\u3001EmailVerification mailable\u30af\u30e9\u30b9\u3092\u547c\u3073\u51fa\u3057\u3066\u30e1\u30fc\u30eb\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u4f5c\u6210\u3057\u3001\u78ba\u8a8d\u7528\u306e\u30ea\u30f3\u30af\u3092\u6e21\u3057\u307e\u3059\u3002EmailVerification\u30b8\u30e7\u30d6\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059:<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n&lt;?php\r\nnamespace App\\Jobs;\r\nuse Illuminate\\Bus\\Queueable;\r\nuse Illuminate\\Queue\\SerializesModels;\r\nuse Illuminate\\Queue\\InteractsWithQueue;\r\nuse Illuminate\\Contracts\\Queue\\ShouldQueue;\r\nuse Illuminate\\Foundation\\Bus\\Dispatchable;\r\nuse App\\Mail\\EmailVerification as EmailVerificationMailable;\r\nuse Mail;\r\nuse Illuminate\\Support\\Facades\\URL;\r\nuse Illuminate\\Support\\Carbon;\r\nclass EmailVerification implements ShouldQueue\r\n{\r\n  use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;\r\n  protected $event;\r\n  \/**\r\n   * Create a new job instance.\r\n   *\r\n   * @return void\r\n   *\/\r\n  public function __construct($event)\r\n  {\r\n      $this-&gt;event = $event;\r\n  }\r\n   \/**\r\n   * Execute the job.\r\n   *\r\n   * @return void\r\n   *\/\r\n  public function handle()\r\n  {\r\n      $link = URL::temporarySignedRoute(\r\n          'verification.verify', Carbon::now()-&gt;addMinutes(60),&#x5B;'id' =&gt; $this-&gt;event-&gt;user-&gt;id]\r\n      );\r\n      Mail::to($this-&gt;event-&gt;user-&gt;email)-&gt;queue(new EmailVerificationMailable($link));\r\n  }\r\n}\r\n<\/pre>\n<h3>Mailable\u30af\u30e9\u30b9\u306e\u4f5c\u6210<\/h3>\n<p>Laravel\u3067\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304b\u3089\u306e\u5404\u7a2e\u30e1\u30fc\u30eb\u306f\u201cmailable\u201d\u30af\u30e9\u30b9\u3067\u9001\u4fe1\u3055\u308c\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u30af\u30e9\u30b9\u306f<span style=\"background-color:#d3d3d3\">app\/Maill<\/span>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u683c\u7d0d\u3055\u308c\u3066\u3044\u307e\u3059\u3002Artisan CLI\u3092\u4f7f\u3063\u3066\u3001\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u306e\u78ba\u8a8d\u7528\u306e\u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3057\u3066\u307f\u307e\u3057\u3087\u3046:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ php artisan make:mail EmailVerification\r\n<\/pre>\n<p>\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u65b0\u3057\u3044\u30c7\u30a3\u30ec\u30af\u30c8\u30ea<span style=\"background-color:#d3d3d3\">app\/Mail<\/span>\u304c\u751f\u6210\u3055\u308c\u3001\u305d\u306e\u4e2d\u306b<span style=\"background-color:#d3d3d3\">EmailVerification.php<\/span>\u30d5\u30a1\u30a4\u30eb\u304c\u751f\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>Laravel\u306eMailable\u30af\u30e9\u30b9\u306b\u306f\u3001<span style=\"background-color:#d3d3d3\">constructor()<\/span>\u3068\u4e00\u7dd2\u306b <span style=\"background-color:#d3d3d3\">build()<\/span>\u30e1\u30bd\u30c3\u30c9\u304c\u3042\u308a\u3001\u9001\u4fe1\u3059\u308b\u30e1\u30fc\u30eb\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u3053\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u4e2d\u3067\u3001\u30e1\u30fc\u30eb\u3068\u4e00\u7dd2\u306b\u8ee2\u9001\u3059\u308b\u30c7\u30fc\u30bf\u3092\u6e21\u3057\u307e\u3059\u3002<span style=\"background-color:#d3d3d3\">EmailVerification<\/span>\u30af\u30e9\u30b9\u3067\u306f\u3001\u30e1\u30fc\u30eb\u306b\u30c8\u30fc\u30af\u30f3\u3092\u6e21\u3059\u3088\u3046\u306b\u3057\u3066\u3001\u30e1\u30fc\u30eb\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306b\u78ba\u5b9f\u306b\u6e21\u3059\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u3067\u306f\u3001\u30e1\u30fc\u30eb\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u4f5c\u6210\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306f<span style=\"background-color:#d3d3d3\">resources\/views<\/span>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u4e0b\u306e<span style=\"background-color:#d3d3d3\">email<\/span>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u4fdd\u5b58\u3055\u308c\u307e\u3059\u3002\u3082\u3057\u5b58\u5728\u3057\u306a\u3051\u308c\u3070\u3001<span style=\"background-color:#d3d3d3\">email<\/span>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u6b21\u306b\u3001<span style=\"background-color:#d3d3d3\">resources\/views\/email<\/span>\u30d5\u30a9\u30eb\u30c0\u5185\u306b\u65b0\u3057\u3044\u30d5\u30a1\u30a4\u30eb<span style=\"background-color:#d3d3d3\">emailVerificationMail.blade.php<\/span>\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc\u3057\u3066\u3001<span style=\"background-color:#d3d3d3\">emailVerificationMail.blade.php<\/span>\u30d5\u30a1\u30a4\u30eb\u306b\u8cbc\u308a\u3064\u3051\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;!DOCTYPE html PUBLIC &quot;-\/\/W3C\/\/DTD XHTML 1.0 Strict\/\/EN&quot; &quot;http:\/\/www.w3.org\/TR\/xhtml1\/DTD\/xhtml1-strict.dtd&quot;&gt;\r\n&lt;html xmlns=&quot;http:\/\/www.w3.org\/1999\/xhtml&quot; xmlns=&quot;http:\/\/www.w3.org\/1999\/xhtml&quot;&gt;\r\n&lt;head&gt;\r\n &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text\/html; charset=utf-8&quot; \/&gt;\r\n &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width&quot; \/&gt;\r\n &lt;style&gt;\r\n   table.secondary:hover td {\r\n     background: #d0d0d0 !important;\r\n     color: #555;\r\n   }\r\n \r\n   table.secondary:hover td a {\r\n     color: #555 !important;\r\n   }\r\n \r\n   table.secondary td a:visited {\r\n     color: #555 !important;\r\n   }\r\n \r\n   table.secondary:active td a {\r\n     color: #555 !important;\r\n   }\r\n \r\n   table.success:hover td {\r\n     background: #457a1a !important;\r\n   }\r\n \r\n   table.alert:hover td {\r\n     background: #970b0e !important;\r\n   }\r\n \r\n   a:hover {\r\n     color: #2795b6 !important;\r\n   }\r\n \r\n   a:active {\r\n     color: #2795b6 !important;\r\n   }\r\n \r\n   a:visited {\r\n     color: #2ba6cb !important;\r\n   }\r\n \r\n   h1 a:active {\r\n     color: #2ba6cb !important;\r\n   }\r\n \r\n   h2 a:active {\r\n     color: #2ba6cb !important;\r\n   }\r\n \r\n   h3 a:active {\r\n     color: #2ba6cb !important;\r\n   }\r\n \r\n   h4 a:active {\r\n     color: #2ba6cb !important;\r\n   }\r\n \r\n   h5 a:active {\r\n     color: #2ba6cb !important;\r\n   }\r\n \r\n   h6 a:active {\r\n     color: #2ba6cb !important;\r\n   }\r\n \r\n   h1 a:visited {\r\n     color: #2ba6cb !important;\r\n   }\r\n \r\n   h2 a:visited {\r\n     color: #2ba6cb !important;\r\n   }\r\n \r\n   h3 a:visited {\r\n     color: #2ba6cb !important;\r\n   }\r\n \r\n   h4 a:visited {\r\n     color: #2ba6cb !important;\r\n   }\r\n \r\n   h5 a:visited {\r\n     color: #2ba6cb !important;\r\n   }\r\n \r\n   h6 a:visited {\r\n     color: #2ba6cb !important;\r\n   }\r\n \r\n   table.button:hover td {\r\n     background: #2795b6 !important;\r\n   }\r\n \r\n   table.button:visited td {\r\n     background: #2795b6 !important;\r\n   }\r\n \r\n   table.button:active td {\r\n     background: #2795b6 !important;\r\n   }\r\n \r\n   table.button:hover td {\r\n     background: #2795b6 !important;\r\n   }\r\n \r\n   table.tiny-button:hover td {\r\n     background: #2795b6 !important;\r\n   }\r\n \r\n   table.small-button:hover td {\r\n     background: #2795b6 !important;\r\n   }\r\n \r\n   table.medium-button:hover td {\r\n     background: #2795b6 !important;\r\n   }\r\n \r\n   table.large-button:hover td {\r\n     background: #2795b6 !important;\r\n   }\r\n \r\n   table.button:hover td a {\r\n     color: #fff !important;\r\n   }\r\n \r\n   table.button:visited td a {\r\n     color: #fff !important;\r\n   }\r\n \r\n   table.button:active td a {\r\n     color: #fff !important;\r\n   }\r\n \r\n   table.button:hover td a {\r\n     color: #fff !important;\r\n   }\r\n \r\n   table.button:active td a {\r\n     color: #fff !important;\r\n   }\r\n \r\n   table.button td a:visited {\r\n     color: #fff !important;\r\n   }\r\n \r\n   table.tiny-button:hover td a {\r\n     color: #fff !important;\r\n   }\r\n \r\n   table.tiny-button:active td a {\r\n     color: #fff !important;\r\n   }\r\n \r\n   table.tiny-button td a:visited {\r\n     color: #fff !important;\r\n   }\r\n \r\n   table.small-button:hover td a {\r\n     color: #fff !important;\r\n   }\r\n \r\n   table.small-button:active td a {\r\n     color: #fff !important;\r\n   }\r\n \r\n   table.small-button td a:visited {\r\n     color: #fff !important;\r\n   }\r\n \r\n   table.medium-button:hover td a {\r\n     color: #fff !important;\r\n   }\r\n \r\n   table.medium-button:active td a {\r\n     color: #fff !important;\r\n   }\r\n \r\n   table.medium-button td a:visited {\r\n     color: #fff !important;\r\n   }\r\n \r\n   table.large-button:hover td a {\r\n     color: #fff !important;\r\n   }\r\n \r\n   table.large-button:active td a {\r\n     color: #fff !important;\r\n   }\r\n \r\n   table.large-button td a:visited {\r\n     color: #fff !important;\r\n   }\r\n &lt;\/style&gt;\r\n&lt;\/head&gt;\r\n \r\n&lt;body style=&quot;width: 100%; max-width:800px; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; color: #222; font-family: Helvetica,Arial,sans-serif; font-weight: 400; text-align: left; line-height: 19px; font-size: 14px; margin: 0; padding: 0;&quot;&gt;\r\n &lt;style type=&quot;text\/css&quot;&gt;\r\n &lt;\/style&gt;\r\n \r\n &lt;table class=&quot;body&quot; style=&quot;border-spacing: 0; border-collapse: collapse; vertical-align: top; text-align: left; height: 100%; width: 100%; color: #222; font-family: Helvetica,Arial,sans-serif; font-weight: 400; line-height: 19px; font-size: 14px; margin: 0; padding: 0;&quot;&gt;\r\n   &lt;tr style=&quot;vertical-align: top; text-align: left; padding: 0;&quot; align=&quot;left&quot;&gt;\r\n     &lt;td class=&quot;center&quot; align=&quot;center&quot; valign=&quot;top&quot; style=&quot;word-break: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; border-collapse: collapse !important; vertical-align: top; text-align: center; color: #222; font-family: Helvetica,Arial,sans-serif; font-weight: 400; line-height: 19px; font-size: 14px; margin: 0; padding: 0;&quot;&gt;\r\n       &lt;table class=&quot;container&quot; style=&quot;border-spacing: 0; border-collapse: collapse; vertical-align: top; text-align: inherit; width: 100% !important; margin: 0 auto; padding: 0;background-color:#fff;&quot;&gt;\r\n         &lt;tr style=&quot;vertical-align: top; text-align: left; padding: 0;&quot; align=&quot;left&quot;&gt;\r\n           &lt;td class=&quot;wrapper last&quot; style=&quot;word-break: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; border-collapse: collapse !important; vertical-align: top; text-align: left; position: relative; color: #222; font-family: Helvetica,Arial,sans-serif; font-weight: 400; line-height: 19px; font-size: 14px; display: block !important; margin: 0; padding: 0;&quot;\r\n             align=&quot;left&quot; valign=&quot;top&quot;&gt;\r\n             &lt;table class=&quot;twelve columns&quot; style=&quot;border-spacing: 0; border-collapse: collapse; vertical-align: top; text-align: left; width: 100% !important; table-layout: fixed !important; float: none !important; display: block !important; margin: 0 auto; padding: 0;&quot;&gt;\r\n               &lt;tr style=&quot;vertical-align: top; text-align: left; padding: 0;&quot; align=&quot;left&quot;&gt;\r\n                 &lt;td class=&quot;twelve sub-columns last&quot; align=&quot;center&quot; style=&quot;word-break: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; border-collapse: collapse !important; vertical-align: top; text-align: left; min-width: 0; color: #fff; font-family: Helvetica,Arial,sans-serif; font-weight: 400; line-height: 19px; font-size: 14px; width: 100% !important; margin: 0; padding: 10px;&quot;\r\n                   valign=&quot;top&quot;&gt;\r\n \r\n                   &lt;center&gt;&lt;img src=&quot;https:\/\/i.ibb.co\/FJ96vMb\/images.png&quot; width=&quot;150&quot; height=&quot;150&quot;&gt;&lt;\/center&gt;\r\n \r\n                 &lt;\/td&gt;\r\n                 &lt;td class=&quot;expander&quot; style=&quot;word-break: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; border-collapse: collapse !important; vertical-align: top; text-align: left; visibility: hidden; width: 1px !important; color: #222; font-family: Helvetica,Arial,sans-serif; font-weight: 400; line-height: 19px; font-size: 14px; margin: 0; padding: 0;&quot;\r\n                   align=&quot;left&quot; valign=&quot;top&quot;&gt;&lt;\/td&gt;\r\n               &lt;\/tr&gt;\r\n             &lt;\/table&gt;\r\n           &lt;\/td&gt;\r\n         &lt;\/tr&gt;\r\n       &lt;\/table&gt;\r\n       &lt;table class=&quot;container&quot; style=&quot;border-spacing: 0; border-collapse: collapse; vertical-align: top; text-align: inherit; width: 100% !important; margin: 0 auto; padding: 0;border:1px solid #506374;&quot;&gt;\r\n         &lt;tr style=&quot;vertical-align: top; text-align: center; padding: 0;&quot; align=&quot;center&quot;&gt;\r\n           &lt;td style=&quot;word-break: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; border-collapse: collapse !important; vertical-align: top; text-align: center; color: #222; font-family: Helvetica,Arial,sans-serif; font-weight: 400; line-height: 19px; font-size: 14px; margin: 0; padding: 20px;&quot;\r\n             align=&quot;center&quot; valign=&quot;top&quot;&gt;\r\n \r\n             &lt;h1 style=&quot;margin:0px 0px 25px 0px;padding:0px;display:block;color:#0abe51;line-height:45px&quot;&gt;Thanks for choosing &lt;span class=&quot;il&quot;&gt;Twilio Blog Tutorial&lt;\/span&gt;&lt;\/h1&gt;\r\n \r\n             &lt;p style=&quot;font-size:22px;padding:0 0 20px;margin:0px 0px 20px 0px;color:#555555;line-height:30px&quot;&gt;Click this button to proceed&lt;\/p&gt;\r\n \r\n             &lt;div&gt;\r\n               &lt;p style=&quot;display:inline-block;margin:auto;font-size:15px;color:#2a73cc;line-height:22px;background-color:#ffffff;font-weight:bold;border:1px solid #2a73cc;border-radius:2px;font-family:'Open Sans',Arial,sans-serif&quot; align=&quot;center&quot;&gt;&lt;a style=&quot;padding:10px 25px;display:block;text-decoration:none;&quot; href=&quot;{{ $link }}&quot; style=&quot;text-decoration:none;color:#0abe51&quot; target=&quot;_blank&quot;&gt;Verify&lt;\/a&gt;&lt;\/p&gt;\r\n             &lt;\/div&gt;\r\n \r\n             &lt;br \/&gt;&lt;br \/&gt; Regards &lt;br \/&gt; Team Laravel&lt;br \/&gt;\r\n             &lt;a href=&quot;http:\/\/laravel.com&quot;&gt;Laravel.com&lt;\/a&gt;\r\n           &lt;\/td&gt;\r\n         &lt;\/tr&gt;\r\n       &lt;\/table&gt;\r\n \r\n       &lt;table class=&quot;row&quot; style=&quot;border-spacing: 0; border-collapse: collapse; vertical-align: top; text-align: left; width: 100% !important; position: relative; padding: 0;background-color:#506374;&quot;&gt;\r\n         &lt;tr style=&quot;vertical-align: top; text-align: left; padding: 0;&quot; align=&quot;left&quot;&gt;\r\n \r\n           &lt;td class=&quot;wrapper last&quot; style=&quot;word-break: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; border-collapse: collapse !important; vertical-align: top; text-align: left; position: relative; color: #222; font-family: Helvetica,Arial,sans-serif; font-weight: 400; line-height: 19px; font-size: 12px; margin: 0; padding: 0 0;&quot;\r\n             align=&quot;left&quot; valign=&quot;top&quot;&gt;\r\n             &lt;table class=&quot;twelve columns&quot; style=&quot;border-spacing: 0; border-collapse: collapse; vertical-align: top; text-align: left; width: 100% !important; table-layout: fixed !important; float: none !important; margin: 0 auto; padding: 0;&quot;&gt;\r\n               &lt;tr style=&quot;vertical-align: top; text-align: left; padding: 0;&quot; align=&quot;left&quot;&gt;\r\n                 &lt;td align=&quot;left&quot; style=&quot;word-break: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; border-collapse: collapse !important; vertical-align: top; text-align: left; color: #fff; font-family: Helvetica,Arial,sans-serif; font-weight: 400; line-height: 19px; font-size: 12px; width: 100% !important; margin: 0; padding: 10px;&quot;\r\n                   valign=&quot;top&quot;&gt;\r\n                   &lt;p style=&quot;text-align: left; color: #fff; font-family: Helvetica,Arial,sans-serif; font-weight: 400; line-height: 19px; font-size: 12px; margin: 0; padding: 0;&quot; align=&quot;center&quot;&gt;\r\n \r\n                   &lt;\/p&gt;\r\n                 &lt;\/td&gt;\r\n                 &lt;td align=&quot;right&quot; style=&quot;word-break: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; border-collapse: collapse !important; vertical-align: top; text-align: left; color: #fff; font-family: Helvetica,Arial,sans-serif; font-weight: 400; line-height: 19px; font-size: 12px; width: 100% !important; margin: 0; padding: 10px;&quot;\r\n                   valign=&quot;top&quot;&gt;\r\n                   &lt;p style=&quot;text-align: right; color: #fff; font-family: Helvetica,Arial,sans-serif; font-weight: 400; line-height: 19px; font-size: 12px; margin: 0; padding: 0;&quot; align=&quot;center&quot;&gt;\r\n                     &lt;a style=&quot;color: #fff; font-family: Helvetica,Arial,sans-serif; font-weight: 400; line-height: 19px; font-size: 12px; margin: 0; padding: 0;&quot; href=&quot;#&quot;&gt;Ankit Jain&lt;\/a&gt;\r\n                   &lt;\/p&gt;\r\n                 &lt;\/td&gt;\r\n               &lt;\/tr&gt;\r\n             &lt;\/table&gt;\r\n           &lt;\/td&gt;\r\n         &lt;\/tr&gt;\r\n       &lt;\/table&gt;\r\n       &lt;table class=&quot;row&quot; style=&quot;border-spacing: 0; border-collapse: collapse; vertical-align: top; text-align: left; width: 100% !important; position: relative; padding: 0;background-color:#fff;&quot;&gt;\r\n         &lt;tr style=&quot;vertical-align: top; text-align: left; padding: 0;&quot; align=&quot;left&quot;&gt;\r\n           &lt;td class=&quot;wrapper last&quot; style=&quot;word-break: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; border-collapse: collapse !important; vertical-align: top; text-align: left; position: relative; color: #222; font-family: Helvetica,Arial,sans-serif; font-weight: 400; line-height: 19px; font-size: 12px; margin: 0; padding: 0 0;&quot;\r\n             align=&quot;left&quot; valign=&quot;top&quot;&gt;\r\n             &lt;table class=&quot;twelve columns&quot; style=&quot;border-spacing: 0; border-collapse: collapse; vertical-align: top; text-align: left; width: 100% !important; table-layout: fixed !important; float: none !important; margin: 0 auto; padding: 0;&quot;&gt;\r\n               &lt;tr style=&quot;vertical-align: top; text-align: left; padding: 0;&quot; align=&quot;left&quot;&gt;\r\n                 &lt;td align=&quot;center&quot; style=&quot;word-break: break-word; -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; border-collapse: collapse !important; vertical-align: top; text-align: left; color: #ccc; font-family: Helvetica,Arial,sans-serif; font-weight: 400; line-height: 19px; font-size: 12px; width: 100% !important; margin: 0; padding: 10px;&quot;\r\n                   valign=&quot;top&quot;&gt;\r\n                   &lt;p style=&quot;text-align: center; color: #ccc; font-family: Helvetica,Arial,sans-serif; font-weight: 400; line-height: 19px; font-size: 12px; margin: 0; padding: 0;&quot; align=&quot;center&quot;&gt;\r\n                     &amp;copy; 2019 Laravel\r\n                     &lt;a style=&quot;color: #ccc; font-family: Helvetica,Arial,sans-serif; font-weight: 400; line-height: 19px; font-size: 12px; margin: 0; padding: 0;&quot; href=&quot;&#x5B;&#x5B;UNSUB_LINK_EN]]&quot;&gt;Unsubscribe&lt;\/a&gt;\r\n                   &lt;\/p&gt;\r\n                 &lt;\/td&gt;\r\n               &lt;\/tr&gt;\r\n             &lt;\/table&gt;\r\n           &lt;\/td&gt;\r\n         &lt;\/tr&gt;\r\n       &lt;\/table&gt;\r\n     &lt;\/td&gt;\r\n   &lt;\/tr&gt;\r\n &lt;\/table&gt;\r\n&lt;\/body&gt;\r\n \r\n&lt;\/html&gt;\r\n<\/pre>\n<p>\u3053\u3053\u3067\u306f\u3001\u30e1\u30fc\u30eb\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u69cb\u7bc9\u3059\u308b\u305f\u3081\u306b\u3001EmailVerification mailable\u30af\u30e9\u30b9\u306b\u30d3\u30e5\u30fc\u3092\u542b\u3081\u307e\u3059\u3002<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n&lt;?php\r\nnamespace App\\Mail;\r\n \r\nuse Illuminate\\Bus\\Queueable;\r\nuse Illuminate\\Mail\\Mailable;\r\nuse Illuminate\\Queue\\SerializesModels;\r\nuse Illuminate\\Contracts\\Queue\\ShouldQueue;\r\n \r\nclass EmailVerification extends Mailable\r\n{\r\n  use Queueable, SerializesModels;\r\n  protected $link;\r\n  \/**\r\n   * Create a new message instance.\r\n   *\r\n   * @return void\r\n   *\/\r\n  public function __construct($link)\r\n  {\r\n      $this-&gt;link = $link;\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      return $this-&gt;view('email.emailVerificationMail')\r\n          -&gt;subject(&quot;Verify Email Address&quot;)\r\n          -&gt;with(&#x5B;\r\n              'link' =&gt; $this-&gt;link,\r\n          ]);\r\n  }\r\n}\r\n<\/pre>\n<p>\u3053\u308c\u3067\u30ea\u30b9\u30ca\u3001\u30b8\u30e7\u30d6\u3001Mailable\u30af\u30e9\u30b9\u306f\u307b\u307c\u5b8c\u6210\u3057\u307e\u3057\u305f\u3002Mailable\u30af\u30e9\u30b9\u304cLaravel\u306b\u8a8d\u8b58\u3055\u308c\u308b\u3088\u3046\u306b\u3001<a href=\"https:\/\/laravel.com\/docs\/5.8\/queues\" rel=\"noopener\" target=\"_blank\">\u30ad\u30e5\u30fc\u30c9\u30e9\u30a4\u30d0<\/a>\u3092\u8a2d\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h3>\u30ad\u30e5\u30fc\u30c9\u30e9\u30a4\u30d0\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7<\/h3>\n<p>\u3053\u3053\u3067\u3001\u30ad\u30e5\u30fc\u30c9\u30e9\u30a4\u30d0\u3092 &#8220;database &#8220;\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<span style=\"background-color:#d3d3d3\">.env<\/span>\u30d5\u30a1\u30a4\u30eb\u306b\u4ee5\u4e0b\u306e\u8a2d\u5b9a\u3092\u8ffd\u52a0\u3057\u3001<span style=\"background-color:#d3d3d3\">APP_URL<\/span>\u306e\u5024\u3092<span style=\"background-color:#d3d3d3\">http:\/\/localhost<\/span> \u304b\u3089<span style=\"background-color:#d3d3d3\">http:\/\/localhost:8000<\/span>\u306b\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u5909\u66f4\u3057\u306a\u3044\u3068\u3001\u30ad\u30e5\u30fc\u30ef\u30fc\u30ab\u304c <strong>Invalid Signature<\/strong>\u3068\u306a\u308b\u4e0d\u6b63\u306a\u78ba\u8a8d\u7528\u30ea\u30f3\u30af\u3092\u9001\u4fe1\u3057\u3066\u3057\u307e\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nQUEUE_CONNECTION=database\r\nAPP_URL=http:\/\/localhost:8000\r\n<\/pre>\n<p>\u305d\u306e\u5f8c\u3001\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u751f\u6210\u3057\u3001\u30ad\u30e5\u30fc\u7528\u306e\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u6210\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u3001\u30ad\u30e5\u30fc\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30c6\u30fc\u30d6\u30eb\u3092\u751f\u6210\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ php artisan queue:table\r\n$ php artisan migrate\r\n<\/pre>\n<p>\u305d\u308c\u3067\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u30c6\u30b9\u30c8\u3057\u3066\u3001\u30e1\u30fc\u30eb\u304c\u30ad\u30e5\u30fc\u306b\u5165\u3063\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>\u30c6\u30b9\u30c8<\/h3>\n<p>\u30bf\u30fc\u30df\u30ca\u30eb\u30922\u3064\u958b\u3044\u3066\u304f\u3060\u3055\u3044\u30021\u3064\u306fLaravel\u958b\u767a\u30b5\u30fc\u30d0\u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u306e\u3082\u306e\u3067\u3001\u3082\u30461\u3064\u306f\u30ad\u30e5\u30fc\u30ef\u30fc\u30ab\u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u306e\u3082\u306e\u3067\u3059\u3002Laravel\u306b\u306f\u30ad\u30e5\u30fc\u30ef\u30fc\u30ab\u304c\u542b\u307e\u308c\u3066\u304a\u308a\u3001\u65b0\u3057\u3044\u30b8\u30e7\u30d6\u304c\u30ad\u30e5\u30fc\u306b\u633f\u5165\u3055\u308c\u308b\u3068\u51e6\u7406\u3092\u884c\u3044\u307e\u3059\u3002\u305d\u308c\u305e\u308c\u306e\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n# \u958b\u767a\u30b5\u30fc\u30d0\r\n$ php artisan serve\r\n \r\n# \u30ad\u30e5\u30fc\u30ef\u30fc\u30ab\u30fc\r\n$ php artisan queue:work\r\n<\/pre>\n<p>Laravel\u958b\u767a\u30b5\u30fc\u30d0\u306f <span style=\"background-color:#d3d3d3\">http:\/\/localhost:8000<\/span> \u3067\u52d5\u4f5c\u3059\u308b\u306e\u3067\u3001\u30d6\u30e9\u30a6\u30b6\u3092\u958b\u3044\u3066\u3053\u306eURL\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u767b\u9332\u753b\u9762\u306b\u9077\u79fb\u3057\u3066\u3001\u518d\u5ea6\u767b\u9332\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u7121\u4e8b\u306b\u767b\u9332\u3067\u304d\u305f\u3089\u3001\u30ad\u30e5\u30fc\u30ef\u30fc\u30ab\u306b\u30ed\u30b0\u304c\u51fa\u529b\u3055\u308c\u307e\u3059\u3002\u30ad\u30e5\u30fc\u3092\u4f7f\u3063\u305f\u30b8\u30e7\u30d6\u3084\u30e1\u30fc\u30eb\u306e\u51e6\u7406\u72b6\u6cc1\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2020\/07\/FMpjCCGOP_D9ujFw2EFQBJznpOeo_I-JE24D-hbVMmgvbX.width-800.png\" alt=\"\u30ad\u30e5\u30fc\u30ef\u30fc\u30ab\" width=\"100%\" class=\"aligncenter size-full wp-image-12819\" srcset=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2020\/07\/FMpjCCGOP_D9ujFw2EFQBJznpOeo_I-JE24D-hbVMmgvbX.width-800.png 800w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2020\/07\/FMpjCCGOP_D9ujFw2EFQBJznpOeo_I-JE24D-hbVMmgvbX.width-800-300x63.png 300w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2020\/07\/FMpjCCGOP_D9ujFw2EFQBJznpOeo_I-JE24D-hbVMmgvbX.width-800-768x161.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>Laravel\u306e\u30ad\u30e5\u30fc\u3092\u901a\u3057\u3066\u53d7\u4fe1\u3057\u305f\u30e1\u30fc\u30eb\u304c\u5c4a\u3044\u3066\u3044\u308b\u304b\u3001\u53d7\u4fe1\u30c8\u30ec\u30a4\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2020\/07\/VLaNfYbFBvISSE4Vj9ijn7qSHe6HZiu0oPzHEIzSNMJ7TS.width-800.png\" alt=\"\u53d7\u4fe1\u30c8\u30ec\u30a4\" width=\"100%\" class=\"aligncenter size-full wp-image-12820\" srcset=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2020\/07\/VLaNfYbFBvISSE4Vj9ijn7qSHe6HZiu0oPzHEIzSNMJ7TS.width-800.png 800w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2020\/07\/VLaNfYbFBvISSE4Vj9ijn7qSHe6HZiu0oPzHEIzSNMJ7TS.width-800-300x206.png 300w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2020\/07\/VLaNfYbFBvISSE4Vj9ijn7qSHe6HZiu0oPzHEIzSNMJ7TS.width-800-768x528.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>\u4e0a\u306e\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\u306e\u3088\u3046\u306a\u30e1\u30fc\u30eb\u304c\u5c4a\u304d\u3001\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u306e\u78ba\u8a8d\u3092\u6c42\u3081\u3089\u308c\u307e\u3059\u3002<strong>Verify<\/strong>\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u304c\u78ba\u8a8d\u3055\u308c\u3001<span style=\"background-color:#d3d3d3\">\/home<\/span>\u30da\u30fc\u30b8\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>SendGrid\u306e\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u3067Activity\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2020\/07\/TR3N0BUwdkTtOqUlPfLvbHy5T5BDIvBGhnrKNE8IOqXUdj.width-800.png\" alt=\"Activity\" width=\"100%\" class=\"aligncenter size-full wp-image-12821\" srcset=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2020\/07\/TR3N0BUwdkTtOqUlPfLvbHy5T5BDIvBGhnrKNE8IOqXUdj.width-800.png 800w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2020\/07\/TR3N0BUwdkTtOqUlPfLvbHy5T5BDIvBGhnrKNE8IOqXUdj.width-800-300x101.png 300w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2020\/07\/TR3N0BUwdkTtOqUlPfLvbHy5T5BDIvBGhnrKNE8IOqXUdj.width-800-768x257.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2020\/07\/f9Kk_kD5hyjKo3vjMgGBTOE_fQIS_SxJK8q3dQEb_6fKnH.width-800.png\" alt=\"recent email activity\" width=\"100%\" class=\"aligncenter size-full wp-image-12822\" srcset=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2020\/07\/f9Kk_kD5hyjKo3vjMgGBTOE_fQIS_SxJK8q3dQEb_6fKnH.width-800.png 800w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2020\/07\/f9Kk_kD5hyjKo3vjMgGBTOE_fQIS_SxJK8q3dQEb_6fKnH.width-800-300x143.png 300w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2020\/07\/f9Kk_kD5hyjKo3vjMgGBTOE_fQIS_SxJK8q3dQEb_6fKnH.width-800-768x365.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/p>\n<h3>\u307e\u3068\u3081<\/h3>\n<p>\u4eca\u56de\u306fLaravel\u30ad\u30e5\u30fc\u306e\u6a5f\u80fd\u3092\u5b9f\u88c5\u3057\u3001\u30ea\u30b9\u30ca\u3001\u30b8\u30e7\u30d6\u3001Mailable\u30af\u30e9\u30b9\u306b\u3064\u3044\u3066\u5b66\u3073\u3001Laravel\u3067\u306e\u30e1\u30fc\u30eb\u9001\u4fe1\u306e\u6a19\u6e96\u7684\u306a\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u3092\u7fd2\u5f97\u3057\u307e\u3057\u305f\u3002\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306e\u5b8c\u5168\u306a\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306fGitHub\u306e<strong><a href=\"https:\/\/github.com\/ankitjain28may\/laravel-queue-tutorial\" rel=\"noopener\" target=\"_blank\">laravel-queue-tutorial<\/a><\/strong>\u306b\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>Laravel\u306e<strong>Request another email<\/strong>\u6a5f\u80fd\u3092\u4fee\u6b63\u3057\u5fd8\u308c\u3066\u3044\u305f\u306e\u3067\u3001Laravel\u30ad\u30e5\u30fc\u306a\u3057\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u3067\u30e1\u30fc\u30eb\u9001\u4fe1\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u90e8\u5206\u306f\u81ea\u5206\u3067\u5b9f\u88c5\u3057\u3066\u3001Laravel\u30ad\u30e5\u30fc\u306e\u8a73\u7d30\u3092\u7fd2\u5f97\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><strong>\u30d2\u30f3\u30c8: <\/strong>Request another email\u6a5f\u80fd\u306f\u3001<span style=\"background-color:#d3d3d3\">app\/Http\/Controllers\/Auth<\/span>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3042\u308b<span style=\"background-color:#d3d3d3\">VerificationController<\/span>\u3092\u4f7f\u3063\u3066\u5b9f\u88c5\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>Laravel\u30ad\u30e5\u30fc\u306b\u306f\u3001<a href=\"https:\/\/laravel.com\/docs\/5.7\/queues#queue-priorities\" rel=\"noopener\" target=\"_blank\">\u30ad\u30e5\u30fc\u306e\u512a\u5148\u5ea6<\/a>\u3001<a href=\"https:\/\/laravel.com\/docs\/5.7\/queues#max-job-attempts-and-timeout\" rel=\"noopener\" target=\"_blank\">\u6700\u5927\u30b8\u30e7\u30d6\u8a66\u884c\u56de\u6570<\/a>\u3084<a href=\"https:\/\/laravel.com\/docs\/5.7\/queues#max-job-attempts-and-timeout\" rel=\"noopener\" target=\"_blank\">\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u5024\u306e\u6307\u5b9a<\/a>\u3001<a href=\"https:\/\/laravel.com\/docs\/5.7\/queues#job-chaining\" rel=\"noopener\" target=\"_blank\">\u30b8\u30e7\u30d6\u30c1\u30a7\u30fc\u30cb\u30f3\u30b0<\/a>\u3001<a href=\"https:\/\/laravel.com\/docs\/5.7\/queues#rate-limiting\" rel=\"noopener\" target=\"_blank\">\u30ec\u30fc\u30c8\u5236\u9650<\/a>\u306a\u3069\u3001\u4ed6\u306b\u3082\u591a\u304f\u306e\u512a\u308c\u305f\u6a5f\u80fd\u304c\u5099\u308f\u3063\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u6a5f\u80fd\u306b\u3064\u3044\u3066\u306f\u3001<a href=\"https:\/\/laravel.com\/docs\/5.7\/queues\" rel=\"noopener\" target=\"_blank\">Laravel\u30ad\u30e5\u30fc<\/a>\u306e\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u6700\u5f8c\u307e\u3067\u8aad\u3093\u3067\u3044\u305f\u3060\u304d\u3001\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3057\u305f\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u306e\u8a18\u4e8b\u306f How to Queue Emails in Laravel PHP with Twilio SendGrid \u306e\u6284\u8a33\u3067\u3059\u3002 \u524d\u56de\u306fLarevel\u3092\u4f7f\u3063\u3066\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u306e\u78ba\u8a8d\u6a5f\u80fd\u3092\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3057\u305f <a class=\"read-more\" href=\"https:\/\/sendgrid.kke.co.jp\/blog\/?p=12814\">&#8230;\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":2,"featured_media":12815,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[11],"tags":[],"class_list":["post-12814","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technical"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/12814","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=12814"}],"version-history":[{"count":4,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/12814\/revisions"}],"predecessor-version":[{"id":12823,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/12814\/revisions\/12823"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/media\/12815"}],"wp:attachment":[{"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12814"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12814"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12814"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}