You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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');
}
}
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: