Skip to content

PHP code snippet – How upload image in arraye in laravel?

   foreach ($request['contact'] as $value) {
          $name = time() . rand(1000, 9999) . $value['image']->getClientOriginalName();
          $value['image']->move(public_path('/src/admin/assets/uploader/workImage'), $name);
        }
See also  How to detect operating system in Java?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.