Skip to content

Commit 771a0de

Browse files
committed
Merge branch 'main' of https://github.com/leafsphp/session
2 parents 75305c9 + 8cfa0ad commit 771a0de

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Http/Session.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,4 +231,14 @@ public static function flash($message = null)
231231

232232
\Leaf\Flash::set($message);
233233
}
234+
235+
/**
236+
* Has Session Item
237+
*
238+
* @return bool
239+
*/
240+
public static function has($key)
241+
{
242+
return static::get($key) !== null;
243+
}
234244
};

0 commit comments

Comments
 (0)