Skip to content

Instantly share code, notes, and snippets.

@uno-de-piera

uno-de-piera/routes.php Secret

Created Dec 15, 2019
Embed
What would you like to do?
<?php
Route::get('/uploader', function () {
return view('multi-uploader');
});
Route::post('/upload', function () {
if ( request()->has( 'files' ) ) {
foreach (request('files') as $file) {
$file->storeAs('files', $file->getClientOriginalName());
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.