2018-08-01 07:09:38 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
|
|
|
class Charge extends Model
|
|
|
|
{
|
|
|
|
protected $table = 'ab_charge';
|
2019-07-04 04:55:05 +00:00
|
|
|
protected $dates = ['date_charge'];
|
|
|
|
public $dateFormat = 'U';
|
2018-08-01 07:09:38 +00:00
|
|
|
|
|
|
|
public function getNameAttribute()
|
|
|
|
{
|
2021-07-19 06:23:38 +00:00
|
|
|
return sprintf('%s %s',$this->description,$this->getAttribute('attributes') ? join('|',unserialize($this->getAttribute('attributes'))) : '');
|
2018-08-01 07:09:38 +00:00
|
|
|
}
|
|
|
|
}
|