I like using PHPStan in my projects, but sometimes in order to fully capture the types that Laravel allows, the type declarations can get a bit long and complicated to read. Here's a nice way to keep the types readable. Loved this tip from @freekmurze https://masteringlaravel.io/daily/2025-07-02-use-phpstan-type-aliases-to-clean-up-long-type-signatures
Use PHPStan type aliases to clean up long type signatures | Mastering Laravel

Much more readable

Mastering Laravel