MrPunyapal
MrPunyapal

Punyapal Shah

Verified

@MrPunyapal

Laravel Artisan | Open Source Contributor | Speaker | Core Team @Pinkary 🤌 Creator of @LaravelArtisans 🙌

2K Posts 18K Views

  • No matching results...
  • Searching...

/ 255

Poll Options

PHP devs are you ready to upgrade your projects to PHP 8.5? 🤔

It's just one month away from release 🥳

10

Laravel devs 👋

Do you know you can use `allowStrayRequests` to permit specific URL patterns while blocking others in testing? 🤔

Check out this info straight from docs! 🤌

#readLaravelDocs
image

1

7

Laravel devs, did you know Cache::get accepts a closure as a fallback? 💡

It runs only if the key is missing
But it does not store the result in cache ❌

Use Cache::remember if you want to store it ✅
image

2

53

Sometimes caching done wia webhook. And there is no way around it so you wanna do fall back logic if it doesn't exists.

It can be logging and returning default value etc.

23

Just updated my PR for Laravel Rector! 💪

It now converts array access → Arr::get() (instead of data_get()) for:
✔️ Simple keys
✔️ Nested keys (dot notation)
✔️ Defaults
✔️ Preserves throw expressions
Cleaner & safer Laravel array handling ✨
#Laravel #PHP #Rector
image

1

19

If you and your team members do the same thing differently, none are wrong.

"Truth depends on your point of view."

And it's not just about doing things differently.

28