{"blog_url":"https://kojirooooocks.hatenablog.com/","url":"https://kojirooooocks.hatenablog.com/entry/2024/03/10/235306","published":"2024-03-10 23:53:06","title":"laravel\u306euuid()\u3092mock\u3059\u308b","author_url":"https://blog.hatena.ne.jp/kojirooooocks/","width":"100%","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkojirooooocks.hatenablog.com%2Fentry%2F2024%2F03%2F10%2F235306\" title=\"laravel\u306euuid()\u3092mock\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>","height":"190","image_url":null,"provider_url":"https://hatena.blog","version":"1.0","blog_title":"\u3082\u304c\u304d\u7cfb\u30d7\u30ed\u30b0\u30e9\u30de\u306e\u65e5\u5e38","provider_name":"Hatena Blog","categories":[],"description":"\u306f\u3058\u3081\u306b \u3053\u3093\u3070\u3093\u306f\u3002 \u3061\u3087\u3063\u3068\u307e\u3048\u306b\u3001laravel\u306e uuid() \u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u30b3\u30fc\u30c9\u306e\u30c6\u30b9\u30c8\u3092\u884c\u3046\u5fc5\u8981\u304c\u3042\u3063\u305f\u306e\u3067\u3001\u5bfe\u5fdc\u3057\u3066\u307f\u307e\u3057\u305f\u3002 \u7c21\u5358\u3067\u3059\u304c\u5099\u5fd8\u9332\u3067\u3059\u3002 \u672c\u984c uuid()\u306e\u30b3\u30fc\u30c9\u81ea\u4f53\u306f Illuminate\\Support\\Str::uuid() \u3092\u4f7f\u3063\u3066\u307e\u3059\u3002 /** * Generate a UUID (version 4). * * @return \\Ramsey\\Uuid\\UuidInterface */ public static function uuid() { return static::$uuidFactory ? call_user_func(static\u2026","author_name":"kojirooooocks"}