Advertisement
fadlyshafa

Untitled

Nov 30th, 2019
308
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.29 KB | None | 0 0
  1. public function dropzone(Request $request){
  2.         $file = $request->file('file');
  3.         File::create([
  4.             'id'=>\Uuid::generate(4),
  5.             'title'=>$file->getClientOriginalName(),
  6.             'description'=>'upload with dropzone',
  7.             'path'=>$file->store('public/storage')
  8.         ]);
  9.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement