Removed method chaining for mockery.
Added phpdoc hinting.
Shortened the if statement.
Removed the need for isDynamic as this check is also performed by isSortable.
Made method convertEloquentToArray public
Added LaravelBuilder test case
Fixed class property.