source:
app/Helpers/Alert.php@
0c07a90
Last change on this file since 0c07a90 was 0924b6c, checked in by , 4 years ago | |
---|---|
|
|
File size: 250 bytes |
Rev | Line | |
---|---|---|
[0924b6c] | 1 | <?php |
2 | ||
3 | namespace App\Helpers; | |
4 | ||
5 | class Alert | |
6 | { | |
7 | public static function flash($message, $type = "success") | |
8 | { | |
9 | return request()->session()->flash("alert", [ | |
10 | "message" => $message, | |
11 | "type" => $type | |
12 | ]); | |
13 | } | |
14 | } |
Note:
See TracBrowser
for help on using the repository browser.