Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function store(Request $request) {
- $extension = $request->file('document')->guessClientExtension();
- //the store method returns a path to the file,
- $path = $request->file('document')->store('public/documents');
- $name = $request->input('name');
- echo($extension);die;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement