Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 97445

VSCode Intelliphense not working properly with Laravel Projects

$
0
0

In VSCode the PHP intelephense extension version 1.3.7 marks the laravel Facades as classes not found. Before if you import a Facade like this:

use Log;

and then use it in the file like this:

Log::info('some message');

which is correct there were no issues. Now every usage is marked as a syntax error and you have to import the fully qualified name like the following for the error to go away.

use \Illuminate\Support\Facades\Log;

Also it didn't used to complain about the Eloquent class's methods like find or where etc but now it underlines them as methods not defined.

Is there a way for the extension to ignore these?


Viewing all articles
Browse latest Browse all 97445

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>