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 Webkul\Customer\Models; use Illuminate\Database\Eloquent\Factories\Facto..
Decoded Output download
<?php
namespace Webkul\Customer\Models;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Webkul\Customer\Contracts\CustomerGroup as CustomerGroupContract;
use Webkul\Customer\Database\Factories\CustomerGroupFactory;
class CustomerGroup extends Model implements CustomerGroupContract
{
use HasFactory;
/**
* Deinfine model table name.
*
* @var string
*/
protected $table = 'customer_groups';
/**
* Fillable property for the model.
*
* @var array
*/
protected $fillable = [
'name',
'code',
'is_user_defined',
];
/**
* Get the customers for this group.
*/
public function customers(): HasMany
{
return $this->hasMany(CustomerProxy::modelClass());
}
/**
* Create a new factory instance for the model
*/
protected static function newFactory(): Factory
{
return CustomerGroupFactory::new();
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Webkul\Customer\Models;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Webkul\Customer\Contracts\CustomerGroup as CustomerGroupContract;
use Webkul\Customer\Database\Factories\CustomerGroupFactory;
class CustomerGroup extends Model implements CustomerGroupContract
{
use HasFactory;
/**
* Deinfine model table name.
*
* @var string
*/
protected $table = 'customer_groups';
/**
* Fillable property for the model.
*
* @var array
*/
protected $fillable = [
'name',
'code',
'is_user_defined',
];
/**
* Get the customers for this group.
*/
public function customers(): HasMany
{
return $this->hasMany(CustomerProxy::modelClass());
}
/**
* Create a new factory instance for the model
*/
protected static function newFactory(): Factory
{
return CustomerGroupFactory::new();
}
}
Function Calls
None |
Stats
MD5 | bf6cc7050f932e100f2ea3d4ffb849a2 |
Eval Count | 0 |
Decode Time | 90 ms |