I have my project in local development and all it's working fine.
When I pass the project to a rasberry and try to make it works I'm getting some errors I try to find the solution in other questions like this here in stackoverflow but it not works.
When I call to a function who it's working with storage folder I get this error:
With sudo chmod -R 775 storage/
The stream or file "/var/www/html/test/storage/logs/laravel.log" could
not be opened: failed to open stream: Permission denied
And if I change the permission to 777 I get this error:
file_put_contents(/var/www/html/test/resources/views/projects/problema.blade.php): failed to open stream: Permission denied
How should be the permission of the folder to make it works?