RBRaymond Baghumian@Rayiumir·now59b95bfSimple upload file laravel Field Database: php$table->string('image');…Show more2Quote
RFRaphael Fakhri@RaphaelFakhri·nowdaa02ddnice and compact. one thing i'd watch: time() + the original name can collide if two uploads with the same filename land in the same second. have you tried $file->store() with the hashed name instead?11:52 PM · Oct 18, 2026 · commit daa02dd2QuoteReplyHide repliesRBRaymond Baghumian@Rayiumir·nowYes. For example, the generated filename is 1791650519_Laravel.png, so this method prevents conflicts.1Reply1 reply
RBRaymond Baghumian@Rayiumir·nowYes. For example, the generated filename is 1791650519_Laravel.png, so this method prevents conflicts.1Reply1 reply