1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-04 12:34:03 +00:00

Revert changes that caused issues with Laravel Octane [ci skip]

This commit is contained in:
Samuel Štancl 2024-04-24 22:36:51 +02:00 committed by GitHub
parent b789f5c561
commit b97c203967
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 9 deletions

View file

@ -14,6 +14,8 @@ use Illuminate\Support\Arr;
use Illuminate\Support\Facades\Route as RouteFacade;
use Stancl\Tenancy\Enums\RouteMode;
// todo@refactor move this logic to some dedicated static class?
/**
* @mixin \Stancl\Tenancy\Tenancy
*/
@ -166,7 +168,7 @@ trait DealsWithRouteContexts
* If the route isn't directly available on the request,
* find the route that matches the passed request.
*/
public function getRoute(Request $request): Route
public static function getRoute(Request $request): Route
{
/** @var ?Route $route */
$route = $request->route();