for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ElfSundae\Laravel\Support\Traits\Eloquent;
use ElfSundae\Laravel\Support\Helper;
trait DeviceModelAttribute
{
/**
* Get the `device_model` attribute.
*
* @return string|null
*/
public function getDeviceModelAttribute()
$platform = property_exists($this, 'deviceModelKey') ? $this->deviceModelKey : 'platform';
return Helper::iDeviceModel($this->{$platform});
}