Back

Whats the difference between:

BrandDtoFactory::make($brand) // where $brand is a model

or

BrandDto::fromModel($brand);

Is there any limitation that one has the other doesn't? Which one you prefer?

1

114

In response to @raffi

I prefer BrandDto::fromModel($brand), just shorter.

76

  • No matching results...
  • Searching...

/ 1000

Poll Options