igaster / laravel-theme

Theme support for Laravel
MIT License
516 stars 110 forks source link

Issue with laravel-modules package #98

Closed kamov closed 5 years ago

kamov commented 5 years ago

I am using this package https://github.com/nWidart/laravel-modules

This package for each module add new view paths, with this code:


        $this->loadViewsFrom(array_merge(array_map(function ($path) {
            return $path . '/modules/core';
        }, \Config::get('view.paths')), [$sourcePath]), 'core');

The result of this become:

array:4 [▼
  0 => "resources/views/foundation/modules/core" // CUSTOM theme
  1 => "resources/views/default/modules/core" // DEFAULT theme
  2 => "resources/views/modules/core" // after publishing views from module they are stored here
  3 => "Modules/Core/Providers/../Resources/views" // module default folder
]

I would like to know why not work the loading of custom theme views?

Thanks

kamov commented 5 years ago

Forgot.. it works like a charm :+1:

I was doing some wrong test

igaster commented 5 years ago

:-)