PHP Reddit – Telegram
PHP Reddit
34 subscribers
289 photos
37 videos
24.8K links
Channel to sync with /r/PHP /r/Laravel /r/Symfony. Powered by awesome @r_channels and @reddit2telegram
Download Telegram
Laravel Filament Table Performance Issues with Millions of Records – Any Optimization Tips?

I'm working with Laravel Filament (v3) and recently deployed my app to production. Everything worked fine initially, but after a couple of months, the Filament Resource table page has become noticeably slower.

The issue seems to be due to the underlying database table growing to millions of records (2millions right now)(specifically for one of the resources). Pagination is enabled, but even loading the first page takes a few seconds or more (default is 25 records per page), which is not ideal for the end-user experience.

Here’s some additional context:

The table is using Eloquent queries (no custom query builder yet).
I’m using the default Filament Table component inside a Resource.
The table has searchable and sortable columns.
Some columns display related model data (via relationships).
The database is MySQL running on a managed VPS (decent specs).
No caching, indexes, or chunking optimizations applied yet.

Has anyone faced similar performance issues with large datasets in Filament?
What are your tips for improving table performance — such as query optimizations, indexes, or custom table builders?
Would it be better to use raw queries or offload the heavy logic?



https://redd.it/1mcxtsa
@r_php
Laravel Idea routes feature >>>>>>

Noticed today a pretty nice new feature form Laravel Idea. It also has some cool stuff in `routes/` files. Very useful!

https://preview.redd.it/a7yxxoyzqzff1.png?width=507&format=png&auto=webp&s=3c281aa30f53e3aab3d1f83d6fccef01ab651b96



https://redd.it/1md3bjo
@r_php
Learning Platform Suggestion

Is geekforgeeks good source for learning PHP?
Which platform should i choose for becoming a job-ready php dev?

https://redd.it/1md8w32
@r_php
Anyone using Wayfinder?

Someone shared an image of a list of things Taylor was talking about in his Keynote and one was Wayfinder.

It seems very interesting but would require a decent amount of refactoring, which I am willing to do if its worth it.

Is anyone using it? How has it been for you?

https://redd.it/1md4zcu
@r_php
PHP Website performing down detector

Anyone some info about a (free/opensource) down detecting site that you can install on your now webserver to monitor other servers by answering echo (ping)?

So not to monitor the server itself, but other servers.

https://redd.it/1md7m2d
@r_php
Is the Composer ecosystem still healthy? 180 MB and 36,000 files for two simple packages.

I just went through a fresh composer require for two packages: microsoft/microsoft-graph and vlucas/phpdotenv. My goal was simple: interact with the Microsoft Graph API and handle environment variables.

After the installation, I was shocked to see my vendor directory had ballooned to 178 MB, containing almost 36,000 files.

This got me thinking: Is this a healthy direction for the PHP ecosystem?

It feels like we're heading straight into the node_modules black hole territory that the PHP/Go community often used to criticize. My fear isn't just the disk space, but the maintenance nightmare this implies. This massive, tangled web of dependencies means a constant stream of updates, potential conflicts, and chasing down bug fixes in packages three or four levels deep.

What happened to the idea of smart, small, self-contained solutions that just work stably for years without constant tinkering? Has the laudable goal of "reusable components" gone too far, leading us to build incredibly fragile towers of dependencies?

What are your thoughts? Is this just the unavoidable price of modern, rapid development, or have we lost our way?

Shouldn't the Log4Shell (CVE-2021-44228) and xz-utils (CVE-2024-3094) cases have made us rethink our approach long ago?

https://redd.it/1mdc3j0
@r_php
The laravel Hub

I’ve recently launched a new platform designed to be a centralized hub for everything related to PHP and Laravel.

Right now, you’ll find curated articles and packages, along with the ability to submit your own Laravel packages.

And this is just the beginning, many more features are coming soon, insha’Allah.

I'd love to hear your thoughts on the project and the idea behind it.
Check it out: https://laravel-hub.com
Follow the updates: https://x.com/TheLaravelHub

https://redd.it/1mdmuzb
@r_php
Digital Signatures

Hello everyone,

I have a very specific question about digital signatures. I have a PDF file and its corresponding digital signature generated in the CAdES format (.p7s, detached). What I need now is to embed this signature into the PDF itself, producing a PDF signed in the PAdES format (embedded signature).

Is it technically possible to take a .p7s and the original PDF and generate a new PDF with the signature embedded (PAdES)?

I work with PHP 8.1 and Laravel 9, but I’m open to solutions in other languages (Java, Python, etc.) or tools that perform this conversion. I’ve seen references to the DSS (Digital Signature Services) library by the European Commission, but I’m not sure if it can transform an existing .p7s into a PAdES-signed PDF.

Has anyone done this or can point me in the right direction?

Thanks in advance!\]

https://redd.it/1mdq74u
@r_php
I built Laravel Backbone – a package that helps you to create structured REST APIs in ~20 lines of code (early beta, feedback welcome)

I built a package called Laravel Backbone (https://github.com/khanhartisan/laravel-backbone) to make building REST APIs in Laravel cleaner and more maintainable, especially for larger projects.

Over time, I kept hitting the same pain points:

Controllers getting packed with repetitive CRUD logic
Scattered model event handling that’s hard to track and maintain
Deleting related data safely often requiring messy, manual steps

With Laravel Backbone, you can:

Spin up a full CRUD endpoint in about 15–20 lines of code
Use lifecycle hooks (before/after store, update, delete) with a simple visitor pattern
A better approach to structure your model event handlers, instead of a long-messy {Model}Observer.php
Handle cascading deletes/restores for SoftDeletes models, no DB constraint headaches
Speed up API testing with built-in CRUD test helpers

I’ve already used this package on a few personal and company projects, and it’s been running reliably.

That said, I’m calling this an early beta – if there’s enough interest and feedback, I’ll put in more time to harden it and release a production-stable version.

Would love to hear your thoughts:

Is this something you’d actually use?
Anything I should rethink or improve before pushing for stable release?

Repo link https://github.com/khanhartisan/laravel-backbone

Comments, issues, or DMs are all welcome – happy to chat with anyone who’s interested.

Thanks for reading – and thanks in advance for your feedback

https://redd.it/1mdr919
@r_php