0
I’m having trouble creating random names for my images. It was using the md5(mt_rand(1,10000) function but was unsuccessful using it in conjunction with has::file.
public function anexar () {
if(Input::hasFile('file')){
$file = Input::file('file');
$file->move('uploads', $file->getClientOriginalName());
return 'Anexado com sucesso';
}
}
}
Márcio Lordelo, I’m beginner n programming I could not understand very well the uniqueid ! It’s like you send an example based on my problem above ?
– Caleb
Hi @Márcio, I managed to solve the problem here using uniqueid ! Thanks for the tip brother.
– Caleb
opa, had not seen before you asking for an example, sorry, I stayed a few days without accessing. Glad you could =)
– Márcio Lordelo