File tree Expand file tree Collapse file tree 5 files changed +13
-11
lines changed
src/Loggable/Notifications/EmailChannel Expand file tree Collapse file tree 5 files changed +13
-11
lines changed Original file line number Diff line number Diff line change 11language : php
22
33php :
4- - 7.2
54 - 7.3
65 - 7.4
76
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ Logging and Notifications for Laravel Console Commands.
1717
1818| Laravel | Console Logger |
1919| ------- | :-----------------------------------------------------------------------: |
20+ | 8.x | [ 8.x] ( https://github.com/dmitry-ivanov/laravel-console-logger/tree/8.x ) |
2021| 7.x | [ 7.x] ( https://github.com/dmitry-ivanov/laravel-console-logger/tree/7.x ) |
2122| 6.x | [ 6.x] ( https://github.com/dmitry-ivanov/laravel-console-logger/tree/6.x ) |
2223| 5.8.* | [ 5.8.* ] ( https://github.com/dmitry-ivanov/laravel-console-logger/tree/5.8 ) |
Original file line number Diff line number Diff line change 12121313 }],
1414 "require" : {
15- "php" : " ^7.2.5 " ,
15+ "php" : " ^7.3 " ,
1616 "ext-json" : " *" ,
17- "illuminate/support " : " ^7 .0" ,
18- "illuminate/console " : " ^7 .0" ,
19- "illuminated/helper-functions" : " ^7 .0" ,
17+ "illuminate/console " : " ^8 .0" ,
18+ "illuminate/support " : " ^8 .0" ,
19+ "illuminated/helper-functions" : " ^8 .0" ,
2020 "monolog/monolog" : " ^2.0" ,
2121 "psr/http-message" : " ^1.0" ,
2222 "psr/log" : " ^1.0" ,
23- "symfony/finder" : " ^5.0 "
23+ "symfony/finder" : " ^5.1 "
2424 },
2525 "require-dev" : {
2626 "phpunit/phpunit" : " ^8.4|^9.0" ,
2727 "mockery/mockery" : " ^1.3.1" ,
28- "guzzlehttp/guzzle" : " ^6.3.1 |^7.0" ,
29- "orchestra/testbench" : " ^5 .0" ,
30- "illuminated/testing-tools" : " ^7 .0"
28+ "guzzlehttp/guzzle" : " ^6.5.5 |^7.0.1 " ,
29+ "orchestra/testbench" : " ^6 .0" ,
30+ "illuminated/testing-tools" : " ^8 .0"
3131 },
3232 "autoload" : {
3333 "files" : [
Original file line number Diff line number Diff line change 22
33namespace Illuminated \Console \Loggable \Notifications \EmailChannel ;
44
5+ use Illuminate \Support \Str ;
56use Monolog \Handler \DeduplicationHandler ;
67use Monolog \Handler \NativeMailerHandler ;
78use Monolog \Handler \SwiftMailerHandler ;
@@ -105,7 +106,7 @@ protected function getEmailNotificationsRecipients()
105106 */
106107 protected function getEmailNotificationsSubject ()
107108 {
108- $ env = str_upper (app ()->environment ());
109+ $ env = Str:: upper (app ()->environment ());
109110 $ name = $ this ->getName ();
110111
111112 return "[ {$ env }] %level_name% in ` {$ name }` command " ;
Original file line number Diff line number Diff line change 22
33namespace Illuminated \Console \Loggable \Notifications \EmailChannel ;
44
5+ use Illuminate \Support \Str ;
56use Monolog \Formatter \HtmlFormatter ;
67
78class MonologHtmlFormatter extends HtmlFormatter
@@ -113,7 +114,7 @@ protected function composeTitle(array $record)
113114 }
114115
115116 $ environment = app ()->environment ();
116- $ environment = e (str_upper ($ environment ));
117+ $ environment = e (Str:: upper ($ environment ));
117118 $ title .= '<style>.title { padding-bottom: 0 !important; } .subtitle { padding-top: 0 !important; }</style> ' ;
118119 $ title .= "<h3 class='subtitle {$ levelName }'>This notification has been sent from the ` {$ environment }` environment!</h3> " ;
119120
You can’t perform that action at this time.
0 commit comments