A provider is a reusable package with a specific function, you should make a provider if you have one or more of the following :

  • Used in several services or providers
  • Has external dependencies
  • ( Has large amount of code and potentially reusable )

# Examples