AppServiceProvider
class AppServiceProvider extends ServiceProvider (View source)
Registers application services and dependencies.
Specifically, it configures PHPMailer and binds EmailService to the container.
Methods
Details
void
register()
Register any application services.
This method binds PHPMailer as a singleton in the container with SMTP configuration from the app config, and also binds the EmailService as a singleton, injecting PHPMailer into it.
void
boot()
Bootstrap any application services.