MrPunyapal
MrPunyapal

Punyapal shah ☁️🦹

@MrPunyapal

{{ 'Hello Pinkary' }}

• • 73 Answers • 3K views

/ 255

?

Anonymously

Pinned

Mr Shah, what is the meaning of your name?

It's in Sanskrit and the meaning is “someone who protects or upholds virtue and righteousness” 🙌

There is a story behind my name! 😉
Do you wanna know the story? 👀

•

727 views

•

For more on Ids in URL 👇

If you are scared of tools like web scrapers, adding slug(name)-id into url will solve the issue 🤘

And it's better than uuids, also it's user friendly and SEO friendly too 🤘

For more check this from @aaronfrancis 🗿

Video: youtu.be/a6lnfyES-LA?si=RO8mbant80NVzGF9
Blog: aaronfrancis.com/2023/self-healing-urls-in-laravel-e8886c3e

•

120 views

•
?

Anonymously

For the UUID question, what if it is a medium sized project and ids are okay but what if you don't want to show the id in the url? use ids as PK and uuids as public key? or something else? Thankyou!

Don't hesitate to display IDs in the URL. Just ensure robust authorization, and you're good to go.

Always create policies and use ->authorize('action', $model) as a best practice.

If you're not fan of policies, consider creating a scope or implementing checks to verify if the current user is authorized.

Even if IDs are encrypted, without proper authorization, it's still possible to modify others' data. I can simply pass the ID into any form or API without needing to decrypt it.

•

234 views

•