{"id":10027,"date":"2022-01-26T03:40:05","date_gmt":"2022-01-25T18:40:05","guid":{"rendered":"https:\/\/blog.capilano-fw.com\/?p=10027"},"modified":"2022-02-26T16:59:38","modified_gmt":"2022-02-26T07:59:38","slug":"laravel-9-x-%e3%81%a7%e3%80%8c%e3%81%8a%e3%81%a3%ef%bc%81%e3%80%8d%e3%81%a8%e6%80%9d%e3%81%a3%e3%81%9f%e6%96%b0%e6%a9%9f%e8%83%bd-best-5","status":"publish","type":"post","link":"https:\/\/blog.capilano-fw.com\/?p=10027","title":{"rendered":"Laravel 9.x \u3067\u300c\u304a\u3063\uff01\u300d\u3068\u601d\u3063\u305f\u65b0\u6a5f\u80fd Best 5"},"content":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u7686\u3055\u3093\u3082\u3054\u5b58\u77e5\u306e\u3068\u304a\u308a<code>Laravel<\/code>\u306e\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3<code>9.x<\/code>\u306e\u516c\u958b\u304c\u8fd1\u304f\u306a\u3063\u3066\u304d\u307e\u3057\u305f\u306d\u3002<\/p>\n<p><del>\u4eca\u56de\u306f<code>LTS<\/code>\uff08\u9577\u30fc\u30fc\u30fc\u304f\u30e1\u30f3\u30c6\u30f3\u30ca\u30f3\u30b9\u3057\u3066\u304f\u308c\u308b\u30d0\u30fc\u30b8\u30e7\u30f3\uff09\u306a\u306e\u3067\u6ce8\u76ee\u5ea6\u3082\u9ad8\u3044\u306e\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/del><\/p>\n<p><strong>\u3010\u26a0 \u8ffd\u8a18\uff1a2022.02.26\u3011<\/strong><br \/>\n<code>Laravel 9.x<\/code>\u306e\u516c\u958b\u76f4\u5f8c\u306b<code>LTS<\/code>\u3067\u306f\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u3088\u3046\u3067\u3059\ud83d\ude2d<br \/>\n\u8a73\u3057\u304f\u306f<a href=\"https:\/\/laravel.com\/docs\/9.x\/releases#support-policy\" target=\"_blank\" rel=\"noopener\">\u3053\u3061\u3089<\/a>\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u3001<code>9.x<\/code>\u306f\u5143\u3005\u306e\u4e88\u5b9a\u3067\u306f \u300c<strong>2021\u5e749\u6708<\/strong>\u300d\u306b\u30ea\u30ea\u30fc\u30b9\u4e88\u5b9a\u3067\u3057\u305f\u304c\u3001<\/p>\n<p><strong>2021\u5e749\u6708 \ud83d\udc49 2021\u5e74\uff11\u670825\u65e5 \ud83d\udc49 2022\u5e742\u67088\u65e5<\/strong><\/p>\n<p>\u3068\u5ef6\u671f\u306b\u306a\u3063\u3066\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u79c1\u3082\u300c\u3082\u306e\u3065\u304f\u308a\u300d\u3092\u3059\u308b\u7acb\u5834\u3068\u3057\u3066\u3001\u826f\u3044\u3082\u306e\u3092\u63d0\u4f9b\u3059\u308b\u305f\u3081\u306b\u6642\u9593\u3092\u304b\u3051\u308b\u3053\u3068\u306f\u4f55\u306e\u554f\u984c\u3082\u306a\u3044\u3093\u3067\u3059\u304c\u3001\u305d\u308c\u3067\u3082\u3084\u306f\u308a\u300c\u30c9\u30e9\u30af\u30a8\u304c\u767a\u58f2\u5ef6\u671f\u306b\u306a\u3063\u3061\u3083\u3063\u305f\u2026\ud83d\ude02\u300d\u3068\u540c\u3058\u3088\u3046\u306a\u5f85\u3061\u304d\u308c\u306a\u3044\u6c17\u6301\u3061\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u3053\u3067\u2757<\/p>\n<p>\u3082\u3046\u5f85\u3066\u306a\u3044\u306e\u3067\uff08\u7b11\uff09\u4eca\u56de\u306f\u30d9\u30fc\u30bf\u7248\u306e<code>9.x<\/code>\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001\u3061\u3087\u3063\u3068\u5148\u53d6\u308a\u3057\u3066\u3001<\/p>\n<p><strong style=\"font-size: 35px;\">\u304a\u3063\u3001\u3053\u308c\u306f\u826f\u3044\uff01\u3068\u601d\u3046\u65b0\u6a5f\u80fdBest 5<\/strong><\/p>\n<p>\u3092\u4ee5\u4e0b\u306e\u516c\u5f0f\u30da\u30fc\u30b8\u306e\u4e2d\u304b\u3089\u307e\u3068\u3081\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p><strong>\ud83d\udcdd \u53c2\u8003\u30da\u30fc\u30b8\uff1a<\/strong> <a href=\"https:\/\/laravel-news.com\/laravel-9\" target=\"_blank\" rel=\"noopener\">A look at what is coming to Laravel 9<\/a><\/p>\n<p>\u305c\u3072\u3001\u4f55\u304b\u306e\u53c2\u8003\u306b\u306a\u308a\u307e\u3057\u305f\u3089\u5b09\u3057\u3044\u3067\u3059\u3002\ud83d\ude04\u2728<\/p>\n<p>\u203b \u30d9\u30fc\u30bf\u7248\u306a\u306e\u3067\u3001\u6b63\u5f0f\u7248\u3067\u306f\u5909\u66f4\u306b\u306a\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2173 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/no_24.png\" alt=\"\" width=\"300\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/no_24.png 300w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/11\/no_24-281x300.png 281w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/>\u300c\u3055\u3089\u306b\u697d\u3059\u308b\u6a5f\u80fd\u304c\u3001<br \/>\n\u3084\u3063\u3066\u304f\u308b\u2757\u300d<\/p>\n<p><strong>\u958b\u767a\u74b0\u5883\uff1a<\/strong> Laravel 9.x-<strong>beta<\/strong>\u3001PHP 8.1<\/p>\n<h1>\uff11\u4f4d\uff1a\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u540d\u3092\u4f7f\u3063\u305f\u30eb\u30fc\u30c8\u306e\u7701\u7565\u8a18\u8ff0<\/h1>\n<p>\u65e5\u9803\u304b\u3089\u300c<strong>\u3046\u30fc\u3093\u3001\u30eb\u30fc\u30c8\u306b\u66f8\u304f\u3053\u3068\u304c\u591a\u304f\u3066\u898b\u3065\u3089\u3044\u3093\u3060\u3051\u3069\u2026\ud83d\ude23<\/strong>\u300d\u3068\u306a\u3063\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b<code>controller()<\/code>\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u3066\u30b9\u30c3\u30ad\u30ea\u66f8\u304f\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u203b \u6b63\u78ba\u306b\u306f<code>Laravel 8.80<\/code>\u3067\u8ffd\u52a0\u3055\u308c\u307e\u3057\u305f<\/p>\n<p><strong>routes\/web.php<\/strong><\/p>\n<pre><strong>Route::controller(BookController::class)-&gt;group(function() { \/\/ \ud83d\udc48 \u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u307e\u3068\u3081\u3066\u30bb\u30c3\u30c8\u2757<\/strong>\r\n\r\n<strong>    Route::get('\/book', 'index');<\/strong>\r\n<strong>    Route::get('\/book\/create', 'create');<\/strong>\r\n<strong>    Route::post('\/book', 'store');<\/strong>\r\n\r\n<strong>});<\/strong><\/pre>\n<p>\u203b \u3061\u306a\u307f\u306b<code>prefix()<\/code>\u3068\u306e\u5408\u308f\u305b\u6280\u3067\u3055\u3089\u306b\u5171\u901a\u5316\u3057\u3066\u66f8\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre>Route::<strong>controller(BookController::class)-&gt;prefix('book')<\/strong>-&gt;group(function() {\r\n\r\n    <strong>Route::get('\/', 'index');<\/strong>\r\n<strong>    Route::get('\/create', 'create');<\/strong>\r\n<strong>    Route::post('\/', 'store');<\/strong>\r\n\r\n});<\/pre>\n<p>\u3053\u308c\u304c\u3001<code>8.x<\/code>\u306e\u5834\u5408\u3060\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3092\u4f55\u56de\u3082\u9023\u547c\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u304b\u3063\u305f\u306e\u3067\u53ef\u8aad\u6027\u3082\u826f\u304f\u306a\u308a\u307e\u3059\u306d\u3002 \uff08<code>Route::resource()<\/code>\u3092\u4f7f\u3046\u624b\u3082\u3042\u308a\u3067\u3059\u304c\u3001\u4f8b\u5916\u306e\u30e1\u30bd\u30c3\u30c9\u306e\u3068\u304d\u306f\u7d50\u5c40\u624b\u66f8\u304d\u306a\u306e\u3067\u300c\u3046\u30fc\u3093\u2026\u300d\u3068\u306a\u3063\u3066\u307e\u3057\u305f\uff09<\/p>\n<pre>\/\/ 8.x \u306e\u4f8b\r\n\r\nRoute::get('\/book', [<strong>BookController::class,<\/strong> 'index']);\r\nRoute::get('\/book\/create', [<strong>BookController::class,<\/strong> 'create']);\r\nRoute::post('\/book', [<strong>BookController::class,<\/strong> 'store']);<\/pre>\n<h1>\uff12\u4f4d\uff1aEnum \u3092\u4f7f\u3063\u305f\u30eb\u30fc\u30c8\u30fb\u30d0\u30a4\u30f3\u30c7\u30a3\u30f3\u30b0<\/h1>\n<p><code>PHP 8.1<\/code>\u304b\u3089\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308b<code>Enum<\/code>\uff08\u5217\u6319\u30bf\u30a4\u30d7\uff09\u3092\u30eb\u30fc\u30c8\u306b\u30d0\u30a4\u30f3\u30c7\u30a3\u30f3\u30b0\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u65b0\u6a5f\u80fd\u3067\u3059\u3002<\/p>\n<p><code>Enum<\/code>\u306e\u8a73\u3057\u3044\u7d39\u4ecb\u306f\u4ee5\u4e0b\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\ud83d\udcdd<strong>\u53c2\u8003\u30da\u30fc\u30b8\uff1a<\/strong> <a href=\"https:\/\/blog.capilano-fw.com\/?p=9829\">\u3010Laravel\u3011PHP 8.1 \u304b\u3089\u4f7f\u3048\u308b Enum\u3067\u3001\u9078\u629e\u80a2\u301c\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u307e\u3067\u5b9f\u88c5\u3057\u3066\u307f\u308b<\/a><\/p>\n<p>\u3067\u306f\u3001\u98df\u3079\u7269\u306e<code>Enum<\/code>\u3001<code>Food<\/code>\u3092\u4f7f\u3063\u3066\u5b9f\u88c5\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><strong>app\/Enums\/Food.php<\/strong><\/p>\n<pre><strong>&lt;?php<\/strong>\r\n\r\n<strong>namespace App\\Enums;<\/strong>\r\n\r\n<strong>enum Food: string<\/strong>\r\n<strong>{<\/strong>\r\n<strong>    case Meat = 'meat'; \/\/ \ud83d\udc48 \u8089<\/strong>\r\n<strong>    case Fish = 'fish'; \/\/ \ud83d\udc48 \u9b5a<\/strong>\r\n<strong>    case Vegetables = 'vegetables'; \/\/ \ud83d\udc48 \u91ce\u83dc<\/strong>\r\n<strong>}<\/strong><\/pre>\n<p>\u305d\u3057\u3066\u3001\u3053\u306e<code>Enum<\/code>\u3092\u30eb\u30fc\u30c8\u5185\u306b\u30d0\u30a4\u30f3\u30c7\u30a3\u30f3\u30b0\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre><strong>use App\\Enums\\Food;<\/strong>\r\n\r\n\/\/ \u7701\u7565\r\n\r\n<strong>Route::get('food\/{food}', function(Food $food) { \/\/ \ud83d\udc48 Enum \u306b\u5b58\u5728\u3057\u306a\u3044\u5024\u306e\u5834\u5408 404 \u30a8\u30e9\u30fc\u306b\u306a\u308b<\/strong>\r\n\r\n<strong>    dd($food-&gt;name, $food-&gt;value);<\/strong>\r\n\r\n<strong>});<\/strong><\/pre>\n<p>\u4f8b\u3048\u3070\u3053\u306e\u72b6\u614b\u3067\u300c<strong>https:\/\/******\/food\/meat<\/strong>\u300d\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10039\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/01\/laravel_9x_new_feature_6.png\" alt=\"\" width=\"260\" height=\"160\" \/><\/p>\n<p>\u306f\u3044\u2757<br \/>\n<code>Enum<\/code>\u306e\u4e2d\u8eab\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u3067\u306f\u3001\u9006\u306b<code>Enum<\/code>\u306b\u306f\u5165\u3063\u3066\u3044\u306a\u3044\u300c<strong>drinks<\/strong>\u300d\u3092\u30bb\u30c3\u30c8\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<br \/>\nURL\u306f\u300c<strong>https:\/\/******\/food\/drinks<\/strong>\u300d\u3067\u3059\u306d\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10033\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/01\/laravel_9x_new_feature_4.png\" alt=\"\" width=\"238\" height=\"66\" \/><\/p>\n<p>\u306f\u3044\uff01<code>Enum<\/code>\u306b\u306f\u5b58\u5728\u3057\u3066\u3044\u306a\u3044\u5024\u306a\u306e\u3067\u3001\u30eb\u30fc\u30c8\u81ea\u4f53\u304c\u5b58\u5728\u3057\u3066\u3044\u306a\u3044\u3068\u5224\u65ad\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u306a\u304a\u3001<code>8.x<\/code>\u307e\u3067\u306f\u540c\u69d8\u306e\u3053\u3068\u3092\u3059\u308b\u305f\u3081\u306b\u306f\u30eb\u30fc\u30c8\u306b<code>where()<\/code>\u3092\u3064\u3051\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u53ef\u8aad\u6027\u3082\u305d\u3046\u3067\u3059\u3057\u3001\u4ed6\u306e\u5834\u6240\u3067\u3082\u4f7f\u3044\u3084\u3059\u3044\u306e\u3067<code>Enum<\/code>\u306e\u65b9\u304c\u3044\u3044\u3067\u3059\u306d\ud83d\udc4d<\/p>\n<pre>\/\/ 8x. \u306e\u4f8b<strong>\r\n\r\nRoute::get('food\/{food}', function($food) {<\/strong>\r\n\r\n<strong>    dd($food);<\/strong>\r\n\r\n<strong>})-&gt;where('food', '(meat|fish|vegetable)'); \/\/ \ud83d\udc48 \u6b63\u898f\u8868\u73fe\u3067\u5236\u9650\u3092\u304b\u3051\u308b<\/strong><\/pre>\n<h1>\uff13\u4f4d\uff1aEnum \u3092\u4f7f\u3063\u305f\u30ad\u30e3\u30b9\u30c6\u30a3\u30f3\u30b0\uff08\u578b\u5909\u63db\uff09<\/h1>\n<p>\u3053\u3061\u3089\u3082<code>Enum<\/code>\u95a2\u9023\u3067\u3059\u304c\u3001\u8981\u306f\u300c<strong>\u578b\u306e\u81ea\u52d5\u5909\u63db<\/strong>\u300d\u6a5f\u80fd\u3067\u3059\u3002<br \/>\n<span style=\"font-size: 1rem;\">\u5148\u307b\u3069\u306e<\/span><code>Food<\/code><span style=\"font-size: 1rem;\">\u3092\u4f7f\u3063\u3066\u5b9f\u88c5\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/span><\/p>\n<p>\u4f8b\u3048\u3070\u3001\u4eca\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30c6\u30fc\u30d6\u30eb<code>recipes<\/code>\u304c\u3042\u308b\u3068\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10041\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/01\/laravel_9x_new_feature_8.png\" alt=\"\" width=\"569\" height=\"428\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/01\/laravel_9x_new_feature_8.png 569w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/01\/laravel_9x_new_feature_8-300x226.png 300w\" sizes=\"auto, (max-width: 569px) 100vw, 569px\" \/><\/p>\n<p>\u305d\u3057\u3066\u3001\u3053\u306e\u4e2d\u306e<code>category<\/code>\u304c<code>Enum<\/code>\u306e\u5024\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\n\u3067\u306f\u3001\u3053\u306e<code>category<\/code>\u3092<code>Enum<\/code>\u5316\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><strong>app\/Models\/Recipe.php<\/strong><\/p>\n<pre>&lt;?php\r\n\r\nnamespace App\\Models;\r\n\r\n<strong>use App\\Enums\\Food;<\/strong>\r\nuse Illuminate\\Database\\Eloquent\\Factories\\HasFactory;\r\nuse Illuminate\\Database\\Eloquent\\Model;\r\n\r\nclass Recipe extends Model\r\n{\r\n    use HasFactory;\r\n\r\n    <strong>protected $casts = [<\/strong>\r\n<strong>        'category' =&gt; Food::class<\/strong>\r\n<strong>    ];<\/strong>\r\n}<\/pre>\n<p>\u3053\u3046\u3059\u308b\u3053\u3068\u3067\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u81ea\u52d5\u7684\u306b<code>category<\/code>\u306e\u5024\u304c<code>Enum<\/code>\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre><strong>$recipe = \\App\\Models\\Recipe::find(1);<\/strong>\r\ndd(<strong>$recipe-&gt;category<\/strong>); \/\/ \ud83d\udc48 \u3053\u3053\u306f Enum \u306b\u306a\u308b<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\u306f\u3053\u3046\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10042\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/01\/laravel_9x_new_feature_9.png\" alt=\"\" width=\"350\" height=\"150\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/01\/laravel_9x_new_feature_9.png 350w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/01\/laravel_9x_new_feature_9-300x129.png 300w\" sizes=\"auto, (max-width: 350px) 100vw, 350px\" \/><\/p>\n<h1>\uff14\u4f4d\uff1a\u30b9\u30b3\u30fc\u30d7\u3092\u5f37\u5236\u3057\u305f\u30eb\u30fc\u30c8\u30fb\u30d0\u30a4\u30f3\u30c7\u30a3\u30f3\u30b0<\/h1>\n<p>\u300c\u30b9\u30b3\u30fc\u30d7\u3092\u5f37\u5236\u3057\u305f\u300d\u3068\u3044\u3046\u306e\u306f\u904e\u53bb\u8a18\u4e8b\u3067\u7d39\u4ecb\u3057\u305f\u300c<strong>\u6574\u5408\u6027\u3092\u8003\u616e\u3057\u305f\u30d0\u30a4\u30f3\u30c7\u30a3\u30f3\u30b0<\/strong>\u300d\u306e\u3053\u3068\u3067\u3059\u3002\u8a73\u3057\u304f\u306f\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><strong>\ud83d\udcdd \u53c2\u8003\u30da\u30fc\u30b8\uff1a<\/strong>\u00a0<a href=\"https:\/\/blog.capilano-fw.com\/?p=6020#i-3\" target=\"_blank\" rel=\"noopener\">\u30c7\u30fc\u30bf\u306e\u6574\u5408\u6027\u3092\u8003\u616e\u3057\u305f\u30d0\u30a4\u30f3\u30c7\u30a3\u30f3\u30b0<\/a><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-731\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/07\/panda_2.png\" alt=\"\" width=\"149\" height=\"120\" \/>\u300c\u3072\u3068\u3084\u3059\u307f\u300d<\/p>\n<p>\u3064\u307e\u308a\u3001\u4ee5\u524d\u304b\u3089\u6a5f\u80fd\u7684\u306b\u306f\u5b58\u5728\u3057\u3066\u307e\u3057\u305f\u304c\u3001\u3053\u308c\u3092\u3082\u3063\u3068\u30b7\u30f3\u30d7\u30eb\u306b\u66f8\u304f\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3093\u3067\u3059\u306d\u3002<\/p>\n<p>\u3067\u306f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b<code>users<\/code>\u3068<code>orders<\/code>\u30c6\u30fc\u30d6\u30eb\u3092\u7528\u610f\u3057\u3001<\/p>\n<p><strong>User\uff1aOrder\u3000\uff1d\u3000\uff11\uff1a\u591a<\/strong><\/p>\n<p>\u306e\u95a2\u4fc2\u306b\u306a\u308b\u74b0\u5883\u3067\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<br \/>\n\u5b9f\u969b\u306e\u30c6\u30fc\u30d6\u30eb\u306f\u3053\u3061\u3089\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10029\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/01\/laravel_9x_new_feature_1.png\" alt=\"\" width=\"536\" height=\"479\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/01\/laravel_9x_new_feature_1.png 536w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/01\/laravel_9x_new_feature_1-300x268.png 300w\" sizes=\"auto, (max-width: 536px) 100vw, 536px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10030\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/01\/laravel_9x_new_feature_2.png\" alt=\"\" width=\"537\" height=\"452\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/01\/laravel_9x_new_feature_2.png 537w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/01\/laravel_9x_new_feature_2-300x253.png 300w\" sizes=\"auto, (max-width: 537px) 100vw, 537px\" \/><\/p>\n<p>\u3067\u306f\u3001\u3053\u306e\u72b6\u614b\u3067\u65b0\u30e1\u30bd\u30c3\u30c9\u306e<code>scopeBindings()<\/code>\u3092\u4f7f\u3063\u3066\u30eb\u30fc\u30c8\u3092\u8a2d\u5b9a\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p><strong>routes\/web.php<\/strong><\/p>\n<pre><strong>use App\\Http\\Controllers\\OrderController;<\/strong>\r\n\r\n<strong>\/\/ \u7701\u7565<\/strong>\r\n\r\n<strong>Route::controller(OrderController::class)-&gt;prefix('order')-&gt;group(function(){<\/strong>\r\n\r\n<strong>    Route::get('\/{user}\/{order}\/edit', 'edit')-&gt;scopeBindings(); \/\/ \ud83d\udc48 \u6574\u5408\u6027\u306e\u3042\u308b\uff12\u3064\u306e\u30c7\u30fc\u30bf\u3057\u304b\u8a31\u53ef\u3057\u306a\u3044<\/strong>\r\n\r\n<strong>});<\/strong><\/pre>\n<p>\u305d\u3057\u3066\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3067\u3059\u3002<\/p>\n<pre>&lt;?php\r\n\r\nnamespace App\\Http\\Controllers;\r\n\r\nuse App\\Models\\Order;\r\nuse App\\Models\\User;\r\nuse Illuminate\\Http\\Request;\r\n\r\nclass OrderController extends Controller\r\n{\r\n<strong>    public function edit(User $user, Order $order)<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        dd($user-&gt;toArray(), $order-&gt;toArray());<\/strong>\r\n<strong>    }<\/strong>\r\n}<\/pre>\n<p>\u3067\u306f\u3001\u3053\u306e\u72b6\u614b\u3067\u300c<strong>https:\/\/l9x-beta.test\/order\/1\/5\/edit<\/strong>\u300d\u3078\u30a2\u30af\u30bb\u30b9\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10032\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/01\/laravel_9x_new_feature_3.png\" alt=\"\" width=\"583\" height=\"303\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/01\/laravel_9x_new_feature_3.png 583w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/01\/laravel_9x_new_feature_3-300x156.png 300w\" sizes=\"auto, (max-width: 583px) 100vw, 583px\" \/>\u203b \u4e0a\u304c<code>User<\/code>\u3001\u4e0b\u304c<code>Order<\/code>\u3067\u3059\u3002<\/p>\n<p>\u306f\u3044\u2757<\/p>\n<p><strong>User \u306e id: 1\u3000\uff1d\u3000Order \u306e user_id: 1\u00a0<\/strong><\/p>\n<p>\u306a\u306e\u3067\u3001\u3046\u307e\u304f\u30c7\u30fc\u30bf\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u3067\u306f\u6b21\u306b\u3001\u308f\u3056\u3068\u300c<strong>\u6574\u5408\u6027\u304c\u306a\u3044\u30c7\u30fc\u30bf<\/strong>\u300d\u3092\u8981\u6c42\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<br \/>\n\u300c<strong>https:\/\/l9x-beta.test\/order\/1\/20\/edit<\/strong>\u300d\u3078\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10033\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/01\/laravel_9x_new_feature_4.png\" alt=\"\" width=\"238\" height=\"66\" \/><\/p>\n<p>\u4eca\u56de\u306f\u300c\u30da\u30fc\u30b8\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u300d\u3068\u8a00\u308f\u308c\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<br \/>\n\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u306f\u3001<code>Order<\/code>\u306e<code>ID:20<\/code>\u304c\u5b58\u5728\u3057\u3066\u3044\u308b\u306e\u306b\u3001\u3067\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10034\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/01\/laravel_9x_new_feature_5.png\" alt=\"\" width=\"610\" height=\"156\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/01\/laravel_9x_new_feature_5.png 610w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2022\/01\/laravel_9x_new_feature_5-300x77.png 300w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/p>\n<p>\u305d\u3046\u3067\u3059\u3002\u3053\u308c\u306f\u3001\u300c<strong>\u30c7\u30fc\u30bf\u306f\u3042\u308b\u3051\u3069\u3001\u9055\u3046\u30e6\u30fc\u30b6\u30fc ID \u3060\u304b\u3089\u30c0\u30e1\u3088\u2757<\/strong>\u300d\u3068\u306a\u3063\u3066\u3044\u308b\u308f\u3051\u3067\u3059\u306d\u3002<\/p>\n<p>\u3064\u307e\u308a\u3001\u300chttps:\/\/l9x-beta.test\/order\/<span style=\"text-decoration: underline;\"><strong>2<\/strong><\/span>\/20\/edit\u300d\u306a\u3089\u3046\u307e\u304f\u8868\u793a\u3055\u308c\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u203b \u306a\u304a\u3001\u3053\u306e\u6a5f\u80fd\u3068\u30ed\u30b0\u30a4\u30f3\u306f\u95a2\u4fc2\u306a\u3044\u306e\u3067\u3001\u5b9f\u884c\u6a29\u9650\u30c1\u30a7\u30c3\u30af\u306f\u5f15\u304d\u7d9a\u304d<code>Gate<\/code>\u3084<code>Policy<\/code>\u3001<code>if<\/code>\u6587\u304c\u5fc5\u8981\u306b\u306a\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h1>\uff15\u4f4d\uff1aAccessor\u3001Mutator \u306e\u7701\u7565\u5316<\/h1>\n<p>\u3053\u308c\u306f\u4ee5\u524d\u304b\u3089<code>Laravel<\/code>\u306e\u5f37\u529b\u306a\u6a5f\u80fd\u3068\u3057\u3066\u5b58\u5728\u3057\u3066\u3044\u308b\u300c<strong>Accessor<\/strong>\uff08\u53d6\u5f97\u6642\u306e\u30c7\u30fc\u30bf\u52a0\u5de5\uff09\u300d\u300c<strong>Mutator<\/strong>\uff08\u30bb\u30c3\u30c8\u6642\u306e\u30c7\u30fc\u30bf\u52a0\u5de5\uff09\u300d\u3092\u7701\u7565\u3057\u3066\u66f8\u304f\u3053\u3068\u304c\u3067\u304d\u308b\u6a5f\u80fd\u3067\u3059\u3002<\/p>\n<p>\u3067\u306f\u3001<code>Book<\/code>\u3068\u3044\u3046\u30e2\u30c7\u30eb\u3092\u4f7f\u3063\u3066\u5b9f\u969b\u306e\u30b3\u30fc\u30c9\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><strong>app\/Models\/Book.php<\/strong><\/p>\n<pre>&lt;?php\r\n\r\nnamespace App\\Models;\r\n\r\nuse Illuminate\\Database\\Eloquent\\Casts\\Attribute;\r\nuse Illuminate\\Database\\Eloquent\\Factories\\HasFactory;\r\nuse Illuminate\\Database\\Eloquent\\Model;\r\n\r\nclass Book extends Model\r\n{\r\n    use HasFactory;\r\n\r\n<strong>    \/\/ Accessor &amp; Mutator<\/strong>\r\n<strong>    public function price(): Attribute<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        return new Attribute(<\/strong>\r\n<strong>            get: fn ($value) =&gt; number_format($value) .'\u5186',           \/\/ \ud83d\udc48 \u3053\u3063\u3061\u304c Accessor<\/strong>\r\n<strong>            set: fn ($value) =&gt; preg_replace('\/[^0-9]\/', '', $value)   \/\/ \ud83d\udc48 \u3053\u3063\u3061\u304c Mutator<\/strong>\r\n<strong>        );<\/strong>\r\n<strong>    }<\/strong>\r\n}<\/pre>\n<p>\u3053\u3046\u3059\u308b\u3053\u3068\u3067\u3001<code>Accessor<\/code>\u306f<\/p>\n<pre>$book = \\App\\Models\\Book::find(1);\r\ndd(<strong>$book-&gt;price<\/strong>); \/\/ \ud83d\udc48 \u4f8b\u3048\u3070\u300c<strong>1,000\u5186<\/strong>\u300d\u306b\u306a\u308a\u307e\u3059<\/pre>\n<p>\u306e\u3088\u3046\u306b\u4f7f\u3048\u307e\u3059\u3057\u3001<code>Mutator<\/code>\u306e\u65b9\u3082<\/p>\n<pre>$book = new \\App\\Models\\Book();\r\n$book-&gt;title = '\u30c6\u30b9\u30c8\u30bf\u30a4\u30c8\u30eb';\r\n<strong>$book-&gt;price = '1,500\u5186'; \/\/ \ud83d\udc48 Mutator \u304c\u52b9\u304f\u306e\u3067\u6570\u5024\u306b\u306a\u308a\u307e\u3059<\/strong>\r\n$book-&gt;save();<\/pre>\n<p>\u3068\u66f8\u304f\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001\u3053\u308c\u307e\u3067\u306f\u3001\u305d\u308c\u305e\u308c\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u66f8\u3044\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<pre>\/\/ 8x \u306e\u5834\u5408\r\n\r\nclass Book extends Model\r\n{\r\n    \/\/ \u7701\u7565\r\n\r\n    <strong>\/\/ Accessor<\/strong>\r\n<strong>    public function getPriceAttribute($value)<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        return number_format($value) .'\u5186';<\/strong>\r\n<strong>    }<\/strong>\r\n\r\n<strong>    \/\/ Mutator<\/strong>\r\n<strong>    public function setPriceAttribute($value)<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        $this-&gt;attributes['price'] = preg_replace('\/[^0-9]\/', '', $value);<\/strong>\r\n<strong>    }<\/strong>\r\n}<\/pre>\n<p>\u305f\u3060\u3001\u30ef\u30f3\u30e9\u30a4\u30ca\u30fc\u3067\u66f8\u3051\u308b\u5834\u5408\u306f\u3044\u3044\u3067\u3059\u3051\u3069\u3001\u8907\u6570\u884c\u5fc5\u8981\u306a\u5834\u5408\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30b3\u30fc\u30c9\u304c\u9577\u304f\u306a\u308b\u6c17\u3082\u3059\u308b\u306e\u3067\u3001\uff15\u4f4d\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<pre>public function price(): Attribute\r\n{\r\n    return new Attribute(\r\n        <strong>get: function($value){<\/strong>\r\n\r\n<strong>            return number_format($value) .'\u5186';<\/strong>\r\n\r\n<strong>        }<\/strong>\r\n    );\r\n}<\/pre>\n<h1>\u4f01\u696d\u69d8\u3078\u306e\u3054\u63d0\u6848<\/h1>\n<p>\u8a18\u4e8b\u5185\u5bb9\u3092\u898b\u3066\u3044\u305f\u3060\u3044\u305f\u3068\u304a\u308a<code>Laravel<\/code>\u306f\u5e38\u306b\u9032\u5316\u3057\u3066\u3044\u3066\u3001\u3088\u308a\u30e1\u30f3\u30c6\u30f3\u30ca\u30f3\u30b9\u3057\u3084\u3059\u304f\u306a\u3063\u305f\u308a\u3001\u958b\u767a\u52b9\u7387\u304c\u9ad8\u304f\u306a\u3063\u3066\u304d\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001\u904e\u53bb\u306b\u4f5c\u6210\u3057\u305f<code>Laravel<\/code>\u30b7\u30b9\u30c6\u30e0\u3092\u6700\u65b0\u7248\u306b\u7f6e\u304d\u63db\u3048\u308b\u3053\u3068\u3067\u3001\u4eca\u5f8c\u306e\u696d\u52d9\u304c\u52b9\u7387\u5316\u3055\u308c\u308b\u5834\u5408\u304c\u591a\u3044\u3068\u8003\u3048\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><del>\u203b \u3055\u3089\u306b<code>Laravel 9.x<\/code>\u306f<code>LTS<\/code>\u306a\u306e\u3067<strong>\u30d0\u30b0\u5bfe\u5fdc\u306f 2024\u5e742\u67088\u65e5 \u307e\u3067<\/strong>\u3001\u3055\u3089\u306b<strong>\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u306f 2025\u5e742\u67088\u65e5<\/strong> \u307e\u3067\u5b9f\u65bd\u3055\u308c\u308b\u4e88\u5b9a\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002\uff082022.1.26 \u73fe\u5728\uff09<\/del><\/p>\n<p><strong>\u3010\u26a0 \u8ffd\u8a18\uff1a2022.02.26\u3011<br \/>\n<\/strong>\u5192\u982d\u3067\u3082\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3068\u304a\u308a\u3001\u516c\u958b\u76f4\u5f8c<code>LTS<\/code>\u3067\u306f\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<br \/>\n\u306a\u304a\u3001<a href=\"https:\/\/twitter.com\/larajapan_news\/status\/1493782219059433472\" target=\"_blank\" rel=\"noopener\">\u3053\u3061\u3089\u306e\u30c4\u30a4\u30fc\u30c8<\/a>\u306e\u3088\u3046\u306b<code>Symfony<\/code>\u306e\u6c7a\u5b9a\u5f85\u3061\u3068\u306e\u60c5\u5831\u3082\u3042\u308a\u307e\u3059\u3002<br \/>\n<code>9.x<\/code>\u306e\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u671f\u9593\u306b\u3064\u304d\u307e\u3057\u3066\u306f<a href=\"https:\/\/laravel.com\/docs\/9.x\/releases#support-policy\" target=\"_blank\" rel=\"noopener\">\u3053\u3061\u3089<\/a>\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u30ea\u30d7\u30ec\u30a4\u30b9\u4f5c\u696d\u3092\u3054\u5e0c\u671b\u3067\u3057\u305f\u3089\u304a\u554f\u3044\u5408\u308f\u305b\u304b\u3089\u3054\u9023\u7d61\u304f\u3060\u3055\u3044\u3002<br \/>\n\u305c\u3072\u304a\u5f85\u3061\u3057\u3066\u304a\u308a\u307e\u3059\u3002\ud83d\ude04\u2728<\/p>\n<h1>\u304a\u308f\u308a\u306b<\/h1>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4eca\u56de\u306f<code>Laravel 9.x<\/code>\u3067\u300c<strong>\u304a\u3063\u2757<\/strong>\u300d\u3068\u601d\u3063\u305f\u65b0\u6a5f\u80fd<code>Best 5<\/code>\u3092\u304a\u5c4a\u3051\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u307f\u306a\u3055\u3093\u306e<code>Best 5<\/code>\u306f\u3069\u3093\u306a\u30ab\u30f3\u30b8\u3067\u3057\u3087\u3046\u304b\u3002<br \/>\n\u305c\u3072\u4e00\u5ea6\u8a66\u3057\u3066\u304f\u3060\u3055\u3044\u306d\u3002<\/p>\n<p>\u3067\u306f\u3067\u306f\u301c\u2757<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6070 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/03\/no_5.png\" alt=\"\" width=\"260\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/03\/no_5.png 260w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/03\/no_5-244x300.png 244w\" sizes=\"auto, (max-width: 260px) 100vw, 260px\" \/><br \/>\n\u300c\u7dca\u6025\u6295\u7a3f\u306a\u306e\u306b\u3001<br \/>\n\u3044\u3063\u3071\u3044\u66f8\u3044\u3061\u3083\u3063\u305f\u2026\uff08\u7b11\uff09\u300d<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u7686\u3055\u3093\u3082\u3054\u5b58\u77e5\u306e\u3068\u304a\u308aLaravel\u306e\u65b0\u30d0\u30fc\u30b8\u30e7\u30f39.x\u306e\u516c\u958b\u304c\u8fd1\u304f\u306a\u3063\u3066\u304d\u307e\u3057\u305f\u306d\u3002 \u4eca\u56de\u306fLTS\uff08\u9577\u30fc\u30fc\u30fc\u304f\u30e1\u30f3\u30c6\u30f3\u30ca\u30f3\u30b9\u3057\u3066\u304f\u308c\u308b\u30d0\u30fc\u30b8\u30e7\u30f3\uff09\u306a &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.capilano-fw.com\/?p=10027\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;Laravel 9.x \u3067\u300c\u304a\u3063\uff01\u300d\u3068\u601d\u3063\u305f\u65b0\u6a5f\u80fd Best 5&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":10044,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[82],"class_list":["post-10027","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-laravel","tag-82"],"_links":{"self":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/10027","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10027"}],"version-history":[{"count":24,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/10027\/revisions"}],"predecessor-version":[{"id":10145,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/10027\/revisions\/10145"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/media\/10044"}],"wp:attachment":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10027"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10027"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10027"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}