towhid
141
1
Laravel

What Is main difference in two sesson data process ?

Posted 3 months ago by towhid
session(['name' => 'Towhid ull alam']);
return session('name');

and

$request->session()->put('name','Towhid ull alam');
return $request->session()->get('name','default');

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.