Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $data = [];
- if($request->hasfile('image') as $image){
- foreach($request->file('image') as $id => $image){
- $ext = $image->getClientOriginalExtension();
- $name = $id.time().'.'.$ext;
- $path = public_path('property');
- $image->move($path, $name);
- $data[$id] => $name;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement