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\Models; use Illuminate\Database\Eloquent\SoftDeletes; class Carmis ..
Decoded Output download
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\SoftDeletes;
class Carmis extends BaseModel
{
use SoftDeletes;
protected $table = 'carmis';
/**
*
*/
const STATUS_UNSOLD = 1;
/**
*
*/
const STATUS_SOLD = 2;
/**
*
*
* @return array
*
* @author assimon<[email protected]>
* @copyright assimon<[email protected]>
* @link http://utf8.hk/
*/
public static function getStatusMap()
{
return [
self::STATUS_UNSOLD => admin_trans('carmis.fields.status_unsold'),
self::STATUS_SOLD => admin_trans('carmis.fields.status_sold')
];
}
/**
*
*
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*
* @author assimon<[email protected]>
* @copyright assimon<[email protected]>
* @link http://utf8.hk/
*/
public function goods()
{
return $this->belongsTo(Goods::class, 'goods_id');
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\SoftDeletes;
class Carmis extends BaseModel
{
use SoftDeletes;
protected $table = 'carmis';
/**
*
*/
const STATUS_UNSOLD = 1;
/**
*
*/
const STATUS_SOLD = 2;
/**
*
*
* @return array
*
* @author assimon<[email protected]>
* @copyright assimon<[email protected]>
* @link http://utf8.hk/
*/
public static function getStatusMap()
{
return [
self::STATUS_UNSOLD => admin_trans('carmis.fields.status_unsold'),
self::STATUS_SOLD => admin_trans('carmis.fields.status_sold')
];
}
/**
*
*
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*
* @author assimon<[email protected]>
* @copyright assimon<[email protected]>
* @link http://utf8.hk/
*/
public function goods()
{
return $this->belongsTo(Goods::class, 'goods_id');
}
}
Function Calls
None |
Stats
MD5 | a9a3ee7f45ce47c8b78d9bc4ea16a480 |
Eval Count | 0 |
Decode Time | 99 ms |