did an array can be set on session laravel code example
Example: laravel use session values in view
<!--This is placed in the view section --> {{ session('key_name') }}
<!--This is placed in the view section --> {{ session('key_name') }}