Answers for "how to get session value in controller laravel"

PHP
1

set session data in laravel

Session::put('key', 'value');

session(['key' => 'value']);
Posted by: Guest on September-24-2020
6

session variable in laravel

$request->session()->put('key','value');
Posted by: Guest on April-18-2020

Code answers related to "how to get session value in controller laravel"

Browse Popular Code Answers by Language