【发布时间】:2015-04-18 16:07:44
【问题描述】:
我使用的是 Laravel 4.2,我需要在登录请求的响应中发送 auth cookie。
到目前为止,我尝试了Cookie::get('laravel_session'),但这只会返回客户端发回的cookie。
if (Auth::attempt(array('email' => Input::get('email'), 'password' => Input::get('password')))) {
/* I need the auth token here */
}
想法?
【问题讨论】:
标签: php authentication laravel cookies laravel-4