| 1 | <?php namespace Arcanesoft\Core\Traits; |
||
| 9 | trait Notifyable |
||
| 10 | { |
||
| 11 | /* ------------------------------------------------------------------------------------------------ |
||
| 12 | | Main Functions |
||
| 13 | | ------------------------------------------------------------------------------------------------ |
||
| 14 | */ |
||
| 15 | /** |
||
| 16 | * Get the notification instance. |
||
| 17 | * |
||
| 18 | * @return \Arcanesoft\Core\Helpers\Notification |
||
| 19 | */ |
||
| 20 | protected function notification() |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Notify a success alert. |
||
| 27 | * |
||
| 28 | * @param string $title |
||
| 29 | * @param string $message |
||
| 30 | */ |
||
| 31 | protected function notifySuccess($title, $message = '') |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Notify a danger alert. |
||
| 38 | * |
||
| 39 | * @param string $title |
||
| 40 | * @param string $message |
||
| 41 | */ |
||
| 42 | protected function notifyDanger($title, $message = '') |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Notify a warning alert. |
||
| 49 | * |
||
| 50 | * @param string $title |
||
| 51 | * @param string $message |
||
| 52 | */ |
||
| 53 | protected function notifyWarning($title, $message = '') |
||
| 57 | |||
| 58 | /** |
||
| 59 | * Notify an info alert. |
||
| 60 | * |
||
| 61 | * @param string $title |
||
| 62 | * @param string $message |
||
| 63 | */ |
||
| 64 | protected function notifyInfo($title, $message = '') |
||
| 68 | } |
||
| 69 |