This commit adds the necessary changes to the `composer.json` file to include the `laravel/octane` package as a dependency. It also introduces a new `config/octane.php` file that contains the configuration for Octane's server, HTTPS settings, event listeners, warm/flush bindings, Swoole tables, cache table, file watching, garbage collection threshold, and maximum execution time.
The added dependencies in `package.json` include `chokidar`, which is used for file watching functionality.
These changes enable the use of Laravel Octane for improved performance and efficiency in handling requests.
- Added new environment variables for Cloudflare R2 access key, secret access key, bucket, endpoint, and URL in the .env.example file.
- Updated composer.json to include the league/flysystem-aws-s3-v3 package.
- Modified the filesystems.php configuration file to include a new 'r2' disk for Cloudflare R2 storage.
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.