I recently started working through the php novice to ninja book. Great book by the way. Anyway, installed laravel homestead vagrant as per the instructions and it works great. Lovely bit of kit. Anyway, I am using it on another project from David Powers php solutions and i want to upload pictures using the script but i can becuase of the permission won’t let me. On windows this is not a problem, on ubuntu installed on the lamp stack installed on Virtual box i updated the permissions with chmod and it worked. This does not work on vagrant that installed. Does anyone know how to change permission on laravel homestead vagrant?
Cheers
Thanks!
On laravel homestead you have write access to the Project
and Public
directories from within a PHP script. As a quick example, this code:
<?php
file_put_contents('../test.txt', 'test') ;
will write test.txt
into the Project
folder. If you’re getting a permissions error, can you paste the exact error you’re getting and the relevant code?
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.