brefphp / laravel-bridge

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

View not found in Laravel when I cache the views #106

Open nonghinh opened 1 year ago

nonghinh commented 1 year ago

Before I deployed the Larvel project to serverless, I used the command: php artisan view:cache After deploying on Lambda I get "View not found" error I checked the directory /tmp/storage/framework/views and it doesn't have any files. I use CACHE_DRIVER=dynamodb If I don't cache the view, there's no problem, but I want to cache the view to make the app more optimized. Can someone help me?