Hey - I asked the question in #general yesterday, but was unexpectedly called from my computer and can't easily find whether someone responded, so if you did: my apologies for missing and reposting...
I upgraded to L11 yesterday, which was a breeze, and works like a charm.
However - something I run into today which wasn't the case prior L11, is that my CI/CD pipeline to deploy to laravel Vapor is now broken.
As part of the process, we are running php artisan optimize before we upload the resources to vapor. This ensures that config, routes, but also view are being cached.
Now, since this runs on a github actions container, we don't have a database setup when that is being called, which was never an issue.
But now I'm getting an exception when the view are being compiled/cached:
The command "php artisan optimize" failed.
Output:
================
INFO Caching framework bootstrap, configuration, and metadata.
config ........................................................ 17.41ms DONE
events ......................................................... 1.25ms DONE
routes ........................................................ 22.64ms DONE
views ......................................................... 13.52ms FAIL
Illuminate\Database\QueryException
In the trace, I see it is trying to select some data from the database which I can link to this code in the blade templates:
<a href="{{ Tenancy::tenant()->url }}">
I'm a bit confused now: why would compiling/optimizing the views already execute/evaluate that piece of code in the template? Is this changed behaviour in L11?
When rolling back to L10, the issue is gone, so something must have changed - is anyone else running into similar issues?