{"id":1528,"date":"2018-10-16T19:24:52","date_gmt":"2018-10-16T10:24:52","guid":{"rendered":"https:\/\/blog.capilano-fw.com\/?p=1528"},"modified":"2018-10-23T03:35:10","modified_gmt":"2018-10-22T18:35:10","slug":"laravel-vue-%e3%81%a7%e3%83%9a%e3%83%bc%e3%82%b8%e3%83%aa%e3%83%b3%e3%82%af%e3%82%92%e3%81%a4%e3%81%8f%e3%82%8b%ef%bc%88%e3%83%80%e3%82%a6%e3%83%b3%e3%83%ad%e3%83%bc%e3%83%89%e5%8f%af%ef%bc%89","status":"publish","type":"post","link":"https:\/\/blog.capilano-fw.com\/?p=1528","title":{"rendered":"Laravel + Vue \u3067\u30da\u30fc\u30b8\u30ea\u30f3\u30af\u3092\u3064\u304f\u308b\uff08\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u53ef\uff09"},"content":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u524d\u56de\u521d\u5fc3\u306b\u8fd4\u3063\u3066Vue\u306e\u57fa\u672c\u3001\u30d0\u30a4\u30f3\u30c7\u30a3\u30f3\u30b0\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u305f\u8a18\u4e8b\u00a0<a href=\"https:\/\/blog.capilano-fw.com\/?p=1482\" target=\"_blank\" rel=\"noopener\">Vue\u3067\u30d5\u30a9\u30fc\u30e0\u30fb\u30d0\u30a4\u30f3\u30c7\u30a3\u30f3\u30b0\u3059\u308b\u5168\u5b9f\u4f8b\uff01\uff08\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u53ef\uff09<\/a>\u3092\u304a\u5c4a\u3051\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u306e\u6d41\u308c\u3068\u8a00\u3063\u3066\u306f\u4f55\u3067\u3059\u304c\u3001\u4eca\u56de\u8a18\u4e8b\u3068\u3057\u3066\u7d39\u4ecb\u3057\u305f\u3044\u3068\u8003\u3048\u3066\u3044\u305f\u5185\u5bb9\u3092\u601d\u3044\u51fa\u3057\u307e\u3057\u305f\u3002\u305d\u308c\u306f<strong>Laravel + Vue\u3067\u30da\u30fc\u30b8\uff08\u30d1\u30b8\u30cd\u30fc\u30b7\u30e7\u30f3\uff09\u30ea\u30f3\u30af\u3092\u3064\u304f\u308b<\/strong>\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u3068\u3044\u3046\u306e\u3082\u3001\u6700\u8fd1\u306e\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u958b\u767a\u3067\u306fAjax\u3067\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u3066Vue\u3084React\u3067\u30ea\u30b9\u30c8\u3092\u63cf\u753b\u3059\u308b\u3053\u3068\u304c\u6614\u3088\u308a\u3082\u4e00\u822c\u7684\u306b\u306a\u3063\u3066\u304d\u3066\u3044\u308b\u304b\u3089\u3067\u3059\u3002<\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4eca\u56de\u3082\u9806\u3092\u8ffd\u3063\u3066\u624b\u9806\u3092\u7d39\u4ecb\u3057\u3001\u3055\u3089\u306b\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u4e00\u5f0f\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u306e\u3067\u3001\u305c\u3072\u30a6\u30a7\u30d6\u958b\u767a\u306e\u5b66\u7fd2\u306b\u5f79\u7acb\u3066\u3066\u304f\u3060\u3055\u3044\u306d\u3002<\/p>\n<p>\u3067\u306f\u5b9f\u969b\u306b\u958b\u767a\u3092\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\uff01<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone ssolid #000;-image-418 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/04\/35.png\" alt=\"\" width=\"370\" height=\"240\" \/><\/p>\n<h1>\u3084\u308a\u305f\u3044\u3053\u3068<\/h1>\n<p>\u4eca\u56de\u306f\u3001Ajax\u3092\u901a\u3057\u3066\u30c7\u30fc\u30bf\u53d6\u5f97\u3057\u3001\u305d\u306e\u30c7\u30fc\u30bf\u3092\u5143\u306bJavaScript\uff08Vue.js\uff09\u3092\u4f7f\u3063\u3066\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30da\u30fc\u30b8\u30ea\u30f3\u30af\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1535\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/pagination_2.png\" alt=\"\" width=\"220\" height=\"66\" \/><\/p>\n<h1>\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u3092\u7528\u610f\u3059\u308b<\/h1>\n<p>\u307e\u305a\u3001Ajax\u3067\u53d6\u5f97\u3059\u308b\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u3092\u7528\u610f\u3059\u308b\u305f\u3081\u306b\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30e2\u30c7\u30eb\u3068\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\uff08<code>-m<\/code>\u3092\u3064\u3051\u308b\u3068\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3082\u4e00\u7dd2\u306b\u4f5c\u6210\u3067\u304d\u307e\u3059\uff09<\/p>\n<pre><strong>php artisan make:model Item -m<\/strong><\/pre>\n<p>\u305d\u3057\u3066\u3001\u4f5c\u6210\u3055\u308c\u305f<code>database\/migrations\/****_**_**_******_create_items_table.php<\/code>\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304d\u3001<code>name<\/code>\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u8ffd\u52a0\u3057\u3066\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre>public function up()\r\n{\r\n    Schema::create('items', function (Blueprint $table) {\r\n        $table-&gt;increments('id');\r\n        <strong>$table-&gt;string('name');<\/strong>\r\n        $table-&gt;timestamps();\r\n    });\r\n}<\/pre>\n<pre><strong>php artisan migrate<\/strong><\/pre>\n<p>\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u884c\u3059\u308b\u3068\u30c6\u30fc\u30d6\u30eb\u306f\u3053\u3046\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1531\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/items_table_structure.png\" alt=\"\" width=\"343\" height=\"232\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/items_table_structure.png 343w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/items_table_structure-300x203.png 300w\" sizes=\"auto, (max-width: 343px) 100vw, 343px\" \/><\/p>\n<p>\u3067\u306f\u3001\u3053\u3053\u306b\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u3092\u8ffd\u52a0\u3059\u308b\u305f\u3081\u306b\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067<code>ItemsTableSeeder<\/code>\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre><strong>php artisan make:seed ItemsTableSeeder<\/strong><\/pre>\n<p><code>database\/seeds\/ItemsTableSeeder.php<\/code>\u304c\u4f5c\u6210\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u305d\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u3044\u3066\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u3092<code>items<\/code>\u30c6\u30fc\u30d6\u30eb\u3078\u8ffd\u52a0\u3059\u308b\u30b3\u30fc\u30c9\u3092\u66f8\u304d\u8fbc\u307f\u307e\u3059\u3002<\/p>\n<pre>&lt;?php\r\n\r\nuse Illuminate\\Database\\Seeder;\r\n\r\nclass ItemsTableSeeder extends Seeder\r\n{\r\n    \/**\r\n     * Run the database seeds.\r\n     *\r\n     * @return void\r\n     *\/\r\n    public function run()\r\n    {\r\n<strong>        for($i = 1 ; $i &lt;= 100 ; $i++) {<\/strong>\r\n\r\n<strong>            \\App\\Item::create([<\/strong>\r\n<strong>                'name' =&gt; $i .'\u756a\u76ee\u306e\u5546\u54c1\u540d'<\/strong>\r\n<strong>            ]);<\/strong>\r\n\r\n<strong>        }<\/strong>\r\n    }\r\n}<\/pre>\n<p>\u3055\u3089\u306b\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b<code>database\/seeds\/DatabaseSeeder.php<\/code>\u306b<code>ItemsTableSeeder<\/code>\u3092\u767b\u9332\u3057\u3066Seeder\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre>public function run()\r\n{\r\n     <strong>$this-&gt;call(ItemsTableSeeder::class);<\/strong>\r\n}<\/pre>\n<pre><strong>php artisan migrate:fresh --seed<\/strong><\/pre>\n<p>\u203b \u4ed6\u306eSeeder\u3082\u5b58\u5728\u3057\u3066\u3044\u308b\u305f\u3081\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u305d\u3046\u3067\u306a\u3044\u5834\u5408\u306f<code>php artisan db:seed<\/code>\u3067\u3082\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u5b9f\u884c\u304c\u5b8c\u4e86\u3059\u308b\u3068\u30c6\u30fc\u30d6\u30eb\u306f\u3053\u3046\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1532\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/items_table_data.png\" alt=\"\" width=\"523\" height=\"680\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/items_table_data.png 523w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/items_table_data-231x300.png 231w\" sizes=\"auto, (max-width: 523px) 100vw, 523px\" \/><\/p>\n<h1>Ajax\u3067\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b<\/h1>\n<p>\u3067\u306f\u3001\u3053\u3053\u304b\u3089Ajax\u3092\u901a\u3057\u3066\u30c7\u30fc\u30bf\u53d6\u5f97\u3059\u308b\u90e8\u5206\u3092\u958b\u767a\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h2>Route\u3092\u8ffd\u52a0\u3059\u308b<\/h2>\n<p>\u4eca\u56de\u306e\u6a5f\u80fd\u306b\u5fc5\u8981\u3068\u306a\u308b\u306e\u306f\u3001\u30da\u30fc\u30b8\u30ea\u30f3\u30af\u3092\u8868\u793a\u3059\u308b\u30e1\u30a4\u30f3\u30da\u30fc\u30b8\u3068Ajax\u3067\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u30da\u30fc\u30b8\uff12\u3064\u306a\u306e\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre><strong>Route::get('pagination', 'PaginationController@index'); \/\/ \u30e1\u30a4\u30f3<\/strong>\r\n<strong>Route::get('ajax\/pagination', 'Ajax\\PaginationController@index'); \/\/ Ajax<\/strong><\/pre>\n<p>\u307e\u3060\u5fc5\u8981\u3068\u306a\u308b\uff12\u3064\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u304c\u4f5c\u6210\u3067\u304d\u3066\u3044\u307e\u305b\u3093\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre><strong>php artisan make:controller PaginationController\r\nphp artisan make:controller Ajax\\\\PaginationController\r\n<\/strong><\/pre>\n<h2>\u30e1\u30a4\u30f3\u30da\u30fc\u30b8\u3092\u4f5c\u6210\u3059\u308b<\/h2>\n<p>\u305d\u3057\u3066\u3001\u30e1\u30a4\u30f3\u30da\u30fc\u30b8\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u306b<code>index()<\/code>\u3092\u4f5c\u6210\u3057\u3001\u3053\u306e\u4e2d\u3067<code>pagination<\/code>\u3068\u3044\u3046\u540d\u524d\u306e\u30d3\u30e5\u30fc\u3092\u8aad\u307f\u8fbc\u3080\u8a18\u8ff0\u3092\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre>&lt;?php\r\n\r\nnamespace App\\Http\\Controllers;\r\n\r\nuse Illuminate\\Http\\Request;\r\n\r\nclass PaginationController extends Controller\r\n{\r\n    <strong>public function index() {<\/strong>\r\n\r\n<strong>        return view('pagination');<\/strong>\r\n\r\n<strong>    }<\/strong>\r\n}<\/pre>\n<p>\u3082\u3061\u308d\u3093<code>pagination<\/code>\u30d3\u30e5\u30fc\u306f\u307e\u3060\u5b58\u5728\u3057\u3066\u3044\u306a\u3044\u306e\u3067\u3001<code>resources\/views\/pagination.blade.php<\/code>\u3092\u4f5c\u6210\u3057\u3066\u3001\u307e\u305a\u306f<code>Vue<\/code>\u3068<code>axios<\/code>\uff08Ajax\u901a\u4fe1\u3059\u308bJS\u30e9\u30a4\u30d6\u30e9\u30ea\uff09\u3001\u305d\u3057\u3066\u898b\u305f\u76ee\u3092\u7dba\u9e97\u306b\u3057\u305f\u3044\u306e\u3067bootstrap\uff08css\u306e\u307f\uff09\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u4ee5\u4e0b\u306e\u5185\u5bb9\u3092\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/p>\n<pre>&lt;html&gt;\r\n&lt;head&gt;\r\n    <strong>&lt;link href=\"https:\/\/stackpath.bootstrapcdn.com\/bootstrap\/4.1.3\/css\/bootstrap.min.css\" rel=\"stylesheet\"&gt;<\/strong>\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n    &lt;div id=\"app\"&gt;\r\n\r\n    &lt;\/div&gt;\r\n    <strong>&lt;script src=\"https:\/\/cdn.jsdelivr.net\/npm\/vue@2.5.17\/dist\/vue.min.js\"&gt;&lt;\/script&gt;<\/strong>\r\n<strong>    &lt;script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/axios\/0.18.0\/axios.min.js\"&gt;&lt;\/script&gt;<\/strong>\r\n    &lt;script&gt;\r\n\r\n        new Vue({\r\n            el: '#app'\r\n        });\r\n\r\n    &lt;\/script&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<h2>Ajax\u90e8\u5206\u3092\u4f5c\u6210\u3059\u308b<\/h2>\n<p>\u6b21\u306b\u3001Ajax\u7528\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u306b<code>index()<\/code>\u3092\u8ffd\u52a0\u3057\u3066\u4ee5\u4e0b\u306e\u5185\u5bb9\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<pre>&lt;?php\r\n\r\nnamespace App\\Http\\Controllers\\Ajax;\r\n\r\nuse Illuminate\\Http\\Request;\r\nuse App\\Http\\Controllers\\Controller;\r\n\r\nclass PaginationController extends Controller\r\n{\r\n    <strong>public function index() {<\/strong>\r\n\r\n<strong>        return \\App\\Item::paginate(25);<\/strong>\r\n\r\n<strong>    }<\/strong>\r\n}<\/pre>\n<p><code>paginate(***)<\/code>\u3092\u4f7f\u3046\u3068\u3001\u6307\u5b9a\u3057\u305f\u4ef6\u6570\u3067\u30da\u30fc\u30b8\u3054\u3068\u306e\u30c7\u30fc\u30bf\u53d6\u5f97\u304c\u3067\u304d\u308b\u3060\u3051\u3067\u306a\u304f\u3001<\/p>\n<ul>\n<li>current_page\u3000\u30fb\u30fb\u30fb\u3000\u73fe\u5728\u306e\u30da\u30fc\u30b8\u756a\u53f7<\/li>\n<li>first_page\u3000\u30fb\u30fb\u30fb\u3000\u6700\u521d\u306e\u30da\u30fc\u30b8\u756a\u53f7<\/li>\n<li>last_page\u3000\u30fb\u30fb\u30fb\u3000\u6700\u5f8c\u306e\u30da\u30fc\u30b8\u756a\u53f7<\/li>\n<\/ul>\n<p>\u306a\u3069\u3001\u30da\u30fc\u30b8\u30ea\u30f3\u30af\u306b\u5fc5\u8981\u306a\u30c7\u30fc\u30bf\u3092\u81ea\u52d5\u3067\u7528\u610f\u3057\u3066\u304f\u308c\u307e\u3059\u3002<\/p>\n<p>\u3067\u306f\u3001\u6b21\u306bJavaScript\u90e8\u5206\u3067\u3059\u3002<\/p>\n<pre>new Vue({\r\n    el: '#app',\r\n    data: {\r\n        <strong>page: 1,<\/strong>\r\n<strong>        items: []<\/strong>\r\n    },\r\n    methods: {\r\n        <strong>getItems() {<\/strong>\r\n\r\n<strong>            const url = '\/ajax\/pagination?page='+ this.page;<\/strong>\r\n<strong>            axios.get(url)<\/strong>\r\n<strong>                .then((response) =&gt; {<\/strong>\r\n\r\n<strong>                    this.items = response.data;<\/strong>\r\n\r\n<strong>                });<\/strong>\r\n\r\n<strong>        }<\/strong>\r\n    },\r\n    mounted() {\r\n\r\n        <strong>this.getItems();<\/strong>\r\n\r\n    }\r\n});<\/pre>\n<p>\u307e\u305a<code>data<\/code>\u306b\u4ee5\u4e0b\u306e\u5909\u6570\u3092\u8ffd\u52a0\u3057\u3001<\/p>\n<ul>\n<li>page\u3000\u30fb\u30fb\u30fb\u3000\u73fe\u5728\u306e\u30da\u30fc\u30b8\u756a\u53f7<\/li>\n<li>items\u3000\u30fb\u30fb\u30fb\u3000items\u30c6\u30fc\u30d6\u30eb\u306e\u30da\u30fc\u30b8\u3054\u3068\u306e\u30c7\u30fc\u30bf\uff08\u4ed8\u968f\u30c7\u30fc\u30bf\u542b\u3080\uff09<\/li>\n<\/ul>\n<p>Ajax\u3092\u901a\u3057\u3066\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b<code>getItems()<\/code>\u30e1\u30bd\u30c3\u30c9\u3092\u8ffd\u52a0\u3002\u3055\u3089\u306b\u3001\u30da\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u305f\u3089\u3059\u3050\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u305f\u3081<code>mounted()<\/code>\u5185\u3067<code>getItems()<\/code>\u3092\u547c\u3076\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<p>\u3067\u306f\u3001\u5b9f\u969b\u306b\u30d6\u30e9\u30a6\u30b6\u3067\u958b\u3044\u3066\u901a\u4fe1\u5185\u5bb9\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1534\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/Screenshot-from-2018-10-16-05-05-59.png\" alt=\"\" width=\"619\" height=\"270\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/Screenshot-from-2018-10-16-05-05-59.png 619w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/Screenshot-from-2018-10-16-05-05-59-300x131.png 300w\" sizes=\"auto, (max-width: 619px) 100vw, 619px\" \/><\/p>\n<p>\u3046\u307e\u304f\u3044\u304d\u307e\u3057\u305f\uff01<br \/>\n\u3067\u306f\u6b21\u304b\u3089\u306f\u672c\u984c\u306e\u30da\u30fc\u30b8\u30ea\u30f3\u30af\u3092\u4f5c\u6210\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h1>\u30da\u30fc\u30b8\u30ea\u30f3\u30af\u3092\u3064\u304f\u308b<\/h1>\n<p>\u307e\u305a\u30da\u30fc\u30b8\u30ea\u30f3\u30af\u306e\u90e8\u5206\u3067\u3059\u304c\u3001\u4eca\u56de\u306f\u72ec\u81ea\u306eVue\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\n\u3053\u308c\u306f\u3001\u30da\u30fc\u30b8\u30ea\u30f3\u30af\u3092\u5229\u7528\u3059\u308b\u983b\u5ea6\u306f\u9ad8\u3044\u306e\u3067\u3001\u3044\u3064\u3067\u3082\u4f7f\u3044\u307e\u308f\u3057\u304c\u3067\u304d\u308b\uff08\uff1d\u3064\u307e\u308a\u958b\u767a\u52b9\u7387\u3092\u4e0a\u3052\u308b\uff09\u305f\u3081\u3067\u3059\u3002<\/p>\n<h2>Vue\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u3064\u304f\u308b<\/h2>\n<p>\u305d\u306e\u305f\u3081\u3001\u307e\u305a\u306f<code>public\/js\/vue\/v-pagination.js<\/code>\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u3092\u3064\u304f\u308a\u3001\u3053\u3053\u306b\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u4f5c\u6210\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u5b9f\u969b\u306e\u30b3\u30fc\u30c9\u306f\u4ee5\u4e0b\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre>Vue.component('v-pagination', {\r\n    props: {\r\n        <strong>data: {}<\/strong>  \/\/ paginate()\u3067\u53d6\u5f97\u3057\u305f\u30c7\u30fc\u30bf\r\n    },\r\n    methods: {\r\n<strong>        move(page) {<\/strong>\r\n\r\n<strong>            if(!this.isCurrentPage(page)) {<\/strong>\r\n\r\n<strong>                this.$emit('move-page', page);<\/strong>\r\n\r\n<strong>            }<\/strong>\r\n\r\n<strong>        },<\/strong>\r\n        isCurrentPage(page) {\r\n\r\n            return (this.data.current_page == page);\r\n\r\n        },\r\n<strong>        getPageClass(page) {<\/strong>\r\n\r\n<strong>            let classes = ['page-item'];<\/strong>\r\n\r\n<strong>            if(this.isCurrentPage(page)) {<\/strong>\r\n\r\n<strong>                classes.push('active');<\/strong>\r\n\r\n<strong>            }<\/strong>\r\n\r\n<strong>            return classes;<\/strong>\r\n\r\n<strong>        }<\/strong>\r\n    },\r\n    computed: {\r\n        <strong>hasPrev() {<\/strong>\r\n\r\n<strong>            return (this.data.prev_page_url != null);<\/strong>\r\n\r\n<strong>        },<\/strong>\r\n<strong>        hasNext() {<\/strong>\r\n\r\n<strong>            return (this.data.next_page_url != null);<\/strong>\r\n\r\n<strong>        },<\/strong>\r\n        <strong>pages() {<\/strong>\r\n\r\n<strong>            let pages = [];<\/strong>\r\n\r\n<strong>            for(let i = 1 ; i &lt;= this.data.last_page ; i++) {<\/strong>\r\n\r\n<strong>                pages.push(i);<\/strong>\r\n\r\n<strong>            }<\/strong>\r\n\r\n<strong>            return pages;<\/strong>\r\n\r\n<strong>        }<\/strong>\r\n    },\r\n    template:\r\n        '&lt;ul class=\"pagination\"&gt;'+\r\n            '&lt;li class=\"page-item\" <strong>v-if=\"hasPrev\"<\/strong>&gt;'+\r\n                '&lt;a class=\"page-link\" href=\"#\" <strong>@click.prevent=\"move(data.current_page-1)\"<\/strong>&gt;\u524d\u3078&lt;\/a&gt;'+\r\n            '&lt;\/li&gt;'+\r\n            '&lt;li :class=\"<strong>getPageClass(page)<\/strong>\" <strong>v-for=\"page in pages\"<\/strong>&gt;'+\r\n                '&lt;a class=\"page-link\" href=\"#\" <strong>v-text=\"page\" @click.prevent=\"move(page)\"<\/strong>&gt;&lt;\/a&gt;'+\r\n            '&lt;\/li&gt;'+\r\n            '&lt;li class=\"page-item\" <strong>v-if=\"hasNext\"<\/strong>&gt;'+\r\n                '&lt;a class=\"page-link\" href=\"#\" <strong>@click.prevent=\"move(data.current_page+1)\"<\/strong>&gt;\u6b21\u3078&lt;\/a&gt;'+\r\n            '&lt;\/li&gt;'+\r\n        '&lt;\/ul&gt;'\r\n});<\/pre>\n<p>\u5c11\u3057\u30b3\u30fc\u30c9\u304c\u9577\u304f\u306a\u3063\u305f\u306e\u3067\u3001\u91cd\u8981\u306a\u90e8\u5206\u3092\u3072\u3068\u3064\u305a\u3064\u8aac\u660e\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h3>props<\/h3>\n<p><code>data<\/code>\u306f\u3001Ajax\uff08\u3064\u307e\u308a\u3001Laravel\u306e<code>paginate()<\/code>\uff09\u3067\u53d6\u5f97\u3057\u305f\u30c7\u30fc\u30bf\u3067\u3001\u3053\u306e\u30c7\u30fc\u30bf\u3092\u5143\u306b\u30ea\u30f3\u30af\u306e\u8868\u793a\u975e\u8868\u793a\u3092\u6c7a\u3081\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3>hasPrev \u3068 hasNext<\/h3>\n<p>\u300c\u524d\u3078\u300d\u300c\u6b21\u3078\u300d\u3092\u8868\u793a\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u5224\u65ad\u3059\u308b\u7591\u4f3c\u5909\u6570\uff08computed\uff09\u3067\u3059\u3002\u3082\u3057<code>true<\/code>\u304c\u8fd4\u3063\u3066\u304f\u308b\u306a\u3089\u8a72\u5f53\u3059\u308b\u30ea\u30f3\u30af\u3092\u8868\u793a\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>pages<\/h3>\n<p>pages\u306e\u5185\u5bb9\u306f\u3001\u4f8b\u3048\u3070\uff11\u301c\uff15\u30da\u30fc\u30b8\u307e\u3067\u3042\u308b\u5834\u5408\u306f<code>1<\/code>, <code>2<\/code>, <code>3<\/code>, <code>4<\/code>, <code>5<\/code>\u306e\u914d\u5217\u304c\u8fd4\u3063\u3066\u304f\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u305d\u3057\u3066\u3001\u3053\u306e\u914d\u5217\u3092<code>v-for<\/code>\u3067\u30eb\u30fc\u30d7\u3055\u305b\u3066\u30da\u30fc\u30b8\u756a\u53f7\u304c\u66f8\u304b\u308c\u305f\u30ea\u30f3\u30af\u3092\u4f5c\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>getPageClass(page)<\/h3>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u73fe\u5728\u306e\u30da\u30fc\u30b8\u3092\u9752\u304f\u8868\u793a\u3059\u308b\u305f\u3081\u306b\u306f\u3001bootstrap 4 \u3067\u306f<code>class<\/code>\u306b<code>active<\/code>\u3092\u8ffd\u52a0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u3053\u306e\u30e1\u30bd\u30c3\u30c9\u5185\u3067\u73fe\u5728\u30da\u30fc\u30b8\u3060\u3051\u306b<code>active<\/code>\u3092\u8ffd\u52a0\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1535\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/pagination_2.png\" alt=\"\" width=\"220\" height=\"66\" \/><\/p>\n<h3>move(page)<\/h3>\n<p>\u30da\u30fc\u30b8\u30ea\u30f3\u30af\u304c\u30af\u30ea\u30c3\u30af\u3055\u308c\u305f\u6642\u306b\u5b9f\u884c\u3059\u308b\u30e1\u30bd\u30c3\u30c9\u3067\u3059\u3002\u5185\u90e8\u3067\u306f<code>move-page<\/code>\u3068\u3044\u3046\u72ec\u81ea\u306e\u30a4\u30d9\u30f3\u30c8\u3092\u547c\u3073\u51fa\u3057\u5074\u306b\u901a\u77e5\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u8a2d\u7f6e\u3059\u308b<\/h2>\n<p>\u305d\u306e\u305f\u3081\u3001\u3053\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u547c\u3073\u51fa\u3057\u3066\u3044\u308b\u30bf\u30b0\u5185\u3067\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30a4\u30d9\u30f3\u30c8\u3092\u8a2d\u5b9a\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre>&lt;v-pagination :data=\"items\" <strong>@move-page=\"movePage($event)\"<\/strong>&gt;&lt;\/v-pagination&gt;<\/pre>\n<p>\u305d\u3057\u3066\u3001<code>movePage()<\/code>\u30e1\u30bd\u30c3\u30c9\u306e\u4e2d\u3067\u306f\u3001\u73fe\u5728\u306e\u30da\u30fc\u30b8\u756a\u53f7\u3092\u5909\u66f4\u3057\u3001\u518d\u5ea6Ajax\u901a\u4fe1\u3067\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre><strong>movePage(page) {<\/strong>\r\n\r\n<strong>    this.page = page; \/\/ \u30da\u30fc\u30b8\u756a\u53f7\u3092\u66f4\u65b0<\/strong>\r\n<strong>    this.getItems(); \/\/ Ajax\u3067\u65b0\u30c7\u30fc\u30bf\u3092\u53d6\u5f97<\/strong>\r\n\r\n<strong>}<\/strong><\/pre>\n<p>\u3061\u306a\u307f\u306b<code>@click.prevent<\/code>\u3068\u3057\u3066\u3044\u308b\u306e\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30ea\u30f3\u30af\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u3057\u307e\u3046\u3068\u30b9\u30af\u30ed\u30fc\u30eb\u4f4d\u7f6e\u304c\u5909\u308f\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u305f\u3081\u3067\u3059\u3002<\/p>\n<pre><strong>&lt;a href=\"#\" @click=\"****()\"&gt;***&lt;\/a&gt;<\/strong><\/pre>\n<p>\u3053\u308c\u3067\u30da\u30fc\u30b8\u30ea\u30f3\u30af\u304c\u4f5c\u6210\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<h1>\u30da\u30fc\u30b8\u30ea\u30f3\u30af\u3092\u30c6\u30b9\u30c8\u3057\u3066\u307f\u308b<\/h1>\n<p>\u3067\u306f\u3001\u4ee5\u4e0b\u306e\u30ea\u30f3\u30af\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u30c6\u30b9\u30c8\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1535\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/pagination_2.png\" alt=\"\" width=\"220\" height=\"66\" \/><\/p>\n<p>\u307e\u305a\u306f\u300c\u6b21\u3078\u300d\u30ea\u30f3\u30af\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-1537\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/pagination_3.png\" alt=\"\" width=\"284\" height=\"68\" \/><\/p>\n<p>\u8868\u793a\u3055\u308c\u3066\u3044\u306a\u304b\u3063\u305f\u300c\u524d\u3078\u300d\u30ea\u30f3\u30af\u304c\u8868\u793a\u3055\u308c\u3001\u73fe\u5728\u30da\u30fc\u30b8\u306f\u300c\uff12\u300d\u306b\u306a\u308a\u307e\u3057\u305f\u3002<br \/>\n\u3067\u306f\u3001\u76f4\u63a5\u6700\u5f8c\u306e\u300c\uff14\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1538\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/pagination_4.png\" alt=\"\" width=\"217\" height=\"61\" \/><\/p>\n<p>\u73fe\u5728\u30da\u30fc\u30b8\u304c\u300c\uff14\u300d\u306b\u306a\u308a\u3001\u300c\u6b21\u3078\u300d\u30ea\u30f3\u30af\u304c\u6d88\u3048\u307e\u3057\u305f\u3002<\/p>\n<p>\u203b \u3061\u306a\u307f\u306b\u4eca\u56de\u306f\u30c6\u30b9\u30c8\u306a\u306e\u3067\u7701\u7565\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u30c7\u30fc\u30bf\u304c\u591a\u304f\u306a\u3063\u3066\u304f\u308b\u3068\u30ea\u30f3\u30af\u6570\u304c\u9577\u304f\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002\u305d\u306e\u5834\u5408\u306f<code>v-pagination<\/code>\u306e<code>pages()<\/code>\u5185\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3057\u3001\u8868\u793a\u3057\u305f\u3044\u6700\u5927\u30da\u30fc\u30b8\u6570\u3092\u5909\u66f4\u3059\u308b\u3068\u3044\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<h1>\u304a\u307e\u3051<\/h1>\n<p>\u305b\u3063\u304b\u304f\u30c7\u30fc\u30bf\u53d6\u5f97\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u30ea\u30b9\u30c8\u3067\u8868\u793a\u3057\u3066\u30da\u30fc\u30b8\u79fb\u52d5\u304c\u672c\u5f53\u306b\u3046\u307e\u304f\u3044\u3063\u3066\u3044\u308b\u304b\u3082\u30c1\u30a7\u30c3\u30af\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u3068\u3044\u3063\u3066\u3082\u3001Ajax\u3067\u53d6\u5f97\u3057\u305f\u30c7\u30fc\u30bf\u3092<code>v-for<\/code>\u3067\u30eb\u30fc\u30d7\u3055\u305b\u306a\u304c\u3089\u8868\u793a\u3059\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n<pre><strong>&lt;ul class=\"list-group\"&gt;<\/strong>\r\n<strong>    &lt;li class=\"list-group-item\" v-for=\"item in items.data\" v-text=\"item.name\"&gt;&lt;\/li&gt;<\/strong>\r\n<strong>&lt;\/ul&gt;<\/strong><\/pre>\n<p>\u3067\u306f\u3001\u8868\u793a\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1540\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/pagination_5.png\" alt=\"\" width=\"427\" height=\"345\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/pagination_5.png 427w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/pagination_5-300x242.png 300w\" sizes=\"auto, (max-width: 427px) 100vw, 427px\" \/><\/p>\n<p>25\u756a\u76ee\u307e\u3067\u306e\u5546\u54c1\u540d\u304c\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002<br \/>\n\u6b21\u306e\u30da\u30fc\u30b8\u306b\u9032\u307f\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1544\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/pagination_6.png\" alt=\"\" width=\"427\" height=\"345\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/pagination_6.png 427w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/10\/pagination_6-300x242.png 300w\" sizes=\"auto, (max-width: 427px) 100vw, 427px\" \/><\/p>\n<p>\u30da\u30fc\u30b8\u304c\uff12\u306b\u306a\u308a\u300125\u301c50\u756a\u76ee\u306e\u5546\u54c1\u304c\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002<br \/>\n<span style=\"font-size: 1rem;\">\u5168\u3066\u5b8c\u4e86\u3067\u3059\u3002<\/span><\/p>\n<h1>\u4eca\u56de\u4f7f\u3063\u305f\u30b3\u30fc\u30c9\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b<\/h1>\n<p>\u4eca\u56de\u306e\u8aac\u660e\u3067\u4f5c\u6210\u3057\u305f\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u4e00\u5f0f\u3092\u4ee5\u4e0b\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u203b \u305f\u3060\u3057\u3001<code>DatabaseSeeder<\/code>\u306a\u3069\u306f\u6ce8\u610f\u3057\u306a\u304c\u3089\u4e0a\u66f8\u304d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<a  data-e-Disable-Page-Transition=\"true\" class=\"download-link\" title=\"\" href=\"https:\/\/blog.capilano-fw.com?download=1549&amp;tmstv=1777697499\" rel=\"nofollow\" id=\"download-link-1549\" data-redirect=\"false\" >\n\tLaravel + Vue \u3067\u30da\u30fc\u30b8\u30ea\u30f3\u30af\u3092\u3064\u304f\u308b\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9<\/a>\n\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u524d\u56de\u521d\u5fc3\u306b\u8fd4\u3063\u3066Vue\u306e\u57fa\u672c\u3001\u30d0\u30a4\u30f3\u30c7\u30a3\u30f3\u30b0\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u305f\u8a18\u4e8b\u00a0Vue\u3067\u30d5\u30a9\u30fc\u30e0\u30fb\u30d0\u30a4\u30f3\u30c7\u30a3\u30f3\u30b0\u3059\u308b\u5168\u5b9f\u4f8b\uff01\uff08\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u53ef\uff09\u3092\u304a\u5c4a\u3051\u3057\u307e\u3057\u305f\u3002 \u305d &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.capilano-fw.com\/?p=1528\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;Laravel + Vue \u3067\u30da\u30fc\u30b8\u30ea\u30f3\u30af\u3092\u3064\u304f\u308b\uff08\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u53ef\uff09&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":1529,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,12,97],"tags":[95,87],"class_list":["post-1528","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-laravel","category-vue-js","category-97","tag-95","tag-87"],"_links":{"self":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/1528","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=1528"}],"version-history":[{"count":11,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/1528\/revisions"}],"predecessor-version":[{"id":1712,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/1528\/revisions\/1712"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/media\/1529"}],"wp:attachment":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1528"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1528"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1528"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}