Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. $data = [];
  2.  
  3. if($request->hasfile('image') as $image){
  4. foreach($request->file('image') as $id => $image){
  5. $ext = $image->getClientOriginalExtension();
  6. $name = $id.time().'.'.$ext;
  7. $path = public_path('property');
  8. $image->move($path, $name);
  9. $data[$id] => $name;
  10. }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement