<?php
namespace App\Models;

use Shanmuga\LaravelEntrust\Models\EntrustPermission;
use DateTimeInterface;

class Permission extends EntrustPermission
{
    
     /**
    * 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');
    }
    
}
