File tree 5 files changed +13
-11
lines changed
src/Loggable/Notifications/EmailChannel
5 files changed +13
-11
lines changed Original file line number Diff line number Diff line change 1
1
language : php
2
2
3
3
php :
4
- - 7.2
5
4
- 7.3
6
5
- 7.4
7
6
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ Logging and Notifications for Laravel Console Commands.
17
17
18
18
| Laravel | Console Logger |
19
19
| ------- | :-----------------------------------------------------------------------: |
20
+ | 8.x | [ 8.x] ( https://github.com/dmitry-ivanov/laravel-console-logger/tree/8.x ) |
20
21
| 7.x | [ 7.x] ( https://github.com/dmitry-ivanov/laravel-console-logger/tree/7.x ) |
21
22
| 6.x | [ 6.x] ( https://github.com/dmitry-ivanov/laravel-console-logger/tree/6.x ) |
22
23
| 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 12
12
13
13
}],
14
14
"require" : {
15
- "php" : " ^7.2.5 " ,
15
+ "php" : " ^7.3 " ,
16
16
"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" ,
20
20
"monolog/monolog" : " ^2.0" ,
21
21
"psr/http-message" : " ^1.0" ,
22
22
"psr/log" : " ^1.0" ,
23
- "symfony/finder" : " ^5.0 "
23
+ "symfony/finder" : " ^5.1 "
24
24
},
25
25
"require-dev" : {
26
26
"phpunit/phpunit" : " ^8.4|^9.0" ,
27
27
"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"
31
31
},
32
32
"autoload" : {
33
33
"files" : [
Original file line number Diff line number Diff line change 2
2
3
3
namespace Illuminated \Console \Loggable \Notifications \EmailChannel ;
4
4
5
+ use Illuminate \Support \Str ;
5
6
use Monolog \Handler \DeduplicationHandler ;
6
7
use Monolog \Handler \NativeMailerHandler ;
7
8
use Monolog \Handler \SwiftMailerHandler ;
@@ -105,7 +106,7 @@ protected function getEmailNotificationsRecipients()
105
106
*/
106
107
protected function getEmailNotificationsSubject ()
107
108
{
108
- $ env = str_upper (app ()->environment ());
109
+ $ env = Str:: upper (app ()->environment ());
109
110
$ name = $ this ->getName ();
110
111
111
112
return "[ {$ env }] %level_name% in ` {$ name }` command " ;
Original file line number Diff line number Diff line change 2
2
3
3
namespace Illuminated \Console \Loggable \Notifications \EmailChannel ;
4
4
5
+ use Illuminate \Support \Str ;
5
6
use Monolog \Formatter \HtmlFormatter ;
6
7
7
8
class MonologHtmlFormatter extends HtmlFormatter
@@ -113,7 +114,7 @@ protected function composeTitle(array $record)
113
114
}
114
115
115
116
$ environment = app ()->environment ();
116
- $ environment = e (str_upper ($ environment ));
117
+ $ environment = e (Str:: upper ($ environment ));
117
118
$ title .= '<style>.title { padding-bottom: 0 !important; } .subtitle { padding-top: 0 !important; }</style> ' ;
118
119
$ title .= "<h3 class='subtitle {$ levelName }'>This notification has been sent from the ` {$ environment }` environment!</h3> " ;
119
120
You can’t perform that action at this time.
0 commit comments