Make the $alias parameter in the `from` method optional

The refactoring commits can be merged first using PR #645