Created
February 5, 2016 19:50
-
-
Save bran921007/acfffc67106d41161079 to your computer and use it in GitHub Desktop.
Subir archivo en laravel 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
//obtenemos el campo file definido en el formulario | |
$file = $request->file('file'); | |
//obtenemos el nombre del archivo | |
$nombre = $file->getClientOriginalName(); | |
//indicamos que queremos guardar un nuevo archivo en el disco local | |
\Storage::disk('local')->put($nombre, \File::get($file)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment