<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>WaterFalls</author_name>
  <author_url>https://blog.hatena.ne.jp/WaterFalls/</author_url>
  <blog_title>１分技術ブログ</blog_title>
  <blog_url>https://waterfalls.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>バージョン Laravel 6.0 概要 例えば、A項目の値がtrueだった時のみB項目を必須項目にするといったケース。 コード ■HogeRequest.php /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { $data = $this-&gt;all(); return self::getRules($data['data_A']); } public static function getRules($data_a) { // 共通的…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwaterfalls.hatenablog.com%2Fentry%2F2020%2F05%2F09%2F031107&quot; title=&quot; [PHP][Laravel] Laravelの条件付きvalidation（入力値を判定してバリデーションを追加するか判断する） - １分技術ブログ&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://m.media-amazon.com/images/I/51aBM9yf2LL._SL160_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-05-09 03:11:07</published>
  <title> [PHP][Laravel] Laravelの条件付きvalidation（入力値を判定してバリデーションを追加するか判断する）</title>
  <type>rich</type>
  <url>https://waterfalls.hatenablog.com/entry/2020/05/09/031107</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
