{"id":9666,"date":"2021-11-01T07:00:31","date_gmt":"2021-10-31T22:00:31","guid":{"rendered":"https:\/\/blog.capilano-fw.com\/?p=9666"},"modified":"2021-10-08T17:30:11","modified_gmt":"2021-10-08T08:30:11","slug":"laravel-%e3%81%a7%e3%83%80%e3%83%bc%e3%82%af%e3%83%a2%e3%83%bc%e3%83%89%e5%af%be%e5%bf%9c%e3%81%ab%e3%81%99%e3%82%8b%ef%bc%88cdn%e3%81%a0%e3%81%8b%e3%82%89%e7%b0%a1%e5%8d%98%e4%be%bf%e5%88%a9%ef%bc%81","status":"publish","type":"post","link":"https:\/\/blog.capilano-fw.com\/?p=9666","title":{"rendered":"Laravel \u3067\u30c0\u30fc\u30af\u30e2\u30fc\u30c9\u5bfe\u5fdc\u306b\u3059\u308b\uff08CDN\u3060\u304b\u3089\u7c21\u5358\uff01\uff09"},"content":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u79c1\u3082\u9577\u3089\u304f\u958b\u767a\u306e\u304a\u4ed5\u4e8b\u3092\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u3001\u3042\u308b\u7a2e\u300c<strong>\u597d\u304d\u306a\u3053\u3068\u3067\u751f\u304d\u3066\u3044\u304f<\/strong>\u300d\u3068\u3044\u3046<code>YouTuber<\/code>\u306e\u30ad\u30e3\u30c3\u30c1\u30b3\u30d4\u30fc\u306e\u3088\u3046\u306a\u72b6\u614b\u306b\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u305f\u3060\u3001\u3082\u3061\u308d\u3093\u3067\u3059\u304c\u3001\u300c\u9577\u304f\u643a\u308f\u3063\u3066\u3044\u308b\u300d\u30a4\u30b3\u30fc\u30eb\u300c\u5e74\u9f62\u3082\u91cd\u306d\u3066\u308b\u300d\u3068\u3044\u3046\u4e8b\u5b9f\u3082\u3042\u308b\u308f\u3051\u3067\u3001\u6700\u8fd1\u300c<strong>\u3042\u30fc\u3001\u3053\u308c\u3042\u308b\u3068\u52a9\u304b\u308b\u308f\ud83d\ude0a<\/strong>\u300d\u3068\u3044\u3046\u3082\u306e\u304c\u3042\u308b\u3053\u3068\u306b\u6c17\u304c\u3064\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u308c\u304c\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<p><strong style=\"font-size: 35px;\">\u30c0\u30fc\u30af\u30e2\u30fc\u30c9<\/strong><\/p>\n<p>\u3067\u3059\u3002<\/p>\n<p>\u901a\u5e38\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306f\u3001\u80cc\u666f\u8272\u304c\u767d\u306a\u3069\u660e\u308b\u3044\u8272\u3067\u3001\u30c6\u30ad\u30b9\u30c8\u304c\u9ed2\u306e\u30b3\u30f3\u30c8\u30e9\u30b9\u30c8\u304c\u591a\u3044\u306e\u3067\u3059\u304c\u3001\u30c0\u30fc\u30af\u30e2\u30fc\u30c9\u306f\u3053\u308c\u3092\u53cd\u8ee2\u3057\u3066\u300c<strong>\u80cc\u666f\u304c\u6697\u304f\u3066\u30c6\u30ad\u30b9\u30c8\u304c\u767d\u3044<\/strong>\u300d\u3068\u3044\u3046\u914d\u8272\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u3001\u306a\u305c\u3053\u3093\u306a\u3082\u306e\u304c\u3042\u308b\u304b\u3068\u3044\u3046\u3068\u2026<\/p>\n<p><strong style=\"font-size: 35px;\">\u76ee\u304c\u75b2\u308c\u306b\u304f\u3044\u304b\u3089<\/strong><\/p>\n<p>\u306a\u3093\u3067\u3059\u306d\u3002<\/p>\n<p>\u305d\u3046\u3067\u3059\uff01<\/p>\n<p>\u300c<strong>\u76ee\u306f\u6d88\u8017\u54c1<\/strong>\u300d\u3068\u3044\u308f\u308c\u308b\u3088\u3046\u306b\u30c9\u30f3\u30c9\u30f3\u82e5\u3044\u9803\u306e\u3088\u3046\u306b\u4f7f\u3048\u306a\u304f\u306a\u308b\u306e\u3067\u3001\u5c11\u3057\u3067\u3082\u9577\u6301\u3061\u3055\u305b\u308b\u305f\u3081\u306e\u5bfe\u51e6\u306a\u3093\u3067\u3059\u306d\u3002<\/p>\n<p>\u305d\u3053\u3067\u2757<\/p>\n<p>\u4eca\u56de\u306f\u3001<code>Laravel<\/code> + <code>Bootstrap<\/code> \u3067\u30c0\u30fc\u30af\u30e2\u30fc\u30c9\u306e\u5207\u308a\u66ff\u3048\u304c\u3067\u304d\u308b\u5b9f\u88c5\u3092\u3057\u3066\u307f\u3088\u3046\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u305c\u3072\u3001\u3053\u306e\u6a5f\u80fd\u3067\uff08\u79c1\u3092\u542b\u3080\uff09\u4e16\u306e\u30aa\u30b8\u30b5\u30f3\u305f\u3061\u306b\u6551\u3044\u306e\u624b\u3092\u5dee\u3057\u4f38\u3079\u3066\u3042\u3052\u3066\u304f\u3060\u3055\u3044\uff08\u7b11\uff09<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8777 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/03\/no_15.png\" alt=\"\" width=\"338\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/03\/no_15.png 338w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/03\/no_15-300x284.png 300w\" sizes=\"auto, (max-width: 338px) 100vw, 338px\" \/>\u300c\u6700\u8fd1\u306f\u3001YouTube \u301c GitHub<br \/>\n\u307e\u3067ALL\u30c0\u30fc\u30af\u30e2\u30fc\u30c9\u3067\u3059<br \/>\n\u3053\u308c\u3082\u4e00\u7a2e\u306e\u95c7\u843d\u3061\u3067\u3059\u304b\u306d\ud83d\ude02\u300d<\/p>\n<p><strong>\u958b\u767a\u74b0\u5883\uff1a<\/strong> Laravel 8.x\u3001Bootstrap 5<\/p>\n<h1>\u524d\u63d0\u3068\u3057\u3066<\/h1>\n<p>\u4eca\u56de\u5b9f\u88c5\u3059\u308b\u306e\u306f\u3001\u5404\u30e6\u30fc\u30b6\u30fc\u3054\u3068\u306b\u300c<strong>\u30c7\u30d5\u30a9\u30eb\u30c8<\/strong>\u300d\u3068\u300c<strong>\u30c0\u30fc\u30af\u30e2\u30fc\u30c9<\/strong>\u300d\u3092\u9078\u629e\uff06\u4fdd\u5b58\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001<code>Laravel<\/code>\u306b\u30ed\u30b0\u30a4\u30f3\u6a5f\u80fd\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u524d\u63d0\u3067\u3059\u3002<\/p>\n<p>\u3082\u3057\u307e\u3060\u306e\u65b9\u306f\u5148\u306b\u4ee5\u4e0b\u3092\u53c2\u8003\u306b\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001\u30c6\u30b9\u30c8\u30e6\u30fc\u30b6\u30fc\u3092\u7528\u610f\u3057\u3066\u304a\u3044\u3066\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=8301\" target=\"_blank\" rel=\"noopener\">Laravel Breeze\u3067\u300c\u30b7\u30f3\u30d7\u30eb\u306a\u300d\u30ed\u30b0\u30a4\u30f3\u6a5f\u80fd\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a><\/p>\n<h1>users \u30c6\u30fc\u30d6\u30eb\u306b\u914d\u8272\u30c6\u30fc\u30de\u306e\u30ab\u30e9\u30e0\u3092\u8ffd\u52a0\u3059\u308b<\/h1>\n<p>\u307e\u305a\u306f\u3001<code>users<\/code>\u30c6\u30fc\u30d6\u30eb\u306b\u3001\u300c<strong>\u3069\u306e\u914d\u8272\u30c6\u30fc\u30de\u3092\u4f7f\u3046\u304b<\/strong>\u300d\u3092\u7ba1\u7406\u3059\u308b<code>theme<\/code>\u3068\u3044\u3046\u30ab\u30e9\u30e0\u3092\u8ffd\u52a0\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<pre><strong>php artisan make:migration add_theme_to_users<\/strong><\/pre>\n<p>\u3059\u308b\u3068\u3001\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u30fb\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u308b\u306e\u3067\u4e2d\u8eab\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<p><strong>database\/migrations\/****_**_**_******_add_theme_to_users.php<\/strong><\/p>\n<pre>\/\/ \u7701\u7565\r\n\r\nclass AddThemeToUsers extends Migration\r\n{\r\n    public function up()\r\n    {\r\n        <strong>Schema::table('users', function (Blueprint $table) {<\/strong>\r\n<strong>            $table-&gt;string('theme')<\/strong>\r\n<strong>                -&gt;default('normal')<\/strong>\r\n<strong>                -&gt;after('password')<\/strong>\r\n<strong>                -&gt;comment('\u914d\u8272\u30c6\u30fc\u30de'); \/\/ `normal` or `dark`<\/strong>\r\n<strong>        });<\/strong>\r\n    }\r\n\r\n    public function down()\r\n    {\r\n        <strong>Schema::table('users', function (Blueprint $table) {<\/strong>\r\n<strong>            $table-&gt;dropColumn('theme');<\/strong>\r\n<strong>        });<\/strong>\r\n    }\r\n}<\/pre>\n<p>\u5909\u66f4\u3092\u4fdd\u5b58\u3057\u305f\u3089\u3001\u5b9f\u969b\u306b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3078\u53cd\u6620\u3055\u305b\u307e\u3057\u3087\u3046\u3002<br \/>\n\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><strong>php artisan migrate<\/strong><\/pre>\n<p>\u3059\u308b\u3068\u3001\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-9667\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/10\/laravel_dark_mode_1.png\" alt=\"\" width=\"479\" height=\"309\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/10\/laravel_dark_mode_1.png 479w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/10\/laravel_dark_mode_1-300x194.png 300w\" sizes=\"auto, (max-width: 479px) 100vw, 479px\" \/><\/p>\n<h1>\u5b9a\u6570\u3092\u3064\u304f\u3063\u3066\u304a\u304f<\/h1>\n<p>\u3067\u306f\u3001\u4eca\u56de\u30c6\u30fc\u30de\u3068\u3057\u3066\u9078\u3076\u3053\u3068\u304c\u3067\u304d\u308b\u4ee5\u4e0b\uff12\u3064\u3092\u300c<strong>\u3069\u3053\u304b\u3089\u3067\u3082\u547c\u3073\u51fa\u305b\u308b\u3088\u3046\u306b<\/strong>\u300d\u30e2\u30c7\u30eb\u306b\u5b9a\u6570\u3092\u3064\u304f\u3063\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre>\/\/ \u7701\u7565\r\n\r\nclass User extends Authenticatable\r\n{\r\n    \/\/ \u7701\u7565\r\n\r\n    <strong>const THEME_NORMAL = 'normal';<\/strong>\r\n<strong>    const THEME_DARK = 'dark';<\/strong>\r\n<strong>    const THEMES = [<\/strong>\r\n<strong>        self::THEME_NORMAL =&gt; '\u30ce\u30fc\u30de\u30eb',<\/strong>\r\n<strong>        self::THEME_DARK =&gt; '\u30c0\u30fc\u30af\u30e2\u30fc\u30c9'<\/strong>\r\n<strong>    ];<\/strong><\/pre>\n<p>\u203b \u306a\u304a\u3001\u3053\u308c\u307e\u3067\u5b9a\u6570\u306b\u3064\u3044\u3066\u306f\u300c<strong>\u3046\u30fc\u3093\u3001\u8907\u96d1\u306b\u306a\u3063\u3066\u5168\u4f53\u304c\u7406\u89e3\u3057\u306b\u304f\u304f\u306a\u308b\u3088\u306d\u2026<\/strong>\u300d\u3068\u3044\u3046\u3053\u3068\u3067\u76f4\u66f8\u304d\u3057\u3066\u304d\u307e\u3057\u305f\u304c\u3001\u3084\u306f\u308a\u4e00\u6c17\u306b\u5024\u3092\u5909\u66f4\u3057\u305f\u3044\u3053\u3068\u3082\u51fa\u3066\u304f\u308b\u3068\u601d\u3046\u306e\u3067\u3001\u4eca\u56de\u306f\u63a1\u7528\u3057\u307e\u3057\u305f\u3002\uff08\u4eca\u5f8c\u3001\u8a18\u4e8b\u306e\u5185\u5bb9\u81ea\u4f53\u304c\u8907\u96d1\u306a\u5834\u5408\u306f\u76f4\u66f8\u304d\u3059\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002m(_ _)m\uff09<\/p>\n<h1>View Composer \u3092\u3064\u304f\u308b<\/h1>\n<p><code>View Composer<\/code>\u3068\u306f\u7c21\u5358\u306b\u8a00\u3046\u3068\u300c<strong>\uff11\u30f6\u6240\u306b\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u3060\u3051\u3067\u3001\u3044\u308d\u3093\u306a\u30d3\u30e5\u30fc\u306b\u5909\u6570\u3092\u9001\u308c\u308b\u3088\ud83d\udc4d\u2728<\/strong>\u300d\u3068\u3044\u3046\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f\u3053\u308c\u3092\u4f7f\u3063\u3066\u300c<strong>\u30ce\u30fc\u30de\u30eb\u306eCSS<\/strong>\u300d\u304b\u300c<strong>\u30c0\u30fc\u30af\u30e2\u30fc\u30c9\u306eCSS<\/strong>\u300d\u304c\u81ea\u52d5\u7684\u306b\u5207\u308a\u66ff\u308f\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001<code>View Composer<\/code> \u306e\u8a73\u3057\u3044\u8aac\u660e\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=8285#LaravelViewComposer\" target=\"_blank\" rel=\"noopener\">ViewComposer\u3092\u3064\u304b\u3046<\/a><\/p>\n<p><strong>app\/Providers\/ViewServiceProvider.php<\/strong><\/p>\n<pre>\/\/ \u7701\u7565\r\n\r\nclass ViewServiceProvider extends ServiceProvider\r\n{\r\n    \/\/ \u7701\u7565\r\n\r\n    public function boot()\r\n    {\r\n        \/\/ \u3069\u306e\u30da\u30fc\u30b8\u306b\u3082\u53cd\u6620\u3055\u308c\u307e\u3059\r\n        <strong>View::composer('*', function($view){<\/strong>\r\n\r\n<strong>            $theme_css_url = 'https:\/\/cdn.jsdelivr.net\/npm\/bootstrap@5.1.2\/dist\/css\/bootstrap.min.css'; \/\/ \u30ce\u30fc\u30de\u30eb\u306eCSS<\/strong>\r\n\r\n<strong>            if(auth()-&gt;check()) {<\/strong>\r\n\r\n<strong>                $user = auth()-&gt;user();<\/strong>\r\n<strong>                $theme = $user-&gt;theme;<\/strong>\r\n\r\n<strong>                if($theme === User::THEME_DARK) { \/\/ \u30c0\u30fc\u30af\u30e2\u30fc\u30c9\u306e\u5834\u5408<\/strong>\r\n\r\n<strong>                    $theme_css_url = 'https:\/\/cdn.jsdelivr.net\/npm\/bootstrap-dark-5@1.1.2\/dist\/css\/bootstrap-night.min.css'; \/\/ Bootstrap-Night \u306e CDN<\/strong>\r\n\r\n<strong>                }<\/strong>\r\n\r\n<strong>            }<\/strong>\r\n\r\n<strong>            $view-&gt;with('theme_css_url', $theme_css_url);<\/strong>\r\n\r\n<strong>        });<\/strong>\r\n    }\r\n}<\/pre>\n<p>\u3061\u306a\u307f\u306b\u3001\u4eca\u56de\u30c0\u30fc\u30af\u30e2\u30fc\u30c9\u306f <a href=\"https:\/\/github.com\/vinorodrigues\/bootstrap-dark-5\/blob\/HEAD\/docs\/bootstrap-night.md\" target=\"_blank\" rel=\"noopener\">Bootstrap-Night<\/a> \u3092<code>CDN<\/code>\u3067\u547c\u3073\u51fa\u3057\u307e\u3059\u306e\u3067\u3001\u3068\u3066\u3082\u30b7\u30f3\u30d7\u30eb\u306b\u5b9f\u88c5\u3067\u304d\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u3067\u306f\u3001<code>View Composer<\/code>\u306f\u30d5\u30a1\u30a4\u30eb\u3092\u3064\u304f\u3063\u305f\u3060\u3051\u3067\u306f\u6709\u52b9\u306b\u306f\u306a\u308a\u307e\u305b\u3093\u306e\u3067\u3001<code>Laravel<\/code>\u5074\u306b\u767b\u9332\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><strong>config\/app.php<\/strong><\/p>\n<pre>'providers' =&gt; [\r\n\r\n    \/\/ \u7701\u7565\r\n\r\n    <strong>App\\Providers\\ViewServiceProvider::class,<\/strong>\r\n\r\n],<\/pre>\n<p>\u3053\u308c\u3067\u3001\u3069\u306e\u30d3\u30e5\u30fc\u304b\u3089\u3082<code>$theme_css_url<\/code>\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u307e\u305f\u3001<code>$theme_css_url<\/code>\u306e\u4e2d\u8eab\u306f\u30e6\u30fc\u30b6\u30fc\u306e<code>theme<\/code>\u3067\u5207\u308a\u66ff\u308f\u308a\u307e\u3059\u3002<\/p>\n<h1>\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3092\u3064\u304f\u308b<\/h1>\n<p>\u7d9a\u3044\u3066\u3001\u5148\u307b\u3069\u3064\u304f\u3063\u305f<code>theme<\/code>\u306e\u4e2d\u8eab\u3092\u30e6\u30fc\u30b6\u30fc\u81ea\u8eab\u304c\u5909\u66f4\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u306f\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3067\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><strong>php artisan make:controller ThemeController<\/strong><\/pre>\n<p>\u3059\u308b\u3068\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u308b\u306e\u3067\u3001\u4e2d\u8eab\u3092\u6b21\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<pre>&lt;?php\r\n\r\nnamespace App\\Http\\Controllers;\r\n\r\n<strong>use App\\Models\\User;<\/strong>\r\nuse Illuminate\\Http\\Request;\r\nuse Illuminate\\Validation\\Rule;\r\n\r\nclass ThemeController extends Controller\r\n{\r\n    <strong>public function edit(Request $request)<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        $user = $request-&gt;user();<\/strong>\r\n<strong>        $themes = User::THEMES; \/\/ \ud83d\udc48 \u914d\u8272\u30c6\u30fc\u30de\u3092\u5b9a\u6570\u304b\u3089\u53d6\u5f97<\/strong>\r\n\r\n<strong>        return view('theme.edit')-&gt;with([<\/strong>\r\n<strong>            'user' =&gt; $user,<\/strong>\r\n<strong>            'themes' =&gt; $themes<\/strong>\r\n<strong>        ]);<\/strong>\r\n<strong>    }<\/strong>\r\n\r\n<strong>    public function update(Request $request)<\/strong>\r\n<strong>    {<\/strong>\r\n<strong>        $user = $request-&gt;user();<\/strong>\r\n<strong>        $theme_keys = array_keys(User::THEMES); \/\/ \ud83d\udc48 \u914d\u8272\u30c6\u30fc\u30de\u306e\u5b9a\u6570\u304b\u3089\u300c\u30ad\u30fc\u300d\u3092\u53d6\u5f97<\/strong>\r\n\r\n<strong>        $request-&gt;validate([<\/strong>\r\n<strong>            'theme' =&gt; ['required', Rule::in($theme_keys)]<\/strong>\r\n<strong>        ]);<\/strong>\r\n\r\n<strong>        $user-&gt;theme = $request-&gt;theme;<\/strong>\r\n<strong>        $result = $user-&gt;save();<\/strong>\r\n\r\n<strong>        return ['result' =&gt; $result];<\/strong>\r\n<strong>    }<\/strong>\r\n}<\/pre>\n<p>\u3053\u306e\u4e2d\u3067\u91cd\u8981\u306a\u306e\u306f\u3001\u300c<strong>\u914d\u8272\u30c6\u30fc\u30de<\/strong>\u300d\u3092\u5148\u307b\u3069\u30bb\u30c3\u30c8\u3057\u305f\u5b9a\u6570\u304b\u3089\u53d6\u5f97\u3057\u3066\u3044\u308b\u90e8\u5206\u3067\u3059\u3002<\/p>\n<p>\u3053\u3046\u3057\u3066\u304a\u304f\u3053\u3068\u3067\u3001\u3082\u3057\u4eca\u5f8c\u300c<strong>\u30ce\u30fc\u30de\u30eb<\/strong>\u300d\u3084\u300c<strong>\u30c0\u30fc\u30af\u30e2\u30fc\u30c9<\/strong>\u300d\u3060\u3051\u3067\u306a\u304f\u3001\u65b0\u3057\u304f\u300c<strong>\u30ab\u30e9\u30d5\u30eb<\/strong>\u300d\u306e\u3088\u3046\u306a\u65b0\u30c6\u30fc\u30de\u304c\u8ffd\u52a0\u306b\u306a\u3063\u3066\u3082\u65e2\u5b58\u306e\u30b3\u30fc\u30c9\u3092\u5909\u66f4\u3059\u308b\u5fc5\u8981\u306f\u306a\u304f\u3001<code>User<\/code>\u30e2\u30c7\u30eb\u306b\u300c\u30ab\u30e9\u30d5\u30eb\u300d\u3092\u8ffd\u52a0\u3059\u308b\u3060\u3051\u3067OK\u3067\u3059\u3002<\/p>\n<pre>\/\/ \u7701\u7565\r\n\r\nclass User extends Authenticatable\r\n{\r\n    \/\/ \u7701\u7565\r\n\r\n    const THEME_NORMAL = 'normal';\r\n    const THEME_DARK = 'dark';\r\n    const THEME_COLORFUL = 'colorful';\r\n    const THEMES = [\r\n        self::THEME_NORMAL =&gt; '\u30ce\u30fc\u30de\u30eb',\r\n        self::THEME_DARK =&gt; '\u30c0\u30fc\u30af\u30e2\u30fc\u30c9',\r\n        <strong>self::THEME_COLORFUL =&gt; '\u30ab\u30e9\u30d5\u30eb', \/\/ \ud83d\udc48 \u3053\u3093\u306a\u30ab\u30f3\u30b8\u3067\u3059\u306d<\/strong>\r\n    ];<\/pre>\n<h1>\u30d3\u30e5\u30fc\u3092\u3064\u304f\u308b<\/h1>\n<p>\u3067\u306f\u3001\u5148\u307b\u3069\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u306b\u30bb\u30c3\u30c8\u3057\u305f<code>theme.edit<\/code>\u30d3\u30e5\u30fc\u3092\u3064\u304f\u3063\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002\uff08\u30b3\u30de\u30f3\u30c9\u306f\u306a\u3044\u306e\u3067\u3001\u30d5\u30a1\u30a4\u30eb\u306f\u3054\u81ea\u8eab\u3067\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\uff09<\/p>\n<p><strong>resources\/views\/theme\/edit.blade.php<\/strong><\/p>\n<pre>&lt;html&gt;\r\n&lt;head&gt;\r\n    <strong>&lt;link href=\"{{ $theme_css_url }}\" rel=\"stylesheet\"&gt;<\/strong>\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n&lt;div id=\"app\" class=\"p-4\"&gt;\r\n    &lt;h1&gt;\u914d\u8272\u30c6\u30fc\u30de\u306e\u5909\u66f4&lt;\/h1&gt;\r\n    <strong>&lt;div v-for=\"(name,key) in themes\"&gt;<\/strong>\r\n<strong>        &lt;label&gt;<\/strong>\r\n<strong>            &lt;input type=\"radio\" :value=\"key\" v-model=\"theme\"&gt; &lt;span v-text=\"name\"&gt;&lt;\/span&gt;<\/strong>\r\n<strong>        &lt;\/label&gt;<\/strong>\r\n<strong>    &lt;\/div&gt;<\/strong>\r\n    &lt;button type=\"button\" class=\"btn btn-primary mt-3\" @click=\"onSubmit\"&gt;\u4fdd\u5b58\u3059\u308b&lt;\/button&gt;\r\n&lt;\/div&gt;\r\n&lt;script src=\"https:\/\/cdn.jsdelivr.net\/npm\/@popperjs\/core@2.9.2\/dist\/umd\/popper.min.js\"&gt;&lt;\/script&gt;\r\n&lt;script src=\"https:\/\/cdn.jsdelivr.net\/npm\/bootstrap@5.1.2\/dist\/js\/bootstrap.min.js\"&gt;&lt;\/script&gt;\r\n&lt;script src=\"https:\/\/unpkg.com\/vue@3.1.1\/dist\/vue.global.prod.js\"&gt;&lt;\/script&gt;\r\n&lt;script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/axios\/0.21.1\/axios.min.js\"&gt;&lt;\/script&gt;\r\n&lt;script&gt;\r\n\r\n    <strong>Vue.createApp({<\/strong>\r\n<strong>        data() {<\/strong>\r\n<strong>            return {<\/strong>\r\n<strong>                theme: '{{ $user-&gt;theme }}',<\/strong>\r\n<strong>                themes: @json($themes)<\/strong>\r\n<strong>            }<\/strong>\r\n<strong>        },<\/strong>\r\n<strong>        methods: {<\/strong>\r\n<strong>            onSubmit() {<\/strong>\r\n\r\n<strong>                if(confirm('\u9001\u4fe1\u3057\u307e\u3059\u3002\u3088\u308d\u3057\u3044\u3067\u3059\u304b\uff1f')) {<\/strong>\r\n\r\n<strong>                    const url = '{{ route('user.theme.update') }}';<\/strong>\r\n<strong>                    const params = {<\/strong>\r\n<strong>                        theme: this.theme,<\/strong>\r\n<strong>                        _method: 'PUT'<\/strong>\r\n<strong>                    };<\/strong>\r\n\r\n<strong>                    axios.post(url, params)<\/strong>\r\n<strong>                        .then(response =&gt; {<\/strong>\r\n\r\n<strong>                            if(response.data.result === true) {<\/strong>\r\n\r\n<strong>                                location.reload(); \/\/ \u30da\u30fc\u30b8\u3092\u518d\u8aad\u8fbc\u307f<\/strong>\r\n\r\n<strong>                            }<\/strong>\r\n\r\n<strong>                        });<\/strong>\r\n\r\n<strong>                }<\/strong>\r\n\r\n<strong>            }<\/strong>\r\n<strong>        }<\/strong>\r\n<strong>    }).mount('#app');<\/strong>\r\n\r\n&lt;\/script&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p>\u3053\u306e\u4e2d\u3067\u91cd\u8981\u306a\u306e\u306f\u3001<code>$theme_css_url<\/code>\u306e\u90e8\u5206\u3067\u3059\u3002<\/p>\n<p>\u305d\u3046\u3067\u3059\uff01<\/p>\n<p>\u3053\u3053\u306b\u306f\u3001\u5148\u307b\u3069\u306e<code>View Composer<\/code>\u3067\u30bb\u30c3\u30c8\u3057\u305f\u300c<strong>\u30e6\u30fc\u30b6\u30fc\u3054\u3068\u306b\u5207\u308a\u66ff\u308f\u308bCSS\u306eURL<\/strong>\u300d\u304c\u5165\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001\u3053\u306e\u30da\u30fc\u30b8\u3067\u8a2d\u5b9a\u3092\u5909\u66f4\u3057\u518d\u8aad\u8fbc\u307f\u3059\u308b\u3053\u3068\u3067\u300c\u30ce\u30fc\u30de\u30eb\u300dor\u300c\u30c0\u30fc\u30af\u30e2\u30fc\u30c9\u300d\u304c\u81ea\u52d5\u3067\u5207\u308a\u66ff\u308f\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h1>\u30eb\u30fc\u30c8\u3092\u3064\u304f\u308b<\/h1>\n<p>\u3067\u306f\u3001\u6700\u5f8c\u306b\u3053\u3053\u307e\u3067\u3067\u4f5c\u6210\u3057\u305f\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3092\u30eb\u30fc\u30c8\u306b\u767b\u9332\u3057\u3066\u3001\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><strong>routes\/web.php<\/strong><\/p>\n<pre><strong>use App\\Http\\Controllers\\ThemeController;<\/strong>\r\n\r\n\/\/ \u7701\u7565\r\n\r\n<strong>Route::prefix('user\/theme')-&gt;middleware('auth')-&gt;group(function(){<\/strong>\r\n\r\n<strong>    Route::get('edit', [ThemeController::class, 'edit'])-&gt;name('user.theme.edit');<\/strong>\r\n<strong>    Route::put('\/', [ThemeController::class, 'update'])-&gt;name('user.theme.update');<\/strong>\r\n\r\n<strong>});<\/strong><\/pre>\n<p>\u306a\u304a\u3001<code>middleware('auth')<\/code>\u3067\u300c<strong>\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u306a\u3044\u4eba\u306f\u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u3044\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b<\/strong>\u300d\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u3053\u308c\u3067\u4f5c\u696d\u306f\u5b8c\u4e86\u3067\u3059\uff01<br \/>\n\u304a\u75b2\u308c\u69d8\u3067\u3057\u305f\ud83d\ude0a\ud83d\udc4d\u2728<\/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\u3002<\/p>\n<p>\u307e\u305a\u5148\u306b\u30ed\u30b0\u30a4\u30f3\u3092\u3057\u3066\u304b\u3089\u300c<strong>http:\/\/******\/user\/theme\/edit<\/strong>\u300d\u3078\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002<\/p>\n<p>\u3059\u308b\u3068\u3001\u914d\u8272\u30c6\u30fc\u30de\u306e\u9078\u629e\u30d5\u30a9\u30fc\u30e0\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9670\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/10\/laravel_dark_mode_2.png\" alt=\"\" width=\"450\" height=\"300\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/10\/laravel_dark_mode_2.png 450w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/10\/laravel_dark_mode_2-300x200.png 300w\" sizes=\"auto, (max-width: 450px) 100vw, 450px\" \/><\/p>\n<p>\u3067\u306f\u3001\u300c<strong>\u30c0\u30fc\u30af\u30e2\u30fc\u30c9<\/strong>\u300d\u3092\u9078\u629e\u3057\u3066\u4fdd\u5b58\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9669\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/10\/laravel_dark_mode_3.png\" alt=\"\" width=\"450\" height=\"300\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/10\/laravel_dark_mode_3.png 450w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/10\/laravel_dark_mode_3-300x200.png 300w\" sizes=\"auto, (max-width: 450px) 100vw, 450px\" \/><\/p>\n<p>\u3059\u308b\u3068\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb\uff1f\uff1f<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-9671\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/10\/laravel_dark_mode_4.png\" alt=\"\" width=\"450\" height=\"300\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/10\/laravel_dark_mode_4.png 450w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/10\/laravel_dark_mode_4-300x200.png 300w\" sizes=\"auto, (max-width: 450px) 100vw, 450px\" \/><\/p>\n<p>\u306f\u3044\u2757\u81ea\u52d5\u3067\u30c0\u30fc\u30af\u30e2\u30fc\u30c9\u306b\u306a\u308a\u307e\u3057\u305f\u3002\uff08\u3082\u3061\u308d\u3093\u30ce\u30fc\u30de\u30eb\u306b\u623b\u3059\u3053\u3068\u3082\u78ba\u8a8d\u3057\u307e\u3057\u305f\uff09<\/p>\n<p>\u6210\u529f\u3067\u3059\ud83d\ude0a\ud83d\udc4d\u2728<\/p>\n<h1>\u4f01\u696d\u69d8\u3078\u306e\u3054\u63d0\u6848<\/h1>\n<p>\u4eca\u56de\u306e\u6a5f\u80fd\u3092\u3064\u304b\u3048\u3070\u3001\u9577\u6642\u9593\u30a6\u30a7\u30d6\u30b7\u30b9\u30c6\u30e0\u3092\u4f7f\u3046\u3053\u3068\u306b\u306a\u308b\u5f93\u696d\u54e1\u3055\u3093\u3084\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u69d8\u65b9\u306b\u300c<strong>\u76ee\u306b\u512a\u3057\u3044<\/strong>\u300d\uff1d\u300c<strong>\u75b2\u308c\u306a\u3044<\/strong>\u300d\uff1d\u300c<strong>\u3088\u308a\u4f7f\u3063\u3066\u3082\u3089\u3048\u308b<\/strong>\u300d\u30b7\u30b9\u30c6\u30e0\u3092\u69cb\u7bc9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3082\u3057\u3053\u3046\u3044\u3063\u305f\u300c<strong>\u898b\u305f\u76ee\u306f\u5c0f\u3055\u3044\u3051\u308c\u3069\u3082\u3001\u9577\u3044\u76ee\u3067\u307f\u308b\u3068\u5927\u304d\u306a\u5dee\u306b\u306a\u308b<\/strong>\u300d\u30b5\u30d6\u7684\u306a\u6a5f\u80fd\u3092\u3054\u5e0c\u671b\u3067\u3057\u305f\u3089\u3001\u305c\u3072\u304a\u554f\u3044\u5408\u308f\u305b\u3088\u308a\u3054\u9023\u7d61\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u3069\u3046\u305e\u3088\u308d\u3057\u304f\u304a\u9858\u3044\u3044\u305f\u3057\u307e\u3059\u3002m(_ _)m<\/p>\n<h1>\u304a\u308f\u308a\u306b<\/h1>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4eca\u56de\u306f<code>Laravel<\/code>\u3092\u4f7f\u3063\u3066\u914d\u8272\u30c6\u30fc\u30de\u306e\u5207\u308a\u66ff\u3048\u3092\u5b9f\u88c5\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u6b63\u76f4\u306a\u3068\u3053\u308d\u3001\u4f7f\u3063\u3066\u3044\u308b\u306e\u306f<code>Laravel<\/code>\u306e\u57fa\u672c\u7684\u306a\u6280\u8853\u306e\u7d44\u307f\u5408\u308f\u305b\u3060\u3051\u3067\u3059\u306e\u3067\u3001\u305d\u308c\u307b\u3069\u96e3\u3057\u304f\u306f\u306a\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u4eca\u56de\u306f\u30e2\u30c7\u30eb\u5185\u306b\u5b9a\u6570\u3092\u3064\u3051\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u500b\u4eba\u7684\u306b\u306f\u5b9a\u6570\u306f\u30b3\u30fc\u30c9\u91cf\u304c\u5897\u3048\u307e\u3059\u3057\u3001\u53ef\u8aad\u6027\u304c\u60aa\u304f\u306a\u308b\u306e\u3067\u597d\u304d\u3067\u306f\u306a\u3044\u3093\u3067\u3059\u304c\u3001\u4eca\u5f8c\u306e\u30e1\u30f3\u30c6\u30f3\u30ca\u30f3\u30b9\u3092\u3057\u3084\u3059\u304f\u3059\u308b\u306b\u306f\u3042\u3063\u305f\u307b\u3046\u304c\u697d\u306a\u306e\u306f\u4e8b\u5b9f\u3067\u3059\u306d\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u3001\u30b3\u30fc\u30c9\u4e2d\u306e\u30b3\u30e1\u30f3\u30c8\u306f\u30d6\u30ed\u30b0\u8a18\u4e8b\u3060\u304b\u3089\u3064\u3051\u3066\u307e\u3059\u3051\u3069\u3001\u79c1\u306e\u5834\u5408\u306f\u5b9f\u969b\u306b\u306f\u307b\u307c\u66f8\u304b\u306a\u3044\uff08\u898b\u308c\u3070\u5206\u304b\u308b\u30b3\u30fc\u30c9\u3092\u91cd\u8996\u3057\u3066\u3044\u307e\u3059\uff09\u3067\u3059\u3057\u3001\u3069\u3046\u3057\u3066\u3082\u5fc5\u8981\u306a\u6642\u3067\u3082\u3001\u5358\u8a9e\u304c\uff11\u301c\uff13\u3064\u3050\u3089\u3044\u3067\u30b7\u30f3\u30d7\u30eb\u306b\u3067\u66f8\u304f\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u203b \u78ba\u304b\u6614\u300c<strong>\u30b3\u30e1\u30f3\u30c8\u306f\u66f8\u304b\u306a\u3044\u307b\u3046\u304c\u30e1\u30ea\u30c3\u30c8\u304c\u5927\u304d\u3044<\/strong>\u300d\u3068\u3044\u3046\u6d77\u5916\u306e\u8a18\u4e8b\u3092\u898b\u305f\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u5b9f\u969b\u306f\u3069\u3046\u306a\u3093\u3067\u3057\u3087\u3046\u306d\u3002\u3053\u306e\u8fba\u308a\u3082\u4eba\u306b\u3088\u3063\u3066\u610f\u898b\u304c\u5206\u304b\u308c\u308b\u3068\u3053\u308d\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u4eca\u5f8c\u306e\u8ab2\u984c\u3068\u3057\u3066\u79c1\u3082\u5c11\u3057\u305a\u3064\u6539\u5584\u3057\u3066\u3044\u304d\u307e\u3059\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-9672 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/10\/no_12_dark.png\" alt=\"\" width=\"226\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/10\/no_12_dark.png 226w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2021\/10\/no_12_dark-212x300.png 212w\" sizes=\"auto, (max-width: 226px) 100vw, 226px\" \/>\u300c\u753b\u50cf\u3082\u30c0\u30fc\u30af\u30e2\u30fc\u30c9\u306b\u3057\u3066\u307f\u307e\u3057\u305f\u3002<br \/>\n\u76ee\u306b\u512a\u3057\u304f\u306a\u308a\u307e\u3059\u3088\u3046\u306b\u2757\u300d<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u79c1\u3082\u9577\u3089\u304f\u958b\u767a\u306e\u304a\u4ed5\u4e8b\u3092\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u3001\u3042\u308b\u7a2e\u300c\u597d\u304d\u306a\u3053\u3068\u3067\u751f\u304d\u3066\u3044\u304f\u300d\u3068\u3044\u3046YouTuber\u306e\u30ad\u30e3\u30c3\u30c1\u30b3\u30d4\u30fc\u306e\u3088\u3046\u306a\u72b6\u614b\u306b\u3042\u308a\u307e\u3059\u3002 \u305f\u3060\u3001\u3082\u3061\u308d\u3093 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.capilano-fw.com\/?p=9666\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;Laravel \u3067\u30c0\u30fc\u30af\u30e2\u30fc\u30c9\u5bfe\u5fdc\u306b\u3059\u308b\uff08CDN\u3060\u304b\u3089\u7c21\u5358\uff01\uff09&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":9676,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-9666","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\/9666","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=9666"}],"version-history":[{"count":9,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/9666\/revisions"}],"predecessor-version":[{"id":9675,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/9666\/revisions\/9675"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/media\/9676"}],"wp:attachment":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9666"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9666"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9666"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}