Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Bakasta's avatar

Store array to session flash

i Want to store this code using array:

$request->session()->flash('message', $message);

$request->session()->flash('modal', $modal);

if i do that i get "Argument 1 passed" error

0 likes
2 replies
Sinnbeck's avatar

What is $message and $modal? Also what is the full error message?

Bakasta's avatar

@sinnbeck i use modal to be parameter for show the modal boostrap and message for showin data on modal boostrap

Please or to participate in this conversation.