Note: This extension is currently in Open Beta Testing. Please refer to the support instructions on how to file a bug report or feature request.
Below you'll find a list of features as well as a roadmap with features we will be integrating soon.
Please Note:
- This extension will occasionally boot your app in the background to collect information about your app for use in autocompletion, linking, hovering, and diagnostics
- When you first install the extension it will download a small binary to your machine, we use this binary for PHP parsing
A non-exhaustive list of features covered in the extension:
app('auth')
App::make('auth.driver')
app()->make('auth.driver')
App::bound('auth.driver')
App::isShared('auth.driver')
// etc
- Auto-completion
- Links directly to binding
- Warns when binding not found
- Hoverable
asset('my-amazing-jpeg.png')
- Auto-completion
- Links directly to asset
- Warns when asset not found
- Syntax highlighting
config('broadcasting.connections.reverb.app_id');
Config::get('broadcasting.connections.reverb.app_id');
Config::getMany([
'broadcasting.connections.reverb.app_id',
'broadcasting.connections.reverb.driver',
]);
config()->string('broadcasting.connections.reverb.app_id');
// etc
- Auto-completion
- Links directly to config value
- Warns when config not found
- Hoverable
- Method auto-completion
- Field auto-completion (e.g.
where
methods,create
/make
/object creation) - Relationship auto-completion (e.g.
with
method +with
with array keys) - Sub-query auto-completion (
with
with array keys + value as closure)
env('REVERB_APP_ID');
Env::get('REVERB_APP_ID');
- Auto-completion
- Links directly to env value
- Warns when env not found, offers quick fixes:
- Add to
.env
- Copy value from
.env.example
- Add to
- Hoverable
inertia('Pages/Dashboard');
Inertia::render('Pages/Dashboard');
Route::inertia('/dashboard', 'Pages/Dashboard');
- Auto-completion
- Links directly to JS view
- Warns when view not found, offers quick fixes:
- Create view
- Hoverable
route('dashboard');
signedRoute('dashboard');
Redirect::route('dashboard');
Redirect::signedRoute('dashboard');
URL::route('dashboard');
URL::signedRoute('dashboard');
Route::middleware('auth');
redirect()->route('dashboard');
// etc
- Auto-completion
- Links directly to route definition
- Warns when route not found
- Hoverable
Route::middleware('auth');
Route::middleware(['auth', 'web']);
Route::withoutMiddleware('auth');
// etc
- Auto-completion
- Links directly to middleware handling
- Warns when middleware not found
- Hoverable
trans('auth.failed');
__('auth.failed');
Lang::has('auth.failed');
Lang::get('auth.failed');
// etc
- Auto-completion
- Links directly to translation
- Warns when translation not found
- Hoverable
- Parameter auto-completion
Validator::validate($input, ['name' => 'required']);
request()->validate(['name' => 'required']);
request()->sometimes(['name' => 'required']);
// etc
- Auto-completion for strings/arrays (not "|" just yet)
view('dashboard');
Route::view('/', 'home');
- Auto-completion
- Links directly to Blade view
- Warns when view not found, offers quick fixes:
- Create view
- Hoverable
- Integration with VS Code test runner
- Livewire support
- Volt support
- Pint support
- Better autocompletion, linking, hovering, and diagnostics in Blade files
Our focus right now is to create the best VS Code experience for Laravel developers. While we're not ruling out the possibility of porting much of this functionality to an LSP in the future, it's not on the immediate roadmap.