@@ -16,7 +16,7 @@ class UserRedirector extends Redirector
16
16
*/
17
17
public function guest ($ path , $ status = 302 , $ headers = [], $ secure = null )
18
18
{
19
- $ this ->session ->put ($ this ->getItendedSessionKey (), $ this ->generator ->full ());
19
+ $ this ->session ->put ($ this ->getIntendedSessionKey (), $ this ->generator ->full ());
20
20
21
21
return $ this ->to ($ path , $ status , $ headers , $ secure );
22
22
}
@@ -32,7 +32,7 @@ public function guest($path, $status = 302, $headers = [], $secure = null)
32
32
*/
33
33
public function intended ($ default = '/ ' , $ status = 302 , $ headers = [], $ secure = null )
34
34
{
35
- $ path = $ this ->session ->pull ($ this ->getItendedSessionKey (), $ default );
35
+ $ path = $ this ->session ->pull ($ this ->getIntendedSessionKey (), $ default );
36
36
37
37
return $ this ->to ($ path , $ status , $ headers , $ secure );
38
38
}
@@ -45,15 +45,15 @@ public function intended($default = '/', $status = 302, $headers = [], $secure =
45
45
*/
46
46
public function setIntendedUrl ($ url )
47
47
{
48
- $ this ->session ->put ($ this ->getItendedSessionKey (), $ url );
48
+ $ this ->session ->put ($ this ->getIntendedSessionKey (), $ url );
49
49
}
50
50
51
51
/**
52
52
* Get the session key for the intended redirect
53
53
*
54
54
* @return string
55
55
*/
56
- protected function getItendedSessionKey ()
56
+ protected function getIntendedSessionKey ()
57
57
{
58
58
return App::runningInBackend () ? 'url.intended ' : 'url.frontend.intended ' ;
59
59
}
0 commit comments