for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace LivePersonInc\LiveEngageLaravel\Models;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;
class MessagingInfo extends Model
{
protected $guarded = [];
protected $appends = [
'startTime',
];
public function getStartTimeAttribute()
return new Carbon($this->attributes['startTime']);
}
public function getMinutesAttribute()
return round(($this->attributes['duration'] / 1000) / 60, 2);
public function getSecondsAttribute()
return $this->attributes['duration'] / 1000;
public function getHoursAttribute()
return round($this->minutes / 60, 2);