How to paginate category model articles relations with resource class in Laravel.
<?php
namespace App\Http\Resources;| <script setup> | |
| import { codeToHtml } from 'https://esm.sh/shiki@3.2.1'; | |
| import { onMounted } from 'vue'; | |
| onMounted(() => { | |
| const all = document.querySelectorAll('code'); | |
| all.forEach(async (f) => { | |
| const theme = ['github-light', 'slack-ochin', 'vitesse-light', 'everforest-light', 'everforest-dark', 'vitesse-dark', 'one-dark-pro', 'synthwave-84', 'gruvbox-dark-medium', 'gruvbox-dark-soft', 'gruvbox-light-soft', 'rose-pine', 'rose-pine-moon', 'rose-pine-dawn', 'plastic', 'laserwave', 'kanagawa-dragon', 'kanagawa-wave', 'material-theme', 'material-theme-darker']; | |
| let code = f.innerText; |
| <script setup> | |
| import svg from '@/assets/svg/edit-svgrepo-com.svg?raw'; | |
| </script> | |
| <template> | |
| <div class="input-wrapper__icon" v-html="svg"></div> | |
| </template> |
| <?php | |
| namespace App\Http\Resources; | |
| use App\Models\Admin; | |
| use Illuminate\Http\Request; | |
| use Illuminate\Http\Resources\Json\JsonResource; | |
| class ArticleResource extends JsonResource | |
| { |
Dtorage docs https://laravel.com/docs/12.x/filesystem#sftp-driver-configuration
composer require league/flysystem-ftp "^3.0"