<?php
namespace App;

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

class Group extends Model
{
    protected $table = 'Group';
    /**
    * Prepare a date for array / JSON serialization.
    *
    * @param  \DateTimeInterface  $date
    * @return string
    */
    protected function serializeDate(DateTimeInterface $date)
    {
        return $date->format('Y-m-d H:i:s');
    }
    
    public function siveyangroupla(){ return $this->belongsTo('App\Mambkongregasyon', 'siveyangroupla', 'id');}
    
}
