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
You can use Cookie facade or use cookie helper function
{{ Cookie::get('rem_username') }} OR
{{ cookie('rem_username') }}
也许这也对您有用:
{{\Illuminate\Support\Facades\Cookie::get('rem_username')}}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.