codingyu / laravel-goto-view

vscode extension
MIT License
45 stars 28 forks source link

how do i make this ext do something? #34

Closed ghost closed 2 years ago

ghost commented 3 years ago
"laravel_goto_view.folders": {
    "default" : "/resources/views",
    "theme_xxx": "/resources/views/theme_xxx"
}

is "laravel_goto_view.folders" recursive? do i need to list every dir and subdir that contains views? right now i have

"laravel_goto_view.folders": {
          "default": "/resources/views"
          , "auth": "/resources/views/auth"
          , "backend": "/resources/views/backend"
          , "frontend": "/resources/views/frontend"
          , "includes": "/resources/views/includes"
          , "layouts": "/resources/views/layouts"
          , "vendor": "/resources/views/vendor"
      }

do i need to list every subdir below each of those dirs?

right now, your ext does absolutely nothing. your 'installation' doc tells me nothing about how to config this thing.

codingyu commented 3 years ago

No configuration is required after initial installation. All files under /resources/views are found by default.

view('a.b.c.d') -> /resources/views/a/b/c/d.blade.php

ghost commented 3 years ago

then what else might be the problem? as i said, right now your ext does nothing.

codingyu commented 3 years ago

image

ghost commented 3 years ago

my routes look like this: (and i've got 30-40 route files like this)

Route::group([
    'prefix'     => 'auth',
    'as'         => 'auth.',
    'namespace'  => 'Auth',
    'middleware' => 'role:'.config('access.users.admin_role'),
], function () {
    /*
     * User Management
     */
    Route::group(['namespace' => 'User'], function () {

        /*
         * User Status'
         */
        Route::get('user/deactivated', [UserStatusController::class, 'getDeactivated'])->name('user.deactivated');
        Route::get('user/deleted', [UserStatusController::class, 'getDeleted'])->name('user.deleted');

        /*
         * User CRUD
         */
        Route::get('user', [UserController::class, 'index'])->name('user.index');
        Route::get('user/create', [UserController::class, 'create'])->name('user.create');
etc.

will your ext work for these?

codingyu commented 3 years ago

This extension provides only go to view files(like:view('xxx)`` @include('xxx) @extends('xxx)

Maybe you need:https://marketplace.visualstudio.com/items?itemName=ctf0.laravel-goto-controller

github-actions[bot] commented 2 years ago

Stale issue message