extends for single blade files #29
Unanswered
progintYasin
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
hi.
i'm write a website with multi theme system.
so i build a setting system for chose themes from admin for website and have 2 section
section one : main theme
section two : single products theme
main theme work correctly
but single product theme with middleware don't work and give a error for section path not fount. but if copy section path files in new singleProductTheme error is done
i dont want to copy files becuse i want write 20 type single product theme
my codes
route for single product
$singleProductTheme = config()->get('theme.product_detail_active'); Route::get('product/{slug}', [\App\Http\Controllers\FrontController::class, 'single_product'])->middleware("theme:$singleProductTheme,themeV1'")->name('single_product.index');
main theme
themes/themeV1/views/front/layouts/app.blade.php
themes/themeV1/views/front/product_detail/detail1.blade.php
single product theme
themes/ProductDetail1/views/front/product_detail/detail1.blade.php
Beta Was this translation helpful? Give feedback.
All reactions