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\Core\Models; use Illuminate\Database\Eloquent\Factories\Factory; ..
Decoded Output download
<?php
namespace Webkul\Core\Models;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Webkul\Admin\Database\Factories\CurrencyExchangeRateFactory;
use Webkul\Core\Contracts\CurrencyExchangeRate as CurrencyExchangeRateContract;
class CurrencyExchangeRate extends Model implements CurrencyExchangeRateContract
{
use HasFactory;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'target_currency',
'rate',
];
/**
* Get the exchange rate associated with the currency.
*/
public function currency(): BelongsTo
{
return $this->belongsTo(CurrencyProxy::modelClass(), 'target_currency');
}
/**
* Create a new factory instance for the model.
*/
protected static function newFactory(): Factory
{
return CurrencyExchangeRateFactory::new();
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Webkul\Core\Models;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Webkul\Admin\Database\Factories\CurrencyExchangeRateFactory;
use Webkul\Core\Contracts\CurrencyExchangeRate as CurrencyExchangeRateContract;
class CurrencyExchangeRate extends Model implements CurrencyExchangeRateContract
{
use HasFactory;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'target_currency',
'rate',
];
/**
* Get the exchange rate associated with the currency.
*/
public function currency(): BelongsTo
{
return $this->belongsTo(CurrencyProxy::modelClass(), 'target_currency');
}
/**
* Create a new factory instance for the model.
*/
protected static function newFactory(): Factory
{
return CurrencyExchangeRateFactory::new();
}
}
Function Calls
None |
Stats
MD5 | 82a511a888f3b13c5cc7218b22a49b02 |
Eval Count | 0 |
Decode Time | 92 ms |