khanvuthy's avatar

Duplicate imange name in laravel

hello everyone here, when i try to upload file in laravel 5.1 . i get one problem is filename is duplicate. how can i check does file i try to upload is already exist name ?

0 likes
1 reply
lancebutler2's avatar

You could use the static exists method on the File facade.

return File::exists($filename);

Please or to participate in this conversation.