The server sometimes encounter permission errors. When checked the cache directory the cache files are being written under different users and permissions. I guess the issue is causing because of that. Why Laravel is writing caches under different users and permission? How to change the user to www-data
?
I'm using (https://github.com/grosv/laravel-passwordless-login) for creating passwordless login and the caches are written by this package.