有没有办法映射一系列字符来触发事件?
我想要一个特殊的热键来记住(e.g. Control-k)
在其后的另一封信中,我可以触发不同的事件:
前
^km --> do something
^kp --> do something else
^kc --> do something else
...
答案 0 :(得分:0)
protected function handleUserWasAuthenticated(Request $request, $throttles)
{
if ($throttles) {
$this->clearLoginAttempts($request);
}
if (method_exists($this, 'authenticated')) {
return $this->authenticated($request, Auth::guard($this->getGuard())->user());
}
// HERE: control the user that has logged in and change the value
// of $this-redirectTo property accordingly.
return redirect()->intended($this->redirectPath());
}