getTable(); if ($alias) { $name .= ' as ' . $alias; } return $name; } public static function fromAlias($alias) { return static::from(static::alias($alias)); } public function getRawAttribute($key) { if (! $key) { return null; } return $this->attributes[$key] ?? null; } }