ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Laravel Goto

by absszero ALL

Goto various Laravel files by Alt+Left-Click

Details

  • 1.17.3
  • github.​com
  • github.​com
  • 3 months ago
  • 13 minutes ago
  • 5 years ago

Installs

  • Total 13K
  • Win 9K
  • Mac 2K
  • Linux 3K
Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12
Windows 0 4 5 5 5 3 1 4 1 2 2 2 3 0 3 2 2 2 2 4 0 0 4 0 6 3 2 3 2 5 4 3 2 2 2 1 1 4 4 1 2 0 4 2 3 1
Mac 0 0 0 0 0 0 0 0 0 2 0 2 0 1 0 0 0 0 0 3 1 1 1 1 0 0 2 1 1 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 2 1
Linux 0 2 3 2 0 2 1 0 1 1 0 1 0 1 1 0 3 2 2 3 0 1 0 2 2 0 3 1 0 1 5 2 1 0 1 0 2 1 3 2 3 0 0 1 2 2

Readme

Source
raw.​githubusercontent.​com

Laravel Goto

Package Control Downloads GitHub Actions Workflow Status

Goto various Laravel files

example

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 or 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

Installation

Package Control

  1. Ctrl+Shift+P then select Package Control: Install Package
  2. Type Laravel Goto

Manually

  • MacOS
git clone https://github.com/absszero/LaravelGoto.git ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/LaravelGoto
  • Linux
git clone https://github.com/absszero/LaravelGoto.git ~/.config/sublime-text-3/Packages/LaravelGoto
  • Windows
git clone https://github.com/absszero/LaravelGoto.git %APPDATA%\Sublime Text 3\Packages\LaravelGoto

Usage

  • Select a text, Right-Click to open content menu, Press Laravel Goto or use Alt + ;.

Extend static file extensions

You can add other file extensions throught Preferences > Package Settings > LaravelGoto > Settings, and add this option static_extensions

"static_extensions": [
    "your_extension_here"
]