Using Hashid With Laravel (instead of UUID)

Hashids are string encrypting the primary key, perfect for customer-facing ids! Forget about UUIDs.

Use simple Stripe-like hashids with Laravel. The database only knows about auto-incrementing integer IDs but the application will expose random string attributes. Simple!

Make PHP lib functions like dump() or dd() globally available

Never use var_dump() again, even when you work outside Laravel or Symfony

It happens that I work with PHP outside of Laravel or Symfony, typically when working on a lib, and I always miss the dump and dd function. Do you remember var_dump or print_r? I don't want to have to use that! I found a simple way to always preload PHP library. I shouldn't say p...