<?php namespace App\Models; use Illuminate\Database\Eloquent\Relations\Pivot; class AddressEchoarea extends Pivot { protected $casts = [ 'subscribed' => 'datetime:Y-m-d H:i', ]; }