{"provider_name":"Hatena Blog","width":"100%","image_url":"https://m.media-amazon.com/images/I/510SLDEiOUL._SL500_.jpg","url":"https://www.utakata.work/entry/laravel/database-json-assertion","height":"190","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.utakata.work%2Fentry%2Flaravel%2Fdatabase-json-assertion\" title=\"Laravel \u306e assertDatabaseHas \u3067 JSON \u306e\u30ab\u30e9\u30e0\u3092\u6bd4\u8f03\u3059\u308b - \u732b\u3067\u3082\u308f\u304b\u308bWeb\u958b\u767a\u30fb\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"yoshiki_utakata","author_url":"https://blog.hatena.ne.jp/yoshiki_utakata/","title":"Laravel \u306e assertDatabaseHas \u3067 JSON \u306e\u30ab\u30e9\u30e0\u3092\u6bd4\u8f03\u3059\u308b","published":"2025-05-14 09:11:50","type":"rich","provider_url":"https://hatena.blog","categories":["PHP","Laravel","\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30fb\u958b\u767a"],"blog_url":"https://www.utakata.work/","blog_title":"\u732b\u3067\u3082\u308f\u304b\u308bWeb\u958b\u767a\u30fb\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0","description":"assertDatabaseHas \u306b\u3064\u3044\u3066 OK NG assertDatabaseHas \u306b\u3064\u3044\u3066 Laravel \u306b\u306f assertDatabaseHas \u3068\u3044\u3046\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u30c7\u30fc\u30bf\u304c\u5b58\u5728\u3059\u308b\u304b\u3069\u3046\u304b\u30c1\u30a7\u30c3\u30af\u3059\u308b\u30a2\u30b5\u30fc\u30b7\u30e7\u30f3\u304c\u3042\u308a\u307e\u3059\u3002 \u8a73\u7d30\u306f Laravel \u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306e\u300c\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30c6\u30b9\u30c8\u300d\u3092\u898b\u3066\u304f\u3060\u3055\u3044 https://readouble.com/laravel/12.x/ja/database-testing.html \u3053\u306e\u6642\u306b\u3001JSON \u30ab\u30e9\u30e0\u3092\u6bd4\u8f03\u3057\u305f\u3044\u5834\u5408\u306f\u3001 castAsJson \u30e1\u30bd\u30c3\u30c9\u3092\u5229\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u306e\u3067\u6ce8\u610f\u3067\u3059\u3002 OK <?php $this->asser\u2026"}