<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yjhm214</author_name>
  <author_url>https://blog.hatena.ne.jp/yjhm214/</author_url>
  <blog_title>Tech memo</blog_title>
  <blog_url>https://tech-yjhm214.hatenablog.com/</blog_url>
  <categories>
    <anon>Laravel</anon>
    <anon>PHP</anon>
  </categories>
  <description>はじめに １ページに複数のフォームがあるとき （サイドバーにログインフォーム、メインコンテンツにユーザ登録フォームがある場合） とかに名前付きエラーバグ (Named Error Bags) と使うと View 側で出力するエラーメッセージのアクセスを切り替えることができる。 便利。 でもFromRequest を使った場合の名前付きエラーバグのやり方が見つからなかったので記録しておく。 スポンサーリンク FormRequestを使ったときのバリデーションの名前付きエラーバグの方法 UserRequest クラスがあったとする。 UserRequestに protected $errorBag…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech-yjhm214.hatenablog.com%2Fentry%2Flaravel-named-error-bags&quot; title=&quot;Laravel5.4 FormRequest でバリデーションエラーメッセージを名前付きにする方法 - Tech memo&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-06-09 13:54:29</published>
  <title>Laravel5.4 FormRequest でバリデーションエラーメッセージを名前付きにする方法</title>
  <type>rich</type>
  <url>https://tech-yjhm214.hatenablog.com/entry/laravel-named-error-bags</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
