print session in laravel
dd(session()->all());
print session in laravel
dd(session()->all());
set session in laravel
Session::get('variableName');
set session data in laravel
$value = Session::get('key');
$value = session('key');
set session in laravel
session(['variableName' => $value]);
add data to session laravel
// set data
$data = [
"name" => "lorem",
"phone" => "123"
];
// storing $data to session
session($data);
// retrieving data from session
echo session("name");
// updating data from session
session(["name" => "ipsum"]);
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us