codingyu / laravel-goto-view

vscode extension
MIT License
46 stars 28 forks source link

Not detecting/working on Laravel Modules package #15

Closed anburocky3 closed 5 years ago

anburocky3 commented 5 years ago

I'm recently working on Laravel modules package. i noticed the file is no longer detected and clickable not appearing on web.php route file and even on return view("site::pages/about"); its not highlighting and not clickable.

A proper documentation would help in handy. :+1:

codingyu commented 5 years ago

If your module name is Site and there is no additional view path specified, you don't need to do extra configuration. If not.

"laravel_goto_view.folders": {
    "default": "/resources/views",
    "site": "Modules/Site/resources/views",
},
anburocky3 commented 5 years ago

What if I had multiple modules? I can add an new array just like site?

For example: "laravel_goto_view.folders": { "default": "/resources/views", "site": "Modules/Site/resources/views", "admin": "Modules/Admin/resources/views", }, Would be better?

codingyu commented 5 years ago

@anburocky3 No, if you haven't defined the view path, it will work by default, and you don't need to change the configuration. like:

Module name: Aaa   -> aaa::page.test      =     Modules/Aaa/resources/views/page/test.blade.php