<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shin1x1</author_name>
  <author_url>https://blog.hatena.ne.jp/shin1x1/</author_url>
  <blog_title>Shin x Blog</blog_title>
  <blog_url>https://blog.shin1x1.com/</blog_url>
  <categories>
    <anon>php</anon>
    <anon>Laravel</anon>
    <anon>architecture</anon>
  </categories>
  <description>Laravel を使った開発でも、ドメインロジックと RDBMS などの永続化層へのアクセスを分離するためにリポジトリパターンを採用するケースが増えてきました。 ただ、Laravel には Eloquent という Active Record タイプの ORM があるので、これとリポジトリをどのように組み合わせるかで悩んでいる人が多いようで、これまで開発現場や勉強会などで質問を受けることがありました。 本エントリでは、リポジトリを実装してきた経験を元に、私が考える実装のポイントをご紹介します。 1. ドメインデータの入出力にリポジトリパターンを使う 2. メソッドの型宣言にドメインデータを指定…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.shin1x1.com%2Fentry%2Flaravel-repository&quot; title=&quot;Laravel におけるリポジトリ実装のポイント - Shin x Blog&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>https://cdn-ak.f.st-hatena.com/images/fotolife/s/shin1x1/20190621/20190621080715.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-06-21 08:08:00</published>
  <title>Laravel におけるリポジトリ実装のポイント</title>
  <type>rich</type>
  <url>https://blog.shin1x1.com/entry/laravel-repository</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
