Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. public function store(Request $request) {
  2.  
  3. $extension = $request->file('document')->guessClientExtension();
  4.  
  5. //the store method returns a path to the file,
  6. $path = $request->file('document')->store('public/documents');
  7. $name = $request->input('name');
  8. echo($extension);die;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement