Created
March 14, 2017 12:31
-
-
Save finagin/cfc93e398edcdefe2cc90245a07449d8 to your computer and use it in GitHub Desktop.
routes/web.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- routes/web.php --> | |
<?php | |
// ... | |
Route::posr('/store', function (Request $request) { | |
// validate | |
// ... | |
// fileUpload is input name | |
if ($request->hasFile('fileUpload')) { | |
$filePath = $request->file('fileUpload')->storePublicly('resume'); | |
} | |
// ... | |
// return | |
}); | |
// ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment