Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VScode "Undefined type 'GoogleTagManager'.intelephense(P1009)" #54

Open
CoarsePiglet opened this issue Feb 25, 2025 · 0 comments
Open

Comments

@CoarsePiglet
Copy link

CoarsePiglet commented Feb 25, 2025

Hello folks

Using Laravel 10.28.0

I installed the plugin as per the docs.
and also added it to the app.php as per the docs.

However, in my controller when using it under a public function, it gives this error:
"Undefined type 'GoogleTagManager'.intelephense(P1009)"

The webpage weirdly works, but VScode shows this error.
Is this a problem with VScode, or am I doing something incorrectly?

use GoogleTagManager;

class Controller extends BaseController
{
    use AuthorizesRequests, ValidatesRequests;
    public function welcome()
    {
        GoogleTagManager::set('pagetype', 'website');
        return view('welcome');
    }
}

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant