public static function table($name = null) { if (is_null(static::$prefix)) { static::$prefix = Config::db('prefix', ''); } if (!is_null($name)) { return static::$prefix . $name; } return static::$prefix . static::$table; }