<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>uc_ebuc</author_name>
  <author_url>https://blog.hatena.ne.jp/uc_ebuc/</author_url>
  <blog_title>雑多なブログ</blog_title>
  <blog_url>https://cufl.hateblo.jp/</blog_url>
  <categories>
    <anon>Laravel</anon>
  </categories>
  <description>DB::transaction()の実装は、ManagesTransactionsというtraitで実装されているようだ。 実装を見てみると、一つ目の引数で指定しているコールバック関数の返り値をそのまま返していることが分かる。 https://github.com/laravel/framework/blob/8.x/src/Illuminate/Database/Concerns/ManagesTransactions.php#L20 public function transaction(Closure $callback, $attempts = 1) { for ($currentAt…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcufl.hateblo.jp%2Fentry%2F2021%2F05%2F26%2F220204&quot; title=&quot;Laravel - DB::transaction() の返り値は何？ - 雑多なブログ&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-05-26 22:02:04</published>
  <title>Laravel - DB::transaction() の返り値は何？</title>
  <type>rich</type>
  <url>https://cufl.hateblo.jp/entry/2021/05/26/220204</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
