| Total Complexity | 2 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class BillReceive extends Model |
||
| 8 | { |
||
| 9 | protected $fillable = ['date_launch','name','value','status','category_id']; |
||
| 10 | |||
| 11 | protected $casts = ['status' => 'boolean']; |
||
| 12 | |||
| 13 | protected $appends = ['type']; |
||
| 14 | |||
| 15 | public function category() |
||
| 16 | { |
||
| 17 | return $this->belongsTo('App\Category'); |
||
| 18 | } |
||
| 19 | |||
| 20 | public function getTypeAttribute() |
||
| 23 | } |
||
| 24 | } |
||
| 25 |