title: PHP - How to upload files to a common directory from subdomain
body: <p>I have a project that have 3 modules and each is running on subdomain like</p>
  
  <ul>
  <li><a href="http://admin.myproject.com" rel="nofollow">http://admin.myproject.com</a></li>
  <li><a href="http://operator.myproject.com" rel="nofollow">http://operator.myproject.com</a></li>
  <li><a href="http://myproject.com" rel="nofollow">http://myproject.com</a></li>
  </ul>
  
  <p>All three are pointed to different directories but on the same server. When I uplaod file from <a href="http://operator.myproject.com" rel="nofollow">http://operator.myproject.com</a>, it is moved in /var/www/html/operator/uploads/{{operator_id}}/picture_name.jpg, when I do from admin, it is moved in /var/www/html/admin/uploads/{{id}}/picture_name.jpg</p>
  
  <p>From <a href="http://myproject.com" rel="nofollow">http://myproject.com</a>, is there any way to upload all the files to any centralized directory on server that is accessible by all projects and I can download the files easily??</p>
  
  <p>I am using <code>Laravel</code> as a backend</p>