Reputation: 5111
When I type Comment
and press enter for the suggested class, I get \App\Models\Comment
. Instead. I want to explicitly import it i.e. use App\Models\Comment
.
Upvotes: 1
Views: 711
Reputation: 165088
Since the auto import works in namespaced context (in a controller or model classes) then it must be that specific context setting.
Settings (Preferences on macOS)
Editor | General | Auto Import
PHP | Enable auto-import in file scope
option is enabled.Upvotes: 3