Open relaypilot opened 2 years ago
Same issue here! Did you find a quick fix ? (Downgrade Laravel version ?)
Downgrading to 8.71 worked on local but not on prod for some reason.
A quick solution I found is to comment out those lines in src/Illuminate/Routing/SortedMiddleware.php
$parents = @class_parents($stripped);
if ($parents !== false) {
foreach ($parents as $parent) {
yield $parent;
}
}
https://github.com/laravel/framework/compare/v8.71.0...v8.72.0
I change my composer.json to this :
"laravel/framework": "=8.71.0"
Work locally on in production in my side !
After upgrading from Laravel v8.71.x to Laravel v8.72.0, it became impossible to impersonate users. When I try to impersonate a user, I am simply logged out.
My log files show the following:
Method Illuminate\Auth\RequestGuard::getRecallerName does not exist.
It seems that the new Laravel version 8.72 contains a breaking change for the laravel-impersonate package.