if we update details in laravel 7 using session code example
Example 1: laravel use session values in view
<!--This is placed in the view section --> {{ session('key_name') }}
Example 2: session in laravel
session()->regenerate();
<!--This is placed in the view section --> {{ session('key_name') }}
session()->regenerate();