caffeinated / themes

:art: Laravel Themes package with support for the Caffeinated Modules package.

Home Page:https://caffeinatedpackages.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue with components not being rendered

Reached opened this issue · comments

Hi there,

My components are just being rendered as text on my page:

@component_pageheader('My Awesome Page Header')

I am using the default setup as pr. described in the docs:

\Component::register('pageheader', function($title) {
    return "<h1 class=\"page-header\">{$title}</h1>";
});

In my view:

@component_pageheader('My Awesome Page Header')

The components.php file is at the root of my directory, in this case its called "bootstrap". Am I missing something here ?

Not sure if the "Components" facade is included in the source.

commented

Sorry, outdated docs - the components feature of the package have been removed - check out the native component/slot feature of 5.4 here: https://laravel.com/docs/5.4/blade#components-and-slots