@@ 66-81 (lines=16) @@ | ||
63 | } |
|
64 | } |
|
65 | ||
66 | if (!function_exists('admin_toastr')) { |
|
67 | ||
68 | /** |
|
69 | * Flash a toastr message bag to session. |
|
70 | * |
|
71 | * @param string $message |
|
72 | * @param string $type |
|
73 | * @param array $options |
|
74 | */ |
|
75 | function admin_toastr($message = '', $type = 'success', $options = []) |
|
76 | { |
|
77 | $toastr = new MessageBag(get_defined_vars()); |
|
78 | ||
79 | session()->flash('toastr', $toastr); |
|
80 | } |
|
81 | } |
|
82 | ||
83 | if (!function_exists('admin_success')) { |
|
84 | ||
@@ 125-140 (lines=16) @@ | ||
122 | } |
|
123 | } |
|
124 | ||
125 | if (!function_exists('admin_info')) { |
|
126 | ||
127 | /** |
|
128 | * Flash a message bag to session. |
|
129 | * |
|
130 | * @param string $title |
|
131 | * @param string $message |
|
132 | * @param string $type |
|
133 | */ |
|
134 | function admin_info($title, $message = '', $type = 'info') |
|
135 | { |
|
136 | $message = new MessageBag(get_defined_vars()); |
|
137 | ||
138 | session()->flash($type, $message); |
|
139 | } |
|
140 | } |
|
141 | ||
142 | if (!function_exists('admin_asset')) { |
|
143 |