{"title":"Laravel\u306eModel\u306e\u4e3b\u30ad\u30fc\u3092\u6587\u5b57\u5217\u578b\u306b\u3059\u308b","version":"1.0","provider_name":"Hatena Blog","author_name":"kojirooooocks","provider_url":"https://hatena.blog","width":"100%","image_url":null,"blog_title":"\u3082\u304c\u304d\u7cfb\u30d7\u30ed\u30b0\u30e9\u30de\u306e\u65e5\u5e38","blog_url":"https://kojirooooocks.hatenablog.com/","published":"2023-03-10 01:49:55","url":"https://kojirooooocks.hatenablog.com/entry/2023/03/10/014955","description":"\u306f\u3058\u3081\u306b \u3053\u3093\u3070\u3093\u306f\u3002 \u77e5\u3089\u306a\u304b\u3063\u305f\u3093\u304b\u3044\uff01\u3068\u3044\u3046\u7c21\u5358\u5099\u5fd8\u9332\u3067\u3059\u3002 \u30bf\u30a4\u30c8\u30eb\u306e\u901a\u308a Laravel\u3067\u4f7f\u7528\u3059\u308b\u4e3b\u30ad\u30fc\u3092\u6574\u6570\u578b\u3067\u306f\u306a\u304f\u6587\u5b57\u5217\u578b\u306b\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5\u3067\u3059\u3002 \u672c\u984c \u7b54\u3048\u306f\u3053\u3061\u3089 <?php namespace App\\Models; use Illuminate\\Database\\Eloquent\\Model; final class TargetModel extends Model { public $incrementing = false; // \u81ea\u52d5\u5897\u5206\u3057\u306a\u3044 protected $keyType = 'string'; // \u81ea\u52d5\u5897\u5206ID\u306e\u30c7\u30fc\u30bf\u578b\u3092string\u3078\u6307\u5b9a } \u3069\u3061\u3089\u2026","author_url":"https://blog.hatena.ne.jp/kojirooooocks/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkojirooooocks.hatenablog.com%2Fentry%2F2023%2F03%2F10%2F014955\" title=\"Laravel\u306eModel\u306e\u4e3b\u30ad\u30fc\u3092\u6587\u5b57\u5217\u578b\u306b\u3059\u308b - \u3082\u304c\u304d\u7cfb\u30d7\u30ed\u30b0\u30e9\u30de\u306e\u65e5\u5e38\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":[],"height":"190","type":"rich"}