{"id":2221,"date":"2020-11-17T11:20:31","date_gmt":"2020-11-17T02:20:31","guid":{"rendered":"https:\/\/qol-kk.com\/wp2\/?p=2221"},"modified":"2020-11-17T11:20:31","modified_gmt":"2020-11-17T02:20:31","slug":"post-2221","status":"publish","type":"post","link":"https:\/\/qol-kk.com\/wp2\/blog\/2020\/11\/17\/post-2221\/","title":{"rendered":"Laravel\uff1a\u304a\u554f\u5408\u305b\u304b\u3089\u306e\u8ff7\u60d1\u6295\u7a3f\u3092\u6483\u9000\u3057\u305f\u8a71"},"content":{"rendered":"<h2>Laravel\uff1a\u304a\u554f\u5408\u305b\u304b\u3089\u306e\u8ff7\u60d1\u6295\u7a3f\u3092\u6483\u9000\u3057\u305f\u8a71<\/h2>\n<p>\u8ff7\u60d1\u884c\u70ba\u304c\u3042\u3063\u305f\u306e\u306f\u3010\u304a\u554f\u5408\u305b\u3011\u306e\u90e8\u5206\u3002<br \/>\n\u307e\u3041\u306d\u3001\u3054\u60f3\u50cf\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<p>reCAPTCHA\u3082\u4ed5\u639b\u3051\u3066\u307f\u305f\u3093\u3060\u3051\u3069\u72b6\u6cc1\u306f\u5168\u304f\u5909\u308f\u3089\u305a\u3002<br \/>\n\u3067\u3001\u3060\u3063\u305f\u3089\u55b6\u696d\u59a8\u5bb3\u306b\u306a\u308b\u554f\u5408\u305b\u306b\u3064\u3044\u3066\u306f\u300e\u30c9\u30e1\u30a4\u30f3\u30c1\u30a7\u30c3\u30af\u3057\u3066\u66f8\u8fbc\u307f\u9632\u6b62\u3057\u3066\u3084\u308d\u3046\u300f\u3068\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<h3>\u3084\u3063\u305f\u4e8b<\/h3>\n<div class=\"paperBox\">\n<ol>\n<li>blackdomains\u30c6\u30fc\u30d6\u30eb\u65b0\u8a2d<\/li>\n<li>\u554f\u5408\u305b\u30ec\u30b3\u30fc\u30c9\u524a\u9664\u6642\u306bblackdomains\u306b\u30ec\u30b3\u30fc\u30c9\u8ffd\u52a0\u3059\u308b<\/li>\n<li>\u524a\u9664\u6642\u306b\u30de\u30fc\u30ab\u30fc\u3092\u7528\u610f\u3057\u3001\u30c9\u30e1\u30a4\u30f3\/\u30a2\u30c9\u30ec\u30b9\u306e\u3069\u3061\u3089\u3092\u30d6\u30e9\u30c3\u30af\u30ea\u30b9\u30c8\u306b\u767b\u9332\u3059\u308b\u304b\u6307\u793a<\/li>\n<li>\u554f\u5408\u305b\u304b\u3089\u306e\u66f8\u304d\u8fbc\u307f\u6642\u3001blackdomains\u3092\u30c1\u30a7\u30c3\u30af\u3057\u5b58\u5728\u3057\u305f\u3089\u66f8\u304d\u8fbc\u3093\u3060\u305d\u3076\u308a\u3092\u898b\u305b\u305f\u30da\u30fc\u30b8\u3078\u9077\u79fb<\/li>\n<li>blackdomains\u306b\u5b58\u5728\u3057\u306a\u304b\u3063\u305f\u3089\u5f93\u6765\u901a\u308aDB\u683c\u7d0d\/\u4ee3\u8868\u30e1\u30fc\u30eb\u3078\u30ea\u30de\u30a4\u30f3\u30c9\u9001\u4fe1<\/li>\n<\/ol>\n<\/div>\n<p>\u3053\u3093\u306a\u611f\u3058\u3067\u3001\u8ff7\u60d1\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u524a\u9664\u3068\u30d6\u30e9\u30c3\u30af\u30ea\u30b9\u30c8\u5165\u308a\u3092\u9023\u52d5\u3055\u305b\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<h3>\u66f8\u8fbc\u307f\u3057\u306a\u3044\u51e6\u7406(\u9805\u76ee4-5)\u306e\u7c21\u6613\u30b3\u30fc\u30c9<\/h3>\n<pre class=\"lang:default decode:true\">  #\u6700\u521d\u306b\u30de\u30fc\u30ab\u30fc\u3092\u7528\u610f\r\n  $mark = 0;\r\n\r\n  #\u30d6\u30e9\u30c3\u30af\u30c9\u30e1\u30a4\u30f3\u306e\u60c5\u5831\u3092\u5168\u4ef6\u53d6\u5f97\r\n  $blacks = Blackdomain::all();\r\n  #1\u4ef6\u3065\u3064\u53d6\u308a\u51fa\u3057\u3066\u30c1\u30a7\u30c3\u30af\r\n  foreach($blacks as $black){\r\n    if(strpos($request-&gt;email,$black-&gt;text) !== false){\r\n      #BlackDomain\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u5834\u5408\u3001\u30de\u30fc\u30ab\u30fc\u5909\u66f4\r\n      $mark = 1;\r\n     }\r\n   }\r\n  \r\n  if($mark == 0){\r\n    #\u30de\u30fc\u30ab\u30fc\u304c\u521d\u671f\u5024\u306e\u307e\u307e\u306e\u5834\u5408\r\n      #DB\u84c4\u7a4d\r\n      $message = new Message;\r\n      $message -&gt;subject = $request-&gt;subject;\r\n      $message -&gt;content = $request-&gt;content;\r\n      $message -&gt;name = $request-&gt;name;\r\n      $message -&gt;email = $request-&gt;email;\r\n      $message -&gt;save();\r\n      #\u5185\u90e8\u30e1\u30fc\u30eb\u9001\u4fe1\r\n      SendMailer::ContactToInfo($to2,$fromname2,$name,$subject2,$title,$content,$returnadd,$contactURL);\r\n      #\u8a18\u5165\u8005\u306b\u30e1\u30fc\u30eb\u9001\u4fe1\r\n      GuestContactMailJob::dispatch($to,$fromname,$name,$subject,$title,$content);\r\n      #\u753b\u9762\u9077\u79fb\uff06succsess\u3067\u901a\u5e38\u30e1\u30c3\u30bb\u30fc\u30b8\r\n      return redirect('Massages')-&gt;with('request')-&gt;with('success','\u304a\u554f\u5408\u305b\u3042\u308a\u304c\u3068\u3046\u5fa1\u5ea7\u3044\u307e\u3059\u3002\u5185\u5bb9\u306b\u3064\u3044\u3066\u78ba\u8a8d\u306e\u4e0a\u3001\u3054\u8fd4\u4fe1\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3059\u3002');\r\n  }else{\r\n    #\u30de\u30fc\u30ab\u30fc\u304c\u521d\u671f\u5024\u304b\u3089\u5909\u66f4\u3055\u308c\u3066\u3044\u308b\u5834\u5408\r\n      #\u753b\u9762\u9077\u79fb\uff06success\u3067\u3042\u308a\u304c\u3068\u3046\u30e1\u30c3\u30bb\u30fc\u30b8\r\n      return redirect('Massages')-&gt;with('request')-&gt;with('success','\u304a\u554f\u5408\u305b\u3042\u308a\u304c\u3068\u3046\u5fa1\u5ea7\u3044\u307e\u3057\u305f\u3002');\r\n  }<\/pre>\n<h3>\u8ff7\u60d1\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u767b\u9332\u8005\u306f\u540c\u3058\u69d8\u5b50<\/h3>\n<p>\u95b2\u89a7\u8005\u6570\u304c\u5897\u3048\u308b\u3068\u307e\u305f\u5909\u308f\u3063\u3066\u304f\u308b\u306e\u3060\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u73fe\u6bb5\u968e\u3067\u306f\u540c\u3058\u30c9\u30e1\u30a4\u30f3\u3067\u66f8\u304d\u8fbc\u3093\u3067\u304f\u308b\u65b9\u304c\u591a\u304f\u3044\u307e\u3057\u305f\u3002\u306a\u306e\u3067\u3001BOT\u3060\u3068\u601d\u3044reCAPTCHA\u3092\u8a2d\u7f6e\u3057\u305f\u306e\u3067\u3059\u304c\u3001\u307e\u3060\u66f8\u304d\u8fbc\u3093\u3067\u304f\u308b\u3093\u3067\u3059\u3088\u306d\u3002<\/p>\n<p>\u4eca\u56de\u3001\u30c9\u30e1\u30a4\u30f3\u81ea\u4f53\u3092\u7981\u6b62\u306b\u3055\u305b\u3066\u9802\u3044\u305f\u306e\u3067\u3001\u30b7\u30b9\u30c6\u30e0\u5185\u90e8\u306e\u95b2\u89a7\u5074\u306f\u8352\u308c\u308b\u4e8b\u306f\u306a\u3044\u3060\u308d\u3046\u3068\u3002<br \/>\n\u66ab\u304f\u3053\u308c\u3067\u69d8\u5b50\u898b\u3067\u3059\u3002<\/p>\n<h3>\u307e\u3068\u3081<\/h3>\n<p>\u3044\u305f\u3061\u3054\u3063\u3053\u3067\u3059\u304b\u3089\u3001\u6700\u826f\u306b\u306a\u308b\u4e8b\u306f\u306a\u304b\u306a\u304b\u96e3\u3057\u3044\u3068\u3082\u3044\u307e\u3059\u3002<br \/>\n\u3067\u3082\u5c11\u3057\u3067\u3082\u305d\u3053\u306b\u8fd1\u3065\u3051\u305f\u3089\u3044\u3044\u306a\u3041\u3068\u601d\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\n\u3067\u3001\u30b3\u30fc\u30c9\u66f8\u304f\u306e\u306f\u3084\u3063\u3071\u308a\u6163\u308c\u305fLaravel\u304c\u4e00\u756a\u65e9\u3044\u306a\u3041\u3068\u75db\u611f\u3057\u305f\u6b21\u7b2c\u3067\u3059\u3002<\/p>\n<p>\u30db\u30f3\u30c8\u3055\u3001\u8ff7\u60d1\u884c\u70ba\u3057\u3066\u308b\u4eba\u3001\u8f9e\u3081\u3066\u304f\u3060\u3055\u3044\u306d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Laravel\uff1a\u304a\u554f\u5408\u305b\u304b\u3089\u306e\u8ff7\u60d1\u6295\u7a3f\u3092\u6483\u9000\u3057\u305f\u8a71 \u8ff7\u60d1\u884c\u70ba\u304c\u3042\u3063\u305f\u306e\u306f\u3010\u304a\u554f\u5408\u305b\u3011\u306e\u90e8\u5206\u3002 \u307e\u3041\u306d\u3001\u3054\u60f3\u50cf\u306e\u901a\u308a\u3067\u3059\u3002 reCAPTCHA\u3082\u4ed5\u639b\u3051\u3066\u307f\u305f\u3093\u3060\u3051\u3069\u72b6\u6cc1\u306f\u5168\u304f\u5909\u308f\u3089\u305a\u3002 \u3067\u3001\u3060\u3063\u305f\u3089\u55b6\u696d\u59a8\u5bb3\u306b\u306a\u308b\u554f\u5408\u305b\u306b\u3064 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":944,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"sns_share_botton_hide":"","vkExUnit_sns_title":"","_vk_print_noindex":"","sitemap_hide":"","_veu_custom_css":"","veu_display_promotion_alert":"","vkexunit_cta_each_option":"","_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[17],"tags":[800,153,99,98,827,53,247,826,693,68],"class_list":["post-2221","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-soliloquy","tag-bot","tag-laravel","tag-mysql","tag-php","tag-827","tag-53","tag-247","tag-826","tag-693","tag-68"],"veu_head_title_object":{"title":"","add_site_title":""},"jetpack_publicize_connections":[],"jetpack-related-posts":[],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/qol-kk.com\/wp2\/wp-content\/uploads\/2018\/11\/laravel_logo.png","_links":{"self":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts\/2221","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/comments?post=2221"}],"version-history":[{"count":0,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts\/2221\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/media\/944"}],"wp:attachment":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/media?parent=2221"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/categories?post=2221"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/tags?post=2221"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}