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

namespace App;

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

class ServiceConfigAccount extends Model
{
    use HasFactory;

    protected $fillable = [
        'public_id', 'email', 'password', 'master', 'service_config_id', 'phone'
    ];

    protected $hidden = ['id', 'service_config_id'];

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

        return $this->belongsTo(ServiceConfig::class, 'service_config_id');
    }

}