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:
parent
b789f5c561
commit
b97c203967
2 changed files with 12 additions and 9 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue