• File: PeriodCloseStore.php
  • Full Path: /var/www/imaliapitest/app/PeriodCloseStore.php
  • Date Modified: 05/19/2025 4:29 PM
  • File size: 764 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?php

namespace App;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use DateTimeInterface;

class PeriodCloseStore extends Model
{
    use HasFactory;

    protected $fillable = [
        'description', 'fee', 'amount', 'date_reference', 'code', 'nib', 'user_id', 'store_id', 'transaction',
        'designation', 'amount_credited', 'period_time', 'admin_user_id', 'close_period', 'open_period', 'total_payments',
        'total_refunds', 'fee_refund', 'fee', 'amount_refund', 'amount_credited', 'amount_total_credited', 'amount_credited_refund',
        'status', 'status_visibility'
    ];

    protected function serializeDate(DateTimeInterface $date)
    {
        return $date->format('d-m-Y H:i:s');
    }
}