launcher-host / bread-templates

BREAD Templates with Voyager
MIT License
20 stars 7 forks source link

Using $this when not in object context #3

Open d3turnes opened 6 years ago

d3turnes commented 6 years ago

Error, line 94 File: vendor\bread-templates\src\TemplatesManager.php

templateModified() => static function and getPath() => no static function

public static function templateModified(Template $template) { $_file = $this->getPath($template->slug); => Error //$_file = resource_path('views/vendor/voyager/templates/').$template->slug.'.blade.php'; => OK

akazorg commented 6 years ago

Hey @d3turnes, thanks for the message, I'll check that.

ranjitWBS commented 6 years ago

Also hooks are not working when a bread has relationships fields. :-( Please suggest..