diff --git a/app/Models/Notification.php b/app/Models/Notification.php index b4263ac..116a28b 100644 --- a/app/Models/Notification.php +++ b/app/Models/Notification.php @@ -11,7 +11,7 @@ use Illuminate\Database\Eloquent\Model; /** * Class Notification - * + * * @property int $id * @property string $user_code * @property string $agent_code @@ -28,7 +28,8 @@ class Notification extends Model public $timestamps = false; protected $casts = [ - 'read' => 'int' + 'read' => 'int', + 'date' => 'datetime:Y-m-d H:i:s' ]; protected $dates = [