From the Docs for Files:
Input::file('photo')->move($destinationPath, $fileName);
$fileName
is the new name, so you could set that yourself, for example:
$fileName = Input::get('rename_to');
Input::file('photo')->move($destinationPath, $fileName);
But you need to make sure you deal with different file types and validation.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community