Files
HeimerdingerLoL/composer.json
Rico van Zelst 5fe3fcac61 feat: add working posts index
This commit adds pagination functionality to the posts index page. The code changes include:
- Sorting the posts by descending date
- Paginating the posts with 6 items per page
- Creating a new component called "Listposts" for rendering the paginated posts
- Adding a new view file for the "Listposts" component
- Updating the blade template of the posts index page to use the "Listposts" component and pass in the paginated posts

The purpose of these changes is to improve user experience by displaying a limited number of posts per page and providing navigation links for easier browsing.
2023-12-12 12:32:42 +01:00

90 lines
2.7 KiB
JSON

{
"name": "laravel/laravel",
"type": "project",
"description": "The skeleton application for the Laravel framework.",
"keywords": [
"laravel",
"framework"
],
"license": "MIT",
"require": {
"php": "^8.1",
"andcarpi/laravel-popper": "^0.9.4",
"anhskohbo/no-captcha": "^3.5",
"blade-ui-kit/blade-icons": "^1.5",
"creativecrafts/laravel-paginate-collection": "^0.2.4",
"cviebrock/eloquent-sluggable": "^10.0",
"dolejska-daniel/riot-api": "^5",
"guzzlehttp/guzzle": "^7.2",
"intervention/image": "^3.0",
"laravel/framework": "^10.10",
"laravel/pulse": "^1.0@beta",
"laravel/sanctum": "^3.2",
"laravel/tinker": "^2.8",
"saade/blade-iconsax": "^1.1",
"spatie/laravel-backup": "^8.3",
"spatie/laravel-query-builder": "^5.6",
"spatie/sheets": "^1.10",
"sqids/sqids": "^0.4.1"
},
"require-dev": {
"barryvdh/laravel-debugbar": "^3.9",
"barryvdh/laravel-ide-helper": "^2.13",
"fakerphp/faker": "^1.9.1",
"laravel/pint": "^1.13",
"laravel/sail": "^1.18",
"mockery/mockery": "^1.4.4",
"nunomaduro/collision": "^7.0",
"phpunit/phpunit": "^10.1",
"spatie/laravel-ignition": "^2.0"
},
"autoload": {
"psr-4": {
"App\\": "app/",
"Database\\Factories\\": "database/factories/",
"Database\\Seeders\\": "database/seeders/"
},
"files": [
"app/Helpers/HelperFunctions.php"
]
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"scripts": {
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"@php artisan package:discover --ansi"
],
"post-update-cmd": [
"@php artisan vendor:publish --tag=laravel-assets --ansi --force",
"@php artisan ide-helper:generate",
"@php artisan ide-helper:meta"
],
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"@php artisan key:generate --ansi"
]
},
"extra": {
"laravel": {
"dont-discover": []
}
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true,
"allow-plugins": {
"pestphp/pest-plugin": true,
"php-http/discovery": true
}
},
"minimum-stability": "beta",
"prefer-stable": true
}