duncan3dc / blade

Use Blade templates without the full Laravel framework
Apache License 2.0
144 stars 36 forks source link

The IDE shows error #25

Open nikiedev opened 4 years ago

nikiedev commented 4 years ago

Hello! I am using PHPStorm IDE and installed your library. Now it shows error on the blade page, the doctype is underlined by red:

@use(App\Models\Menu)

<!DOCTYPE html>
...

Also, when i write smth like: {{ Menu::buildMenu($menu) }} in the code below, there is no smart help of IDE as if i write the full path: {{ \App\Models\Menu::buildMenu($menu) }} in the 2nd before method is called - ide shows a list of possible methods. Can this problems be somehow fixed? Thanks.

duncan3dc commented 4 years ago

Not directly here, it would need to be a PhpStorm plugin. I will take a look at what's possible when I get some time