Merge pull request #4482 from ghermans/publish-shop-views

Publish the shop views to the themes directory
This commit is contained in:
Glenn Hermans 2021-01-14 18:26:16 +01:00 committed by GitHub
commit d3b5d3e90c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -31,6 +31,9 @@ class ShopServiceProvider extends ServiceProvider
], 'public');
$this->loadViewsFrom(__DIR__ . '/../Resources/views', 'shop');
$this->publishes([
__DIR__ . '/../Resources/views' => resource_path('themes/shop/views'),
]);
$router->aliasMiddleware('locale', Locale::class);
$router->aliasMiddleware('theme', Theme::class);