Laravel Goto
Go to various Laravel files.
Features
Go to Blade
Go to blade template files.
view('hello_view', ['name' => 'James']);
Route::view('/', 'pages.public.index');
@includeIf('view.name', ['status' => 'complete'])
@each('view.name', $jobs, 'job', 'view.empty')
@extends('layouts.app')
Go to blade Component files.
<x-alert:hello />
Go to Controller
Go to controllers and highlight method.
Route::get('/', 'HelloController@index');
Route::resource('photo', 'HelloController', ['only' => [
'index', 'show'
]]);
Go to Controller from route helper
Go to Middleware
Go to Config
Go to config files and highlight option.
Config::get('app.timezone');
Config::set('app.timezone', 'UTC');
Go to Filesystem config
Go to filesystem config file and highlight option.
Storage::disk('local')->put('example.txt', 'Contents');
Go to Language
Go to single language file.
__('messages.welcome');
@lang('messages.welcome');
trans('messages.welcome');
trans_choice('messages.apples', 10);
Open all and highlight option.
Go to .env
env('APP_DEBUG', false);
Go to Command
Go to Inertia.js
Route::inertia('/about', 'About/AboutComponent');
Inertia::render('MyComponent');
inertia('About/AboutComponent');
Go to Livewire
@livewire('nav.show-post')
<livewire:nav.show-post />
Go to path helper
app_path('User.php');
base_path('vendor');
config_path('app.php');
database_path('UserFactory.php');
public_path('css/app.css');
resource_path('sass/app.scss');
storage_path('logs/laravel.log');
Go to Static files
$file = 'js/hello.js';
Default supported static file extensions:
- js
- ts
- jsx
- vue
- css
- scss
- sass
- less
- styl
- htm
- html
- xhtml
- xml
- log
Requirements
Enable Go to Symbol in File
for PHP
To enable moving to Method directly after a Controller is opened. Make sure one of these extensions is installed.
Usage
- Move cursor on a text, and click the hover content, or press Alt + ; to run the command.
- Or Select a text,
Right-Click
to open content menu, Choose Laravel Goto
.