© 2026 Hashnode
The N+1 query problem is the most common performance issue in Laravel applications, and it's the easiest to introduce accidentally. A developer adds $post->author->name in a Blade template, and suddenly a page that loaded 10 posts now executes 11 dat...

PHP 8.1 Enums: Backed Enums and Laravel Eloquent Casts PHP enums landed in version 8.1, and they've quietly become one of the most adopted features across the ecosystem. With 85.9% of Packagist users now running PHP 8.x (Stitcher.io, June 2026), ther...

TL;DR Refactor property declaration for collection as /** * @property Collection<int, Comment> $comment ... Overview When using PHPStan (or Larastan) with Laravel, you may encounter confusing type errors when calling collection methods like map...

When you're just starting out with Laravel, you might find yourself constantly writing routes, controllers, or even blade files — just to test if something works. But what if I told you there's a faster, cleaner, and more interactive way? Meet Larave...
