towhid
199
1
Laravel

What Is main difference in two sesson data process ?

Posted 5 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.