What I normally do is give the permissions below to my laravel project:
chmod -R 777 storage
chown -R www-data:www-data storage
chmod -R 777 bootstrap/cache
Is it ok if I gave 777 recursively for these directories if new files will be created in the storage directory?