{"id":11425,"date":"2023-03-06T07:00:19","date_gmt":"2023-03-05T22:00:19","guid":{"rendered":"https:\/\/blog.capilano-fw.com\/?p=11425"},"modified":"2023-02-16T04:11:47","modified_gmt":"2023-02-15T19:11:47","slug":"%e3%83%9f%e3%83%8b%e3%83%9e%e3%83%ab%e3%81%aa%e3%82%a8%e3%83%a9%e3%83%bc%e9%80%9a%e7%9f%a5%e3%82%92%e7%8b%ac%e8%87%aa%e3%83%ad%e3%82%b0%e6%a9%9f%e8%83%bd%e3%81%a7%e5%ae%9f%e8%a3%85%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/blog.capilano-fw.com\/?p=11425","title":{"rendered":"\u3010Laravel\u3011\u30df\u30cb\u30de\u30eb\u306a\u30a8\u30e9\u30fc\u901a\u77e5\u3092\u72ec\u81ea\u30ed\u30b0\u6a5f\u80fd\u3067\u5b9f\u88c5\u3059\u308b"},"content":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u79c1\u306f\u904e\u53bb\u306b\uff08\u307b\u307c\u9cf4\u304b\u305a\u98db\u3070\u305a\u306e\uff09\u500b\u4eba\u30b5\u30a4\u30c8\u3092\u3064\u304f\u3063\u3066\u304d\u307e\u3057\u305f\u304c\u3001\u305d\u306e\u958b\u767a\u3092\u3057\u3066\u3044\u308b\u4e2d\u3067\u3044\u304f\u3064\u304b\u300c<strong>\u3046\u30fc\u3093\u2026<\/strong>\u300d\u3068\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u7d4c\u9a13\u304c\u3042\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u305d\u306e\u4e2d\u306b\u306f\u4eca\u56de\u30c6\u30fc\u30de\u300c<strong>\u30a8\u30e9\u30fc\u901a\u77e5<\/strong>\u300d\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3069\u3046\u3044\u3046\u3053\u3068\u304b\u3068\u8a00\u3046\u3068\u3001<\/p>\n<p><strong style=\"font-size: 35px;\">\u300c\u30a8\u30e9\u30fc\u30ed\u30b0\u3092\u3044\u3061\u3044\u3061\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3068\u3081\u3093\u3069\u3046\u3060\u3088\u306d\ud83d\ude02\u300d<\/strong><\/p>\n<p>\u3060\u304b\u3089\u3001\u30e1\u30fc\u30eb\u3084<code>slack<\/code>\u3067\u901a\u77e5\u3057\u3088\u3046\u2757\u3068\u3044\u3046\u306e\u306f\u3088\u304f\u3042\u308b\u3053\u3068\u3060\u3068\u601d\u3046\u306e\u3067\u3059\u304c\u3001\u3044\u304b\u3093\u305b\u3093\u500b\u4eba\u958b\u767a\u306a\u306e\u3067\u901a\u77e5\u304c\u6765\u3066\u3082\u3001<\/p>\n<p><strong style=\"font-size: 35px;\">\u300c\u3044\u3084\u3001\u672c\u696d\u304c\u5fd9\u3057\u304f\u3066\u500b\u4eba\u958b\u767a\u307e\u3067\u624b\u304c\u56de\u3089\u306a\u3044\u2026\ud83d\ude2b\u300d<\/strong><\/p>\n<p>\u3068\u306a\u3063\u3066\u3057\u307e\u3044\u653e\u7f6e\u3002<\/p>\n<p>\u3067\u3082\u3001\u30a8\u30e9\u30fc\u306f\u4f55\u5ea6\u3082\u767a\u751f\u3059\u308b\u306e\u3067<strong>\u540c\u3058\u5185\u5bb9\u306e\u901a\u77e5\u3092\u7e70\u308a\u8fd4\u3057\u53d7\u3051\u53d6\u3063\u305f\u7d50\u679c\u3001\u3046\u3093\u3056\u308a\u3057\u3066\u30e2\u30c1\u30d9\u30fc\u30b7\u30e7\u30f3\u304c\u4e0b\u304c\u308b<\/strong>\u2026\u3068\u3044\u3046\u60aa\u5faa\u74b0\u304c\u767a\u751f\u3057\u3066\u3044\u307e\u3057\u305f\u3002\uff08\u79c1\u306f\u5fc3\u306e\u5f31\u3044\u4eba\u9593\u3067\u3059\u3001\u306f\u3044 \ud83d\udca6\uff09<\/p>\n<p>\u305d\u3053\u3067\u2757<\/p>\n<p>\u4eca\u56de\u306f\u3053\u306e\u72b6\u614b\u3092\u56de\u907f\u3059\u3079\u304f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u6a5f\u80fd\u3092\u3064\u304f\u3063\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<ul>\n<li>\u540c\u3058\u5185\u5bb9\u306e\u30a8\u30e9\u30fc\u306f\u901a\u77e5\u3057\u306a\u3044<\/li>\n<li>\u305f\u3060\u3057\u3001\uff11\u304b\u6708\u4ee5\u4e0a\u524d\u306e\u5834\u5408\u306f\u518d\u9001\u4fe1\u3059\u308b<\/li>\n<\/ul>\n<p>\u3064\u307e\u308a\u3001\u300c<strong>\u30df\u30cb\u30de\u30eb\uff08\u5fc5\u8981\u6700\u4f4e\u9650\uff09\u306e\u30a8\u30e9\u30fc\u901a\u77e5<\/strong>\u300d\u304c\u3067\u304d\u308b\u6a5f\u80fd\u3067\u3059\u3002<\/p>\n<p>\u305c\u3072\u4f55\u304b\u306e\u53c2\u8003\u306b\u306a\u308a\u307e\u3057\u305f\u3089\u5b09\u3057\u3044\u3067\u3059\u3002\ud83d\ude04\u2728<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6068 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/03\/no_12.png\" alt=\"\" width=\"226\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/03\/no_12.png 226w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/03\/no_12-212x300.png 212w\" sizes=\"auto, (max-width: 226px) 100vw, 226px\" \/>\u300c\u81e8\u6a5f\u5fdc\u5909\u306b\u306a\u308b\u3088\u3046\u3001<br \/>\n\u6905\u5b50\u306e\u9ad8\u3055\u3001\u66f2\u9806\u3001\u97f3\u91cf\u3092<br \/>\n\u6bce\u56de\u5909\u3048\u3066\u30d4\u30a2\u30ce\u7df4\u7fd2\u3057\u3066\u307e\u3059\u2757\u300d<\/p>\n<p><strong>\u958b\u767a\u74b0\u5883\uff1a<\/strong> Laravel 9.x\u3001PHP 8.1<\/p>\n<h1>\u30e2\u30c7\u30eb\uff06\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u3064\u304f\u308b<\/h1>\n<p>\u307e\u305a\u306f\u3001\u300c<strong>\u3053\u306e\u30a8\u30e9\u30fc\u306f\u9001\u4fe1\u3059\u3079\u304d\u304b\u3069\u3046\u304b\u2753<\/strong>\u300d\u304c\u30c1\u30a7\u30c3\u30af\u3067\u304d\u308b\u3088\u3046\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u30ed\u30b0\u3092\u4fdd\u5b58\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\n<pre><strong>php artisan make:model ErrorLog -m<\/strong><\/pre>\n<\/div>\n<p>\u3059\u308b\u3068\u3001\u30e2\u30c7\u30eb\u3068\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u306e\uff12\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u308b\u306e\u3067\u4e2d\u8eab\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<p><strong>database\/migrations\/****_**_**_******_create_error_logs_table.php<\/strong><\/p>\n<div>\n<pre>\/\/ \u7701\u7565\r\n\r\npublic function up()\r\n{\r\n    Schema::create('error_logs', function (Blueprint $table) {\r\n        <strong>$table-&gt;id();<\/strong>\r\n<strong>        $table-&gt;string('file'); \/\/ \ud83d\udc48 \u30d5\u30a1\u30a4\u30eb\u30d1\u30b9<\/strong>\r\n<strong>        $table-&gt;string('line'); \/\/ \ud83d\udc48 \u884c<\/strong>\r\n<strong>        $table-&gt;string('message'); \/\/ \ud83d\udc48 \u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8<\/strong>\r\n<strong>        $table-&gt;timestamps();<\/strong>\r\n    });\r\n}<\/pre>\n<\/div>\n<p>\u4eca\u56de\u306f\u30b7\u30f3\u30d7\u30eb\u306b\u300c<strong>\u3069\u3053\u3067\u30fb\u4f55\u304b\u8d77\u3053\u3063\u305f\u304b\u2753<\/strong>\u300d\u304c\u308f\u304b\u308b\u3088\u3046\u306a\u69cb\u6210\u306b\u3057\u3066\u3044\u307e\u3059\u3002\uff08\u304a\u597d\u307f\u3067 URL \u3084 \u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u5165\u308c\u3066\u3082\u3044\u3044\u3067\u3059\u306d\uff09<\/p>\n<p>\u3067\u306f\u3001\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u884c\u3057\u3066\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\n<pre><strong>php artisan migrate<\/strong><\/pre>\n<\/div>\n<p>\u3059\u308b\u3068\u5b9f\u969b\u306e\u30c6\u30fc\u30d6\u30eb\u306f\u3053\u3046\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11429\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/02\/laravel_minimal_error_notification_1.png\" alt=\"\" width=\"409\" height=\"287\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/02\/laravel_minimal_error_notification_1.png 409w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/02\/laravel_minimal_error_notification_1-300x211.png 300w\" sizes=\"auto, (max-width: 409px) 100vw, 409px\" \/><\/p>\n<h1>\u72ec\u81ea\u306e\u30ed\u30b0\u30fb\u30c1\u30e3\u30f3\u30cd\u30eb\u3092\u3064\u304f\u308b<\/h1>\n<p>\u6b21\u306b\u3001\u72ec\u81ea\u306e\u300c<strong>\u30ed\u30b0\u30fb\u30c1\u30e3\u30f3\u30cd\u30eb<\/strong>\u300d\u3092\u3064\u304f\u308a\u307e\u3059\u3002<\/p>\n<p>\u30ed\u30b0\u30fb\u30c1\u30e3\u30f3\u30cd\u30eb\u3068\u306f\u7c21\u5358\u306b\u8a00\u3046\u3068\u300c<strong>\u30ed\u30b0\u306e\u305f\u3081\u306e\u30b0\u30eb\u30fc\u30d7<\/strong>\u300d\uff08\u4f8b\uff1a\u30b3\u30e0\u30c9\u30c3\u30c8\uff09\u3060\u3068\u8003\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u3053\u306e\u30c1\u30e3\u30f3\u30cd\u30eb\u306e\u4e2d\u3067\u300c<strong>\u30cf\u30f3\u30c9\u30e9\u30fc<\/strong>\u300d\uff08\u4f8b\uff1a \u3084\u307e\u3068\u304f\u3093\uff09\u304c\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u51e6\u7406\u3092\u884c\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u30d5\u30a1\u30a4\u30eb\u306b\u66f8\u304d\u8fbc\u3080<\/li>\n<li>slack \u3078\u9001\u4fe1\u3059\u308b<\/li>\n<li>Syslog \u3067\u9001\u4fe1\u3059\u308b<\/li>\n<\/ul>\n<p>\u3064\u307e\u308a\u3001\u30b0\u30eb\u30fc\u30d7\u306b\u306f\uff11\u3064\u3060\u3051\u3067\u306a\u304f\u8907\u6570\u306e\u30cf\u30f3\u30c9\u30e9\u30fc\u3092\u8a2d\u7f6e\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u4eca\u56de\u306f\u300c<strong>\u30df\u30cb\u30de\u30eb\u306a\u901a\u77e5<\/strong>\u300d\u3068\u3044\u3046\u3053\u3068\u3067\u300c<strong>MinimalNotification<\/strong>\u300d\u30c1\u30e3\u30f3\u30cd\u30eb\u3092\u4f5c\u3063\u3066\u5b9f\u88c5\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>\u3067\u306f\u3001\u4ee5\u4e0b\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><strong>app\/Logging\/MinimalNotificationLogger.php<\/strong><\/p>\n<div>\n<pre><strong>&lt;?php<\/strong>\r\n\r\n<strong>namespace App\\Logging;<\/strong>\r\n\r\n<strong>use Monolog\\Handler\\StreamHandler;<\/strong>\r\n<strong>use Monolog\\Logger;<\/strong>\r\n\r\n<strong>class MinimalNotificationLogger<\/strong>\r\n<strong>{<\/strong>\r\n<strong>    public function __invoke(array $config)<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        $name = 'minimal_notification'; \/\/ \ud83d\udc48 \u30c1\u30e3\u30f3\u30cd\u30eb\u540d<\/strong>\r\n<strong>        $logger = new Logger($name);<\/strong>\r\n<strong>        $logger-&gt;pushHandler(new MinimalNotificationHandler());<\/strong>\r\n\r\n<strong>        return $logger;<\/strong>\r\n<strong>    }<\/strong>\r\n<strong>}<\/strong><\/pre>\n<p>\u3053\u306e\u4e2d\u3067\u306f\u3001\u6b21\u306e\u9805\u76ee\u3067\u3064\u304f\u308b\u3053\u3068\u306b\u306a\u308b\u72ec\u81ea\u30cf\u30f3\u30c9\u30e9\u30fc\u300c<strong>MinimalNotificationHandler<\/strong>\u300d\u304c\u5b9f\u884c\u3055\u308c\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<\/div>\n<p>\u306a\u304a\u3001\u30ed\u30b0\u30fb\u30c1\u30e3\u30f3\u30cd\u30eb\u306f\u4f5c\u3063\u305f\u3060\u3051\u3067\u306f\u6709\u52b9\u306b\u306f\u306a\u308a\u307e\u305b\u3093\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b<code>Laravel<\/code>\u5074\u3078\u767b\u9332\u3057\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><strong>config\/logging.php<\/strong><\/p>\n<div>\n<pre>\/\/ \u7701\u7565\r\n\r\nreturn [\r\n\r\n    \/\/ \u7701\u7565\r\n\r\n    'channels' =&gt; [\r\n\r\n        \/\/ \u7701\u7565\r\n\r\n<strong>        'minimal_notification' =&gt; [<\/strong>\r\n<strong>            'driver' =&gt; 'custom',<\/strong>\r\n<strong>            'via' =&gt; App\\Logging\\MinimalNotificationLogger::class,<\/strong>\r\n<strong>        ],<\/strong>\r\n\r\n    ],\r\n\r\n];<\/pre>\n<\/div>\n<p>\u307e\u305f\u3001\u521d\u671f\u72b6\u614b\u3067\u306f\u30ed\u30b0\u30c1\u30e3\u30f3\u30cd\u30eb\u306f<code>stack<\/code>\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u5408\u308f\u305b\u3066<code>.env<\/code>\u3082\u5909\u66f4\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><strong>.env<\/strong><\/p>\n<div>\n<pre><strong>LOG_CHANNEL=minimal_notification<\/strong><\/pre>\n<p>\u203b \u305f\u3060\u3057\u3001\u958b\u767a\u4e2d\u306f\u3053\u306e\u8a2d\u5b9a\u3060\u3068\u30e1\u30f3\u30c9\u30a6\u306a\u306e\u3067\u3001\u3053\u308c\u3092\u5909\u66f4\u3059\u308b\u306e\u306f\u672c\u756a\u74b0\u5883\u306e<code>.env<\/code>\u3060\u3051\u306e\u65b9\u304c\u3044\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<\/div>\n<p>\u3053\u308c\u3067\u30c1\u30e3\u30f3\u30cd\u30eb\u306e\u4f5c\u6210\u306f\u5b8c\u4e86\u3067\u3059\u2757<\/p>\n<h1>\u72ec\u81ea\u306e\u30ed\u30b0\u30fb\u30cf\u30f3\u30c9\u30e9\u30fc\u3092\u3064\u304f\u308b<\/h1>\n<p>\u3067\u306f\u3001\u30b0\u30eb\u30fc\u30d7\u306b\u5bfe\u3057\u3066\u5404\u30e1\u30f3\u30d0\u30fc\u3068\u306a\u308b\u300c<strong>\u30cf\u30f3\u30c9\u30e9\u30fc<\/strong>\u300d\u3092\u3064\u304f\u3063\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><strong>app\/Logging\/MinimalNotificationHandler.php<\/strong><\/p>\n<div>\n<pre><strong>&lt;?php<\/strong>\r\n\r\n<strong>namespace App\\Logging;<\/strong>\r\n\r\n<strong>use App\\Mail\\ErrorOccurred;<\/strong>\r\n<strong>use App\\Models\\ErrorLog;<\/strong>\r\n<strong>use Illuminate\\Support\\Facades\\Mail;<\/strong>\r\n<strong>use Monolog\\Handler\\AbstractProcessingHandler;<\/strong>\r\n<strong>use Monolog\\Handler\\StreamHandler;<\/strong>\r\n\r\n<strong>class MinimalNotificationHandler extends AbstractProcessingHandler<\/strong>\r\n<strong>{<\/strong>\r\n<strong>    const SKIP_SECONDS = 2592000; \/\/ 30 days<\/strong>\r\n\r\n<strong>    protected function write(array $record): void<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        \/\/ Exception \u3092\u53d6\u5f97<\/strong>\r\n<strong>        $e = data_get($record, 'context.exception');<\/strong>\r\n\r\n<strong>        if($e) {<\/strong>\r\n\r\n<strong>            $file = $e-&gt;getFile();<\/strong>\r\n<strong>            $line = $e-&gt;getLine();<\/strong>\r\n<strong>            $message = $e-&gt;getMessage();<\/strong>\r\n<strong>            $now = now();<\/strong>\r\n\r\n<strong>            $exists = ErrorLog::query()<\/strong>\r\n<strong>                -&gt;where('file', $file)<\/strong>\r\n<strong>                -&gt;where('line', $line)<\/strong>\r\n<strong>                -&gt;where('message', $message)<\/strong>\r\n<strong>                -&gt;where('created_at', '&gt;', $now-&gt;subSeconds(self::SKIP_SECONDS))<\/strong>\r\n<strong>                -&gt;exists();<\/strong>\r\n\r\n<strong>            if($exists === false) { \/\/ \u4e00\u5b9a\u671f\u9593\u306b\u540c\u3058\u30a8\u30e9\u30fc\u304c\u306a\u3044\u5834\u5408\uff08\u30e1\u30fc\u30eb\u9001\u4fe1\uff09<\/strong>\r\n\r\n<strong>                \/\/ DB \u306b\u4fdd\u5b58<\/strong>\r\n<strong>                $error_log = new ErrorLog();<\/strong>\r\n<strong>                $error_log-&gt;file = $file;<\/strong>\r\n<strong>                $error_log-&gt;line = $line;<\/strong>\r\n<strong>                $error_log-&gt;message = $message;<\/strong>\r\n<strong>                $error_log-&gt;save();<\/strong>\r\n\r\n<strong>                \/\/ \u5ff5\u306e\u305f\u3081\u3001\u30ed\u30b0\u3092\u30d5\u30a1\u30a4\u30eb\u306b\u3082\u66f8\u304d\u8fbc\u3080<\/strong>\r\n<strong>                $path = storage_path('logs\/minimal_notification.log');<\/strong>\r\n<strong>                $stream = new StreamHandler($path);<\/strong>\r\n<strong>                $stream-&gt;write($record);<\/strong>\r\n\r\n<strong>                \/\/ \u30e1\u30fc\u30eb\u3067\u901a\u77e5\u3059\u308b<\/strong>\r\n<strong>                $admin_email_address = 'admin@example.com'; \/\/ \u9001\u4fe1\u5148\u306e\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9<\/strong>\r\n<strong>                Mail::to($admin_email_address)-&gt;send(new ErrorOccurred($error_log));<\/strong>\r\n\r\n<strong>            }<\/strong>\r\n<strong>        }<\/strong>\r\n<strong>    }<\/strong>\r\n<strong>}<\/strong><\/pre>\n<\/div>\n<p>\u3053\u306e\u4e2d\u3067\u3084\u3063\u3066\u3044\u308b\u306e\u306f\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<ol>\n<li>\u30d5\u30a1\u30a4\u30eb\u30d1\u30b9\u3001\u884c\u3001\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u4f7f\u3063\u3066\u30e1\u30c3\u30bb\u30fc\u30b8\u9001\u4fe1\u3059\u3079\u304d\u304b\u3092\u30c1\u30a7\u30c3\u30af<\/li>\n<li>\u9001\u4fe1\u3059\u3079\u304d\u5834\u5408\u306f\u30e1\u30fc\u30eb\u3067\u901a\u77e5<\/li>\n<li>\u3055\u3089\u306b\u3001\u5ff5\u306e\u70ba\u30c6\u30ad\u30b9\u30c8\u306e\u30ed\u30b0\u3082\u6b8b\u3057\u307e\u3059<\/li>\n<\/ol>\n<p>\u306a\u304a\u3001\u5c11\u3057\u30a4\u30ec\u30ae\u30e5\u30e9\u30fc\u306a\u306e\u306f<code>StreamHandler<\/code>\u3092\u4f7f\u3063\u3066\u3044\u308b\u90e8\u5206\u3067\u3059\u3002<\/p>\n<p>\u3053\u308c\u306f\u3001\u30ed\u30b0\u7ba1\u7406\u30d1\u30c3\u30b1\u30fc\u30b8<code>MonoLog<\/code>\u306b\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u57fa\u672c\u7684\u306a\u30cf\u30f3\u30c9\u30e9\u30fc\u306a\u306e\u3067\u3059\u304c\u3001\u3053\u308c\u3092\u624b\u52d5\u3067\u8d77\u52d5\u3057\u3066\u30c6\u30ad\u30b9\u30c8\u30ed\u30b0\u306b\u66f8\u304d\u8fbc\u3093\u3067\u3044\u308b\u308f\u3051\u3067\u3059\u3002\uff08\u81ea\u5206\u3067\u5b9f\u88c5\u3057\u306a\u304f\u3066\u3044\u3044\u90e8\u5206\u3092\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u3057\u3066\u3044\u308b\u308f\u3051\u3067\u3059\u306d\ud83d\udc4d\uff09<\/p>\n<h1>\u30e1\u30fc\u30eb\u9001\u4fe1\u90e8\u5206\u3092\u3064\u304f\u308b<\/h1>\n<p>\u3067\u306f\u3001\u5148\u307b\u3069\u306e\u30cf\u30f3\u30c9\u30e9\u30fc\u3067\u30bb\u30c3\u30c8\u3057\u305f\u30e1\u30fc\u30eb\u9001\u4fe1\u90e8\u5206\u3092\u3064\u304f\u3063\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\n<pre><strong>php artisan make:mail ErrorOccurred<\/strong><\/pre>\n<p>\u3059\u308b\u3068\u3001<code>Mailable<\/code>\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u308b\u306e\u3067\u4e2d\u8eab\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<p><strong>app\/Mail\/ErrorOccurred.php<\/strong><\/p>\n<div>\n<pre>&lt;?php\r\n\r\nnamespace App\\Mail;\r\n\r\n<strong>use App\\Models\\ErrorLog;<\/strong>\r\nuse Illuminate\\Bus\\Queueable;\r\nuse Illuminate\\Contracts\\Queue\\ShouldQueue;\r\nuse Illuminate\\Mail\\Mailable;\r\nuse Illuminate\\Mail\\Mailables\\Content;\r\nuse Illuminate\\Mail\\Mailables\\Envelope;\r\nuse Illuminate\\Queue\\SerializesModels;\r\n\r\nclass ErrorOccurred extends Mailable\r\n{\r\n    use Queueable, SerializesModels;\r\n\r\n    \/**\r\n     * Create a new message instance.\r\n     *\r\n     * @return void\r\n     *\/\r\n    <strong>public function __construct(private ErrorLog $error_log)<\/strong>\r\n    {}\r\n\r\n    \/**\r\n     * Get the message envelope.\r\n     *\r\n     * @return \\Illuminate\\Mail\\Mailables\\Envelope\r\n     *\/\r\n    <strong>public function envelope()<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        return new Envelope(<\/strong>\r\n<strong>            subject: '\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f',<\/strong>\r\n<strong>        );<\/strong>\r\n<strong>    }<\/strong>\r\n\r\n    \/**\r\n     * Get the message content definition.\r\n     *\r\n     * @return \\Illuminate\\Mail\\Mailables\\Content\r\n     *\/\r\n    <strong>public function content()<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        return new Content(<\/strong>\r\n<strong>            view: 'emails.error_occurred',<\/strong>\r\n<strong>            with: [<\/strong>\r\n<strong>                'error_log' =&gt; $this-&gt;error_log,<\/strong>\r\n<strong>            ],<\/strong>\r\n<strong>        );<\/strong>\r\n<strong>    }<\/strong>\r\n\r\n    \/\/ \u7701\u7565\r\n\r\n}<\/pre>\n<\/div>\n<\/div>\n<p>\u3053\u3053\u3082\u57fa\u672c\u7684\u306a\u30e1\u30fc\u30eb\u9001\u4fe1\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002\uff08\u5c11\u3057\u524d\u306b\u5f62\u5f0f\u304c\u5909\u308f\u308a\u307e\u3057\u305f\u306d\uff09<\/p>\n<p>\u305d\u3057\u3066\u3001\u30e1\u30fc\u30eb\u6587\u9762\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u3064\u304f\u308a\u307e\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><strong>resources\/views\/emails\/error_occurred.blade.php<\/strong><\/p>\n<div>\n<pre><strong>\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002&lt;br&gt;&lt;br&gt;<\/strong>\r\n\r\n<strong>\u30d5\u30a1\u30a4\u30eb\uff1a {{ $error_log-&gt;file }}&lt;br&gt;<\/strong>\r\n<strong>\u884c\uff1a {{ $error_log-&gt;line }}&lt;br&gt;<\/strong>\r\n<strong>\u30e1\u30c3\u30bb\u30fc\u30b8\uff1a {{ $error_log-&gt;message }}&lt;br&gt;<\/strong>\r\n<strong>\u30da\u30fc\u30b8 URL\uff1a {{ request()-&gt;fullUrl() }}&lt;br&gt;&lt;br&gt;<\/strong>\r\n\r\n<strong>\u3042\u305b\u3089\u305a\u30a8\u30e9\u30fc\u51e6\u7406\u3057\u3088\u3046 &amp;#x2728;&amp;#x1F60A;&amp;#x1F44D;<\/strong><\/pre>\n<\/div>\n<p>\u3053\u308c\u3067\u4f5c\u696d\u306f\u3059\u3079\u3066\u5b8c\u4e86\u3067\u3059\u2757<br \/>\n\u304a\u75b2\u308c\u69d8\u3067\u3057\u305f\ud83d\ude04<\/p>\n<h1>\u30c6\u30b9\u30c8\u3057\u3066\u307f\u308b<\/h1>\n<p>\u3067\u306f\u3001\u5b9f\u969b\u306b\u30c6\u30b9\u30c8\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u2757<br \/>\n\u307e\u305a\u306f\u3001\u30eb\u30fc\u30c8\u306b\u308f\u3056\u3068\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3057\u3066\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u203b \u306a\u304a\u3001\u30e1\u30fc\u30eb\u53d7\u4fe1\u306f <strong><a href=\"https:\/\/mailcatcher.me\/\" target=\"_blank\" rel=\"noopener\">mailcatcher<\/a><\/strong> \u3092\u3064\u304b\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><strong>routes\/web.php<\/strong><\/p>\n<div>\n<pre>\/\/ \u7701\u7565\r\n\r\n<strong>Route::get('minimal_notification', function(){\r\n\r\n   echo $test; \/\/ \ud83d\udc48 \u5909\u6570\u304c\u5b58\u5728\u3057\u3066\u306a\u3044\u306e\u3067\u30a8\u30e9\u30fc\u306b\u306a\u308b\r\n\r\n});<\/strong><\/pre>\n<p>\u3069\u3046\u306a\u308b\u3067\u3057\u3087\u3046\u304b\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<\/div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11430\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/02\/laravel_minimal_error_notification_2.png\" alt=\"\" width=\"422\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/02\/laravel_minimal_error_notification_2.png 422w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/02\/laravel_minimal_error_notification_2-300x227.png 300w\" sizes=\"auto, (max-width: 422px) 100vw, 422px\" \/><\/p>\n<p>\u306f\u3044\u2757<br \/>\n\u3046\u307e\u304f\u30a8\u30e9\u30fc\u306e\u5185\u5bb9\u304c\u9001\u4fe1\u3055\u308c\u3066\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u3001<code>DB<\/code>\u306e\u4e2d\u8eab\u306f\u3053\u3046\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11432\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/02\/laravel_minimal_error_notification_4.png\" alt=\"\" width=\"542\" height=\"274\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/02\/laravel_minimal_error_notification_4.png 542w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/02\/laravel_minimal_error_notification_4-300x152.png 300w\" sizes=\"auto, (max-width: 542px) 100vw, 542px\" \/><\/p>\n<p>\u305d\u3057\u3066\u3001\u30c6\u30ad\u30b9\u30c8\u30ed\u30b0\u306f\u3053\u3046\u3067\u3059\u3002<\/p>\n<div>\n<pre><strong>[2023-02-04T01:38:16.365208+09:00] minimal_notification.ERROR: Undefined variable $test {\"exception\":\"[object] (ErrorException(code: 0): Undefined variable $test at \/var\/www\/html\/l9x-ssr\/routes\/web.php:313)\"} []<\/strong><\/pre>\n<\/div>\n<p>\u3067\u306f\u3001\u7d9a\u3044\u3066\u540c\u3058\u30da\u30fc\u30b8\u3092\u30ea\u30ed\u30fc\u30c9\u3057\u3066\u3001\u30e1\u30fc\u30eb\u304c\u9001\u4fe1<strong>\u3055\u308c\u3066\u3053\u306a\u3044\u304b<\/strong>\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u3059\u308b\u3068\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<p>\u306f\u3044\u2757<\/p>\n<p>\u30e1\u30fc\u30eb\u306f\u9001\u4fe1\u3055\u308c\u3066\u6765\u305a\u3001DB\u306b\u3082\u30c7\u30fc\u30bf\u306f\u8ffd\u52a0\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002\uff08\u3053\u308c\u306f\uff11\u30f6\u6708\u30b9\u30ad\u30c3\u30d7\u3055\u308c\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\uff09<\/p>\n<p>\u3067\u306f\u6700\u5f8c\u306b\u3001\u4f8b\u5916\u51e6\u7406\u3067\u306f\u3069\u3046\u306a\u308b\u304b\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><strong>routes\/web.php<\/strong><\/p>\n<div>\n<pre>\/\/ \u7701\u7565\r\n\r\n<strong>Route::get('minimal_notification', function(){\r\n\r\n   throw new \\Exception('\u4f55\u304b\u306e\u4f8b\u5916\u304c\u767a\u751f\u3057\u307e\u3057\u305f\uff01'); \/\/ \ud83d\udc48 \u4f8b\u5916\u3092\u5b9f\u884c\u3059\u308b\r\n\r\n});<\/strong><\/pre>\n<\/div>\n<p>\u3046\u307e\u304f\u3044\u304f\u3067\u3057\u3087\u3046\u304b\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11431\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/02\/laravel_minimal_error_notification_3.png\" alt=\"\" width=\"422\" height=\"329\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/02\/laravel_minimal_error_notification_3.png 422w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/02\/laravel_minimal_error_notification_3-300x234.png 300w\" sizes=\"auto, (max-width: 422px) 100vw, 422px\" \/><\/p>\n<p>\u306f\u3044\u2757<br \/>\n\u3053\u3061\u3089\u3082\u3046\u307e\u304f\u901a\u77e5\u3055\u308c\u3066\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u3059\u3079\u3066\u6210\u529f\u3067\u3059\ud83d\ude04\u2728<\/p>\n<h1>\u4f01\u696d\u69d8\u3078\u306e\u3054\u63d0\u6848<\/h1>\n<p>\u4eca\u56de\u306f\u300c<strong>\u5fc5\u8981\u6700\u5c0f\u9650\u306e\u901a\u77e5<\/strong>\u300d\u306b\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u72ec\u81ea\u30ed\u30b0\u306f\u30a2\u30a4\u30c7\u30a2\u3057\u3060\u3044\u3067\u7121\u9650\u306b\u5909\u66f4\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u3082\u306e\u3082\u5c65\u6b74\u306b\u6b8b\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3044\u308b\u30e6\u30fc\u30b6\u30fc\u306f\u8ab0\u3060\u3063\u305f\u306e\u304b\uff1f<\/li>\n<li>IP \u30a2\u30c9\u30ec\u30b9\u306e\u53d6\u5f97<\/li>\n<li>\u30a2\u30af\u30bb\u30b9\u3055\u308c\u305f URL \u3084\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u53d6\u5f97<\/li>\n<li>\u30bb\u30c3\u30b7\u30e7\u30f3\u3084\u30af\u30c3\u30ad\u30fc\u306e\u72b6\u614b<\/li>\n<li>\u6ce8\u6587\u3057\u3088\u3046\u3068\u3057\u3066\u3044\u305f\u5546\u54c1\u306f\u4f55\u3060\u3063\u305f\u306e\u304b\uff1f<\/li>\n<\/ul>\n<p>\u306a\u3069\u306a\u3069<\/p>\n<p>\u3082\u3057\u3053\u3046\u3044\u3063\u305f\u5185\u5bb9\u3092\u3054\u6e96\u5099\u3055\u308c\u305f\u3044\u5834\u5408\u306f\u305c\u3072\u304a\u554f\u3044\u5408\u308f\u305b\u304b\u3089\u3054\u76f8\u8ac7\u304f\u3060\u3055\u3044\u3002\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<\/code>\u3067\u72ec\u81ea\u30ed\u30b0\u3092\u4f7f\u3044\u3001\u30a8\u30e9\u30fc\u901a\u77e5\u3092\u3059\u308b\u6a5f\u80fd\u3092\u5b9f\u88c5\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u30a6\u30a7\u30d6\u30b5\u30fc\u30d3\u30b9\u3067\u3044\u3046\u3068\u3053\u306e\u9593\u8a18\u4e8b\u306b\u3082\u3057\u305f<code>BugSnap<\/code>\u304c\u3068\u3066\u3082\u4fbf\u5229\u3067\u3057\u305f\u304c\u3001\u305d\u308c\u307b\u3069\u7121\u6599\u67a0\u304c\u3042\u308b\u308f\u3051\u3067\u306f\u306a\u3044\u306e\u3067\u3001\u500b\u4eba\u958b\u767a\u306e\u5834\u5408\u3060\u3068\u3053\u3046\u3044\u3063\u305f\u5de5\u592b\u3092\u3059\u308b\u3053\u3068\u3067\u4f7f\u3044\u3084\u3059\u304f\u306a\u308b\u3093\u3058\u3083\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p><strong>\ud83d\udcdd \u53c2\u8003\u30da\u30fc\u30b8\uff1a<\/strong>\u00a0<a href=\"https:\/\/blog.capilano-fw.com\/?p=11276\">Laravel \uff06 Bugsnag \u3067\u30a8\u30e9\u30fc\u691c\u77e5\uff06\u76e3\u8996\u3092\u3059\u308b<\/a><\/p>\n<p>\u305c\u3072\u7686\u3055\u3093\u3082\u500b\u4eba\u958b\u767a\u3059\u308b\u969b\u306e\u53c2\u8003\u306b\u3057\u3066\u307f\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-9439 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/07\/no_30.png\" alt=\"\" width=\"224\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/07\/no_30.png 224w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/07\/no_30-210x300.png 210w\" sizes=\"auto, (max-width: 224px) 100vw, 224px\" \/>\u300c\u30d0\u30fc\u30c1\u30e3\u30eb\u306a<br \/>\n\u30ad\u30fc\u30dc\u30fc\u30c9\uff06\u30e2\u30cb\u30bf\u30fc\u304c\u3042\u308c\u3070\u3001<br \/>\n\u5916\u51fa\u5148\u3067\u3082\u30d0\u30b0\u5bfe\u5fdc\u3067\u304d\u308b\u306e\u306b\u306a\u3041\u2026\u300d<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u79c1\u306f\u904e\u53bb\u306b\uff08\u307b\u307c\u9cf4\u304b\u305a\u98db\u3070\u305a\u306e\uff09\u500b\u4eba\u30b5\u30a4\u30c8\u3092\u3064\u304f\u3063\u3066\u304d\u307e\u3057\u305f\u304c\u3001\u305d\u306e\u958b\u767a\u3092\u3057\u3066\u3044\u308b\u4e2d\u3067\u3044\u304f\u3064\u304b\u300c\u3046\u30fc\u3093\u2026\u300d\u3068\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u7d4c\u9a13\u304c\u3042\u308a\u307e\u3057\u305f\u3002 \u305d\u3057\u3066\u3001 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.capilano-fw.com\/?p=11425\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;\u3010Laravel\u3011\u30df\u30cb\u30de\u30eb\u306a\u30a8\u30e9\u30fc\u901a\u77e5\u3092\u72ec\u81ea\u30ed\u30b0\u6a5f\u80fd\u3067\u5b9f\u88c5\u3059\u308b&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":11434,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-11425","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-laravel"],"_links":{"self":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/11425","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=11425"}],"version-history":[{"count":7,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/11425\/revisions"}],"predecessor-version":[{"id":11439,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/11425\/revisions\/11439"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/media\/11434"}],"wp:attachment":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11425"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11425"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11425"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}