-
-
Save arcanoix/49ad60c798a76eeb0a58be4357ba5168 to your computer and use it in GitHub Desktop.
Subir archivo en laravel php
This file contains hidden or 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