mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 12:33:56 +00:00
1fbdc795ff
- Update Standard Segment Constant Logic Class - List Standard Segment Constant Logic Class - List Standard Segment Logic Class
29 lines
506 B
PHP
29 lines
506 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
/**
|
|
* Class SegmentConstant
|
|
* @package App\Models
|
|
* @version August 4, 2020, 4:36 am
|
|
*
|
|
* @property \App\Models\Segment segment_id
|
|
* @property text detail
|
|
*/
|
|
class SegmentConstant extends AbstractModel
|
|
{
|
|
use SoftDeletes;
|
|
|
|
protected $table = 'segment_constants';
|
|
|
|
protected $dates = ['deleted_at'];
|
|
|
|
public function getDetailAttribute($value)
|
|
{
|
|
return $value ? json_decode($value) : [];
|
|
}
|
|
|
|
}
|