@@ -15,28 +15,28 @@ public function __construct(Session $session)
15
15
$ this ->session = $ session ;
16
16
}
17
17
18
- public function info (string $ message , string $ title = null ): self
18
+ public function info (string $ message , ? string $ title = null ): self
19
19
{
20
20
$ this ->flash ($ message , 'info ' , 'flaticon-exclamation-1 ' , 'toast ' , $ title );
21
21
22
22
return $ this ;
23
23
}
24
24
25
- public function success (string $ message , string $ title = null ): self
25
+ public function success (string $ message , ? string $ title = null ): self
26
26
{
27
27
$ this ->flash ($ message , 'success ' , 'flaticon2-check-mark ' , 'toast ' , $ title );
28
28
29
29
return $ this ;
30
30
}
31
31
32
- public function error (string $ message , string $ title = null ): self
32
+ public function error (string $ message , ? string $ title = null ): self
33
33
{
34
34
$ this ->flash ($ message , 'error ' , 'flaticon2-delete ' , 'toast ' , $ title );
35
35
36
36
return $ this ;
37
37
}
38
38
39
- public function warning (string $ message , string $ title = null ): self
39
+ public function warning (string $ message , ? string $ title = null ): self
40
40
{
41
41
$ this ->flash ($ message , 'warning ' , 'flaticon-warning-sign ' , 'toast ' , $ title );
42
42
@@ -110,7 +110,7 @@ public function preset(string $presetName, array $overrideValues = []): self
110
110
return $ this ;
111
111
}
112
112
113
- public function flash (string $ message , string $ type = null , string $ icon = null , string $ model = null , string $ title = null ): void
113
+ public function flash (string $ message , ? string $ type = null , ? string $ icon = null , ? string $ model = null , ? string $ title = null ): void
114
114
{
115
115
$ notifications = [
116
116
'message ' => $ message ,
0 commit comments