mirror of
https://github.com/rico-vz/HeimerdingerLoL.git
synced 2025-12-06 18:20:48 +01:00
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.
This commit is contained in:
73
composer.lock
generated
73
composer.lock
generated
@@ -4,7 +4,7 @@
|
||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "b84d17c5f2668acd3b38779559962eb9",
|
||||
"content-hash": "977c4e8990bc192edf2ad99855f154dc",
|
||||
"packages": [
|
||||
{
|
||||
"name": "andcarpi/laravel-popper",
|
||||
@@ -405,6 +405,77 @@
|
||||
},
|
||||
"time": "2023-09-17T07:26:20+00:00"
|
||||
},
|
||||
{
|
||||
"name": "creativecrafts/laravel-paginate-collection",
|
||||
"version": "0.2.4",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/CreativeCrafts/laravel-paginate-collection.git",
|
||||
"reference": "ee750374a8a02820c1f86e80a88bdc1e2fefcaf1"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/CreativeCrafts/laravel-paginate-collection/zipball/ee750374a8a02820c1f86e80a88bdc1e2fefcaf1",
|
||||
"reference": "ee750374a8a02820c1f86e80a88bdc1e2fefcaf1",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": "^8.1",
|
||||
"spatie/laravel-package-tools": "^1.14.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"laravel/pint": "^1.4",
|
||||
"nunomaduro/collision": "^6.4",
|
||||
"nunomaduro/larastan": "^2.4",
|
||||
"orchestra/testbench": "^8.0",
|
||||
"pestphp/pest": "^1.22",
|
||||
"pestphp/pest-plugin-laravel": "^1.4",
|
||||
"phpstan/extension-installer": "^1.2",
|
||||
"phpstan/phpstan-deprecation-rules": "^1.1",
|
||||
"phpstan/phpstan-phpunit": "^1.3",
|
||||
"phpunit/phpunit": "^9.5",
|
||||
"spatie/laravel-ray": "^1.32"
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"laravel": {
|
||||
"providers": [
|
||||
"CreativeCrafts\\Paginate\\PaginateServiceProvider"
|
||||
],
|
||||
"aliases": {
|
||||
"Paginate": "CreativeCrafts\\Paginate\\Facades\\Paginate"
|
||||
}
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"CreativeCrafts\\Paginate\\": "src"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Godspower",
|
||||
"email": "oduose4eva@gmail.com",
|
||||
"role": "Developer"
|
||||
}
|
||||
],
|
||||
"description": "A handy package to paginate laravel collection",
|
||||
"homepage": "https://github.com/creativecrafts/laravel-paginate-collection",
|
||||
"keywords": [
|
||||
"creativeCrafts",
|
||||
"laravel",
|
||||
"laravel-paginate-collection"
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/CreativeCrafts/laravel-paginate-collection/issues",
|
||||
"source": "https://github.com/CreativeCrafts/laravel-paginate-collection/tree/0.2.4"
|
||||
},
|
||||
"time": "2023-02-21T20:22:50+00:00"
|
||||
},
|
||||
{
|
||||
"name": "cviebrock/eloquent-sluggable",
|
||||
"version": "10.0.0",
|
||||
|
||||
Reference in New Issue
Block a user