# Sage 9 Autocompletion in PhpStorm

**URL:** https://discourse.roots.io/t/sage-9-autocompletion-in-phpstorm/12100
**Category:** sage
**Tags:** webpack, sage9
**Created:** 2018-04-01T23:50:03Z
**Posts:** 5

## Post 1 by @sandrowuermli — 2018-04-01T23:50:03Z

Has somebody a solution for autocompletion with PhpStorm and Sage 9?

 ![undefined%20class](https://discourse.roots.io/uploads/default/original/2X/8/8a705bd33e3ffcb29247709731a7da855bfea540.png)

 ![class](https://discourse.roots.io/uploads/default/original/2X/0/0d3b6d245d70b932ea356656e9a7f0240c304e7f.png)

Thanks for your help.

---

## Post 2 by @alwaysblank — 2018-04-02T01:41:46Z

Adding `<?php namespace App; ?>` to the top of your Blade should do the trick.

---

## Post 3 by @sandrowuermli — 2018-04-02T11:29:59Z

Thanks for your help, but this doesn’t work. Other ideas?

---

## Post 4 by @sandrowuermli — 2018-04-02T11:31:00Z

I Found this, but i can’t use it, because the `$App` Variable doesn’t exist.  
[https://blog.jetbrains.com/phpstorm/2017/02/code-completion-in-laravel-blade-templates/](https://blog.jetbrains.com/phpstorm/2017/02/code-completion-in-laravel-blade-templates/)

---

## Post 5 by @octoxan — 2018-04-02T13:30:18Z

Seems Sage needs something similar to Laravel and Magento 2, where it outputs a couple PHPStorm IDE Helper files so PHPStorm knows what in the world is going on.
