<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>WaterFalls</author_name>
  <author_url>https://blog.hatena.ne.jp/WaterFalls/</author_url>
  <blog_title>１分技術ブログ</blog_title>
  <blog_url>https://waterfalls.hatenablog.com/</blog_url>
  <categories>
    <anon>Laravel</anon>
    <anon>PHP</anon>
  </categories>
  <description>バージョン Laravel 5.8 概要 複合主キーやint型以外の主キーの場合にcreate()でレコード追加しようとしたらエラーが発生する。 そんな時はモデルに以下を追加する。 public $incrementing = false; 詳細は公式を。 Eloquent：利用の開始 5.8 Laravel 主キーがint型でない場合も同様の対応で解決できる。 コード ◾️Model &lt;?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class HogeTable extends Model { prote…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwaterfalls.hatenablog.com%2Fentry%2F2019%2F11%2F30%2F054401&quot; title=&quot; [PHP][Laravel] primaryKeyが複数ある、またはint型でない場合にEloquentモデルでレコードを登録する - １分技術ブログ&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://images-fe.ssl-images-amazon.com/images/I/51M9CvLpz3L._SL160_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-11-30 05:44:01</published>
  <title> [PHP][Laravel] primaryKeyが複数ある、またはint型でない場合にEloquentモデルでレコードを登録する</title>
  <type>rich</type>
  <url>https://waterfalls.hatenablog.com/entry/2019/11/30/054401</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
