I created a new project using Laravel's command composer create-project --prefer-dist laravel/laravel blog
When I open it in PhpStorm, all the files look like this:
I haven't done anything at all but any file I open has the same color text and when I type anything I get no text suggestions.
Has anyone had this issue before?
P.S. Valet works and I can run the project in localhost.
I'll hazard a guess that somehow your files aren't being associated with PHP. You can reset this in settings by making sure that files ending in .php
are recognized by PHPStorm as PHP files:
Image of PHPStorm 2018.1
In settings, go to Editor -> File Types -> PHP and make sure that *.php
(or whatever your exotic PHP extension is) is present. Hit Apply.