Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 4 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | function notify($message = null, $type = 'info', array $options = []) |
||
14 | { |
||
15 | /** @var Arcanedev\Notify\Contracts\Notify $notifier */ |
||
16 | $notifier = app(\Arcanedev\Notify\Contracts\Notify::class); |
||
17 | |||
18 | if ( ! is_null($message)) $notifier->flash($message, $type, $options); |
||
19 | |||
20 | return $notifier; |
||
21 | } |
||
22 | } |
||
23 |