brefphp / laravel-bridge

Package to use Laravel on AWS Lambda with Bref
https://bref.sh/docs/frameworks/laravel.html
MIT License
319 stars 63 forks source link

[Solution] No such file or directory, touch() or mkdir(). #75

Closed mariuszmalek closed 1 year ago

mariuszmalek commented 2 years ago

If you have a problem with storage in Lambda, then I believe this solution is for you. Please check your logs and try to find any of these problems if you have this then try to do what is in this issue:

"touch(): Unable to create file", "mkdir()", "No such file or directory"

I used spatie media-library in my project, and I had a problem with storage media in /tmp, but for a long time I found a solution for that.

Solution for that is to install extra-php-extensions and update config file

unknown

After that, you should update app.php file in bootstrap

unknown (1)

Now everything should work fine :)

mnapoli commented 1 year ago

Will be fixed by https://github.com/brefphp/laravel-bridge/pull/94