Reputation: 23
in controller
$cookie=Cookie('rem_username',$username,60);
$cookie1=Cookie('rem_password',$password,60);
return redirect()->action("Logincheck@dashboardvalue")->cookie($cookie)->cookie($cookie1);
the cookies are set , how to use this in view page of login
Upvotes: 0
Views: 721
Reputation: 21681
May this also work for you:
{{\Illuminate\Support\Facades\Cookie::get('rem_username')}}
Upvotes: 0
Reputation: 4806
You can use Cookie facade or use cookie helper function
{{ Cookie::get('rem_username') }} OR
{{ cookie('rem_username') }}
Upvotes: 2