Last active
February 2, 2018 19:34
-
-
Save mitrallex/346cd5d4ab3292dc108b341e1bebafa8 to your computer and use it in GitHub Desktop.
laravel-file-hosting
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
| if (Storage::disk('local')->exists($old_filename)) { | |
| if (Storage::disk('local')->move($old_filename, $new_filename)) { | |
| $file->name = $request['name']; | |
| return response()->json($file->save()); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment