Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Theme Layout broken - Laravel 5.4 #56

Closed
johnhearfield opened this issue Mar 21, 2017 · 1 comment
Closed

Theme Layout broken - Laravel 5.4 #56

johnhearfield opened this issue Mar 21, 2017 · 1 comment

Comments

@johnhearfield
Copy link

johnhearfield commented Mar 21, 2017

I can't seem to get the Theme::setLayout($layout) to work

Theme::setLayout always returns false, so I cant do @extend($theme_layout)

File structure:
/laravel/public/themes/standard/views/layouts/default.blade.php

Inside Controller.php

public function __construct() {
        $theme = config('themes.active');
        \Theme::setActive($theme);
        dd(\Theme::setLayout('layouts.default'));
}

I've also tried extend('standard::layouts.default') and it throws

ErrorException thrown with message "No hint path defined for [standard]. (View: /laravel/app/Modules/Dashboard/Resources/Views/dashboard.blade.php)"
@nikocraft
Copy link

hi did you manage to get this working?

@kaidesu kaidesu closed this as completed Aug 9, 2017
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants