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 Coupon ..
Decoded Output download
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\SoftDeletes;
class Coupon extends BaseModel
{
use SoftDeletes;
protected $table = 'coupons';
/**
*
*/
const TYPE_ONE_TIME = 1;
/**
*
*/
const TYPE_REPEAT = 2;
/**
*
*/
const STATUS_UNUSED = 1;
/**
*
*/
const STATUS_USE = 2;
/**
*
*
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany
*
* @author assimon<[email protected]>
* @copyright assimon<[email protected]>
* @link http://utf8.hk/
*/
public function goods()
{
return $this->belongsToMany(Goods::class, 'coupons_goods', 'coupons_id', 'goods_id');
}
public static function getStatusUseMap()
{
return [
self::STATUS_USE => admin_trans('coupon.fields.status_use'),
self::STATUS_UNUSED => admin_trans('coupon.fields.status_unused'),
];
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\SoftDeletes;
class Coupon extends BaseModel
{
use SoftDeletes;
protected $table = 'coupons';
/**
*
*/
const TYPE_ONE_TIME = 1;
/**
*
*/
const TYPE_REPEAT = 2;
/**
*
*/
const STATUS_UNUSED = 1;
/**
*
*/
const STATUS_USE = 2;
/**
*
*
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany
*
* @author assimon<[email protected]>
* @copyright assimon<[email protected]>
* @link http://utf8.hk/
*/
public function goods()
{
return $this->belongsToMany(Goods::class, 'coupons_goods', 'coupons_id', 'goods_id');
}
public static function getStatusUseMap()
{
return [
self::STATUS_USE => admin_trans('coupon.fields.status_use'),
self::STATUS_UNUSED => admin_trans('coupon.fields.status_unused'),
];
}
}
Function Calls
None |
Stats
MD5 | 8c17719dfe181040fc6e8b75fb9c5c07 |
Eval Count | 0 |
Decode Time | 111 ms |