app/maguttiCms/Providers/SystemServiceProvider.php
/**
     * Bootstrap the application services.
     *
     * @return void
     */
Bootstrap the application services.
@return void
Bootstrap the application services . @return void
public function boot()
    {
        Password::defaults(function () {
            $rule = Password::min(8)->letters()->mixedCase()->numbers()->symbols();
            return $this->app->isProduction()
                ? $rule->uncompromised()
                : $rule;
        });
        if (env('MAIL_HOST', '') == 'smtp.mailtrap.io') {
            Mail::getSwiftMailer()
                ->registerPlugin(new \Swift_Plugins_ThrottlerPlugin(10, \Swift_Plugins_ThrottlerPlugin::MESSAGES_PER_MINUTE));
        }
    }
public function boot ( ) { Password :: defaults ( function ( ) { $ rule = Password :: min ( 8 ) -> letters ( ) -> mixedCase ( ) -> numbers ( ) -> symbols ( ) ; return $ this -> app -> isProduction ( ) ? $ rule -> uncompromised ( ) : $ rule ; } ) ; if ( env ( 'MAIL_HOST' , '' ) == 'smtp.mailtrap.io' ) { Mail :: getSwiftMailer ( ) -> registerPlugin ( new \ Swift_Plugins_ThrottlerPlugin ( 10 , \ Swift_Plugins_ThrottlerPlugin :: MESSAGES_PER_MINUTE ) ) ; } }
Bootstrap the application services.
Bootstrap the application services .
// Set the Throttler plugin for Mailtrap. // Mailtrap has a rate limit of 2 emails per 10 seconds.