Flashdata is temporary session data that is available for the next request only.
Example: Setting Flashdata
1 | session()->setFlashdata('message', 'Login successful!'); |
Example: Retrieving Flashdata
1 | $message = session()->getFlashdata('message'); |
Flashdata is temporary session data that is available for the next request only.
Example: Setting Flashdata
1 | session()->setFlashdata('message', 'Login successful!'); |
Example: Retrieving Flashdata
1 | $message = session()->getFlashdata('message'); |