Ad

How To Auto Import Laravel Class In Vs Code

- 1 answer

I am currently working on laravel project in visual studio code text editor. If i use laravel package classes in the code at that time i want to automatically import that class using any vs code extension. If you know any best extension for this let me know.

For example I am using Schema class in the code then class should automatically imported like use use Illuminate\Support\Facades\Schema;

Ad

Answer

Use PHP Intelephense extension by Ben Mewburn for auto importing class name and many more feature. Install from vs code editor or check it here

Ad
source: stackoverflow.com
Ad