public function getCreatedAtAttribute($date)
    {
        $module = getModule(get_class());
        return Carbon::parse($date)->format(config("{$module}.date_format"));
    }
public function getCreatedAtAttribute($date)
    {
        $module = getModule(get_class());
        return Carbon::parse($date)->format(config("{$module}.date_format"));
    }
public function getCreatedAtAttribute ( $ date ) { $ module = getModule ( get_class ( ) ) ; return Carbon :: parse ( $ date ) -> format ( config ( "{$module}.date_format" ) ) ; }
Get the created_at attribute.

@param  $date
@return string
Get the created_at attribute .