File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
src/Illuminate/Foundation/Console Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -221,7 +221,21 @@ protected function gatherApplicationInformation()
221221
222222 return $ logs ;
223223 },
224- 'Mail ' => config ('mail.default ' ),
224+ 'Mail ' => function ($ json ) {
225+ $ mailMailer = config ('mail.default ' );
226+
227+ if (in_array (config ('mail.mailers. ' .$ mailMailer .'.transport ' ), ['failover ' , 'roundrobin ' ])) {
228+ $ secondary = new Collection (config ('mail.mailers. ' .$ mailMailer .'.mailers ' ));
229+
230+ return value (static ::format (
231+ value: $ mailMailer ,
232+ console: fn ($ value ) => '<fg=yellow;options=bold> ' .$ value .'</> <fg=gray;options=bold>/</> ' .$ secondary ->implode (', ' ),
233+ json: fn () => $ secondary ->all (),
234+ ), $ json );
235+ }
236+
237+ return $ mailMailer ;
238+ },
225239 'Octane ' => config ('octane.server ' ),
226240 'Queue ' => function ($ json ) {
227241 $ queueConnection = config ('queue.default ' );
You can’t perform that action at this time.
0 commit comments