<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>arm4</author_name>
  <author_url>https://blog.hatena.ne.jp/arm4/</author_url>
  <blog_title>nanisore oishisou</blog_title>
  <blog_url>https://arm4.hatenablog.com/</blog_url>
  <categories>
    <anon>Laravel</anon>
    <anon>Laravel5.5</anon>
    <anon>Laravel5.6</anon>
  </categories>
  <description>この前、同僚にベル子たんに教えてもらったやつめっちゃ便利そうなのに何というヘルパーか忘れてしまいました！ と言われて、私も忘れてしまっていたという事件がありました。 現在、私がコアで開発してる案件は、5.7にアップデートしたので使えるのですが、 あまりにも&quot;Trying to get property of non-object&quot;を見すぎてしまったせいで 息を吸うように以下のように書いてしまいます。 &lt;?php $user_name = User::find(1) ? User::find(1)-&gt;name : ''; それか、php7で搭載されたnull合体演算子を使うともっと綺麗に書けます…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Farm4.hatenablog.com%2Fentry%2F2018%2F09%2F21%2F185144&quot; title=&quot;Laravel 5.5で超絶便利なヘルパーoptionalってのできてるよ - nanisore oishisou&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>2018-09-21 18:51:44</published>
  <title>Laravel 5.5で超絶便利なヘルパーoptionalってのできてるよ</title>
  <type>rich</type>
  <url>https://arm4.hatenablog.com/entry/2018/09/21/185144</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
