Way to use class with namespace instead of importing it

Hello,

simple question but I can't find answer. Is there a way to use class with namespace instead of importing it? I'm using laravel and sometimes PHPStorm uses imports and sometimes insert namespace.

I would like to have option to insert code like this \App\Models\Phone::make() instead of import and Phone::make. I would like to press enter + something when selecting class to import from popup. Or maybe there is fast way to replace import with namespace?

0
1 comment

Hello,

You may configure auto-import settings in "Settings/Preferences | Editor | General | Auto Import”:

Does it work in your scenario?

0

Please sign in to leave a comment.