You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using both the modules and themes(v5.2.0 & v6.1.0 ) packages with Laravel 5.8.* on PHP 7.1
I have the modules in app/Modules while themes are in public/themes
my providers are registered/ discovered and in a middleware i have the following
if (!auth()->user()->hasRole("admin")) {
Theme::set('angostura');
}
when i try to visit a route with the middleware I encounter
Call to a member function has() on null
which points to
protected function resolveTheme($theme)
{
$theme = $this->where('slug', $theme)->first();
$parent = null;
if ($theme->has('parent')) {
$parent = $this->where('slug', $theme->get('parent'))->first();
}
which seems to return $theme as null even though the theme is active
any idea what is causing this?
The text was updated successfully, but these errors were encountered:
I am using both the modules and themes(v5.2.0 & v6.1.0 ) packages with Laravel 5.8.* on PHP 7.1
I have the modules in app/Modules while themes are in public/themes
my providers are registered/ discovered and in a middleware i have the following
when i try to visit a route with the middleware I encounter
which points to
which seems to return $theme as null even though the theme is active
any idea what is causing this?
The text was updated successfully, but these errors were encountered: