Skip to content

Commit 9243eac

Browse files
authored
Update Session.php (laravel#54421)
Added flash method to Session interface
1 parent 345e755 commit 9243eac

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Illuminate/Contracts/Session/Session.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,15 @@ public function pull($key, $default = null);
9898
*/
9999
public function put($key, $value = null);
100100

101+
/**
102+
* Flash a key / value pair to the session.
103+
*
104+
* @param string $key
105+
* @param mixed $value
106+
* @return void
107+
*/
108+
public function flash(string $key, $value = true);
109+
101110
/**
102111
* Get the CSRF token value.
103112
*

0 commit comments

Comments
 (0)