public function to(Authenticatable $user, $path, $extra = [], $secure = null)
    {
        $path = $this->generator->to($path, $extra, $secure);

        return $this->getAutologinLink($user, $path);
    }
public function to(Authenticatable $user, $path, $extra = [], $secure = null)
    {
        $path = $this->generator->to($path, $extra, $secure);

        return $this->getAutologinLink($user, $path);
    }
public function to ( Authenticatable $ user , $ path , $ extra = [ ] , $ secure = null ) { $ path = $ this -> generator -> to ( $ path , $ extra , $ secure ) ; return $ this -> getAutologinLink ( $ user , $ path ) ; }
Generate a link that will automatically login a user and then redirect
them to a hard-coded path as generated by the URL
generator.

@param  \Illuminate\Contracts\Auth\Authenticatable  $user
@param  string  $path
@param  mixed  $extra
@param  bool  $secure
@return string
Generate a link that will automatically login a user and then redirect them to a hard - coded path as generated by the URL generator .