Support the ongoing development of Laravel.io →
Input Validation
Last updated 2 years ago.
0

I would opt for the validation loop. I don't think this will require a lot of DB request, most of the time the hash will be unique, so the chances that the validation would fail are limited.

Last updated 2 years ago.
0

8 digits string ? you can only save: 10^8 files ? So why don't you using auto increment ? Can you save 23 or more characters ? then the php way to archive this is uniqid() :)

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.