<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kaoru6strings</author_name>
  <author_url>https://blog.hatena.ne.jp/kaoru6strings/</author_url>
  <blog_title>IT系バンドマンの日常</blog_title>
  <blog_url>https://kaoru6strings.hatenablog.com/</blog_url>
  <categories>
    <anon>Laravel</anon>
  </categories>
  <description>はじめに 先日、後輩にBladeにdataを渡すとき、view関数の第2引数で渡す場合と、withメソッドを使って渡す場合の処理の違いについて質問されたので調べました。 せっかくだし忘れる前に記事にしておこうと思ったのが今回のモチベーションです。 調査結果 viewの第2引数に配列を渡してBladeに渡す場合 例 return view('template-name', [ 'products' =&gt; Product::all() ]); 調べた結果 こちらに関しては配列をviewInstance生成時に渡して、 Illuminate\View\View::__construct の中で自身の…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkaoru6strings.hatenablog.com%2Fentry%2F2021%2F07%2F25%2F121603&quot; title=&quot;Laravelでbladeに引数を渡すときの処理の違いについて調べた - IT系バンドマンの日常&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>2021-07-25 12:16:03</published>
  <title>Laravelでbladeに引数を渡すときの処理の違いについて調べた</title>
  <type>rich</type>
  <url>https://kaoru6strings.hatenablog.com/entry/2021/07/25/121603</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
