Skip to content

Commit

Permalink
Update Session.php (laravel#54421)
Browse files Browse the repository at this point in the history
Added flash method to Session interface
  • Loading branch information
eldair authored Jan 31, 2025
1 parent 345e755 commit 9243eac
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Illuminate/Contracts/Session/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,15 @@ public function pull($key, $default = null);
*/
public function put($key, $value = null);

/**
* Flash a key / value pair to the session.
*
* @param string $key
* @param mixed $value
* @return void
*/
public function flash(string $key, $value = true);

/**
* Get the CSRF token value.
*
Expand Down

0 comments on commit 9243eac

Please sign in to comment.