[英]how to set remember me option in laravel 5.4 using cookie
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 设置了cookie,如何在登录视图页面中使用它
You can use Cookie facade or use cookie helper function 您可以使用Cookie Facade或使用Cookie助手功能
{{ Cookie::get('rem_username') }} OR
{{ cookie('rem_username') }}
也许这也对您有用:
{{\Illuminate\Support\Facades\Cookie::get('rem_username')}}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.