Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
WIKIPEDIA
/
imaliapitest
/
app
:
ServiceConfigAccount.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?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'); } }