<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nakahashi_h</author_name>
  <author_url>https://blog.hatena.ne.jp/nakahashi_h/</author_url>
  <blog_title>websandbag ブログ</blog_title>
  <blog_url>https://blog.websandbag.com/</blog_url>
  <categories>
    <anon>laravel</anon>
  </categories>
  <description>フォームを実装していると、下記のように選択状況に応じてバリデーションをするかしないか決めたい時があります。 必須入力の有無であれば、required_ifで対象のinput値を参照して切り替える事が可能です。 readouble.com しかし、日付データを比較するaftterで現在日時と比較したい場合、使用しないデータだとしてもバリデートされてしまいます。 javascriptで入力値を強制的に消す事も出来ますが、 サーバ側で処理を集約したいと考える人もいらっしゃるのではないでしょうか？ さて、 今回は入力内容を元にバリデーションのルールを動的に切り替える方法について触れます。 実装方法 フ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.websandbag.com%2Fentry%2F2019%2F07%2F24%2F002457&quot; title=&quot;【Laravel】Requestクラスのルールを動的に変える - websandbag ブログ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/n/nakahashi_h/20180506/20180506160600.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-07-24 00:24:57</published>
  <title>【Laravel】Requestクラスのルールを動的に変える</title>
  <type>rich</type>
  <url>https://blog.websandbag.com/entry/2019/07/24/002457</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
