<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shimabukuromeg</author_name>
  <author_url>https://blog.hatena.ne.jp/shimabukuromeg/</author_url>
  <blog_title>shimabukuromegの日記</blog_title>
  <blog_url>https://shimabukuromeg.hatenadiary.jp/</blog_url>
  <categories>
    <anon>Laravel</anon>
    <anon>雑多メモ</anon>
  </categories>
  <description>最近、Laravelの認可処理を実装する際に学んだことを書きます。 やりたいこと ユーザーの役割に応じて、アクセス制御できるようにしたい。例えば、Adminユーザーだったら編集/削除/登録の操作できるけど、それ以外のユーザーの場合は、参照する権限しかない、みたいなことをできるようにしたい。 認可処理で設けた利用制限について、どの処理に対して、どういう認可の処理が適用されてるかを php artisan route:list の実行結果で、すぐわかるようにしたい（なのでミドルウェアによる認可が必要。コントローラーの各アクションに定義すると、どの処理にどの認可処理が適用されてるか、route:li…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshimabukuromeg.hatenadiary.jp%2Fentry%2F2018%2F12%2F02%2F145305&quot; title=&quot;Laravelの認可処理 - shimabukuromegの日記&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/shimabukuromeg/20181202/20181202143121.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-12-02 14:53:05</published>
  <title>Laravelの認可処理</title>
  <type>rich</type>
  <url>https://shimabukuromeg.hatenadiary.jp/entry/2018/12/02/145305</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
