mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 01:14:03 +00:00
Fixed styling
This commit is contained in:
parent
a6d43cb5e2
commit
432dd8fd1d
1 changed files with 2 additions and 2 deletions
|
|
@ -7,7 +7,7 @@ namespace Stancl\Tenancy\Middleware;
|
||||||
use Closure;
|
use Closure;
|
||||||
use Stancl\Tenancy\Exceptions\TenantCouldNotBeIdentifiedException;
|
use Stancl\Tenancy\Exceptions\TenantCouldNotBeIdentifiedException;
|
||||||
|
|
||||||
class InitializeTenancy
|
class InitializeTenancyByRequestData
|
||||||
{
|
{
|
||||||
/** @var callable */
|
/** @var callable */
|
||||||
protected $onFail;
|
protected $onFail;
|
||||||
|
|
@ -28,7 +28,7 @@ class InitializeTenancy
|
||||||
*/
|
*/
|
||||||
public function handle($request, Closure $next)
|
public function handle($request, Closure $next)
|
||||||
{
|
{
|
||||||
if(request()->method() !== 'OPTIONS') {
|
if (request()->method() !== 'OPTIONS') {
|
||||||
try {
|
try {
|
||||||
$this->parseTenant();
|
$this->parseTenant();
|
||||||
} catch (TenantCouldNotBeIdentifiedException $e) {
|
} catch (TenantCouldNotBeIdentifiedException $e) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue