Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php namespace App\Traits; use App\Scopes\Company; trait Tenants { /** * The ..

Decoded Output download

<?php

namespace App\Traits;

use App\Scopes\Company;

trait Tenants
{
    /**
     * The "booting" method of the model.
     *
     * @return void
     */
    protected static function bootTenants()
    {
        static::addGlobalScope(new Company);
    }

    public function isTenantable()
    {
        $tenantable = $this->tenantable ?? true;

        return ($tenantable === true) && in_array('company_id', $this->getFillable());
    }

    public function isNotTenantable()
    {
        return !$this->isTenantable();
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace App\Traits;

use App\Scopes\Company;

trait Tenants
{
    /**
     * The "booting" method of the model.
     *
     * @return void
     */
    protected static function bootTenants()
    {
        static::addGlobalScope(new Company);
    }

    public function isTenantable()
    {
        $tenantable = $this->tenantable ?? true;

        return ($tenantable === true) && in_array('company_id', $this->getFillable());
    }

    public function isNotTenantable()
    {
        return !$this->isTenantable();
    }
}

Function Calls

None

Variables

None

Stats

MD5 21402bf13c6e74feb703adde38cb2050
Eval Count 0
Decode Time 76 ms