https://laravel.com/docs/10.x/container#binding-primitives
Having issues with php artisan config:cache
, saying it's unserializable? Say no more!
- Remove any objects from
config/logger.php
. See below. - Inject mailer dependencies with
AppServiceProvider.php
- Note: env() variables does not work in
AppServiceProvider.php
. Define your variables somewhere, then useconfig()
to access them.
$mailer
and $email
variables are the given class' (defined in when()
) constructor arguments.