LaravelNaming Files when uploading with Laravel on Windows


Parameters

Param/FunctionDescription
file-uploadname of the file <input> field
$sampleNamecould also be dynamically generated string or the name of the file uploaded by the user
app_path()is Laravel helper to provide the absolute path to the application
getCLientOriginalExtension()Laravel wrapper to fetch the extension of the file uploaded by the user as it was on the user machine