<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>SHAKAE</author_name>
  <author_url>https://blog.hatena.ne.jp/SHAKAE/</author_url>
  <blog_title>駆け出しエンジニアの勉強記録</blog_title>
  <blog_url>https://shakae.hatenadiary.com/</blog_url>
  <categories>
  </categories>
  <description>ログイン中のユーザー情報取得$user = auth()-&gt;user();ログイン中のユーザー情報と、ユーザーモデルに書いたOfiiceリレーション(=Officeテーブル)一緒に取得①$user = User::where('id',auth()-&gt;user()-&gt;id) -&gt;with('office') -&gt;first(); ②$user = User::with('office')-&gt;find(auth()-&gt;id());(ログイン中の)ユーザーモデルに書いたOfiiceリレーション(=Officeテーブル)のデータだけ取得$office = auth()-&gt;user()-&gt;office…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshakae.hatenadiary.com%2Fentry%2F2024%2F04%2F26%2F112320&quot; title=&quot;コードを短く書く - 駆け出しエンジニアの勉強記録&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>2024-04-26 11:23:20</published>
  <title>コードを短く書く</title>
  <type>rich</type>
  <url>https://shakae.hatenadiary.com/entry/2024/04/26/112320</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
