/** * Get notifications * @return string value */ public static function get() { if ($message = Cookie::get('__notification')) { // Delete the cookie! Power::off(function () { Cookie::delete('__notification'); }); } return $message; }