igaster / laravel-theme

Theme support for Laravel
MIT License
516 stars 110 forks source link

issue with laravel-5.5 `call_user_func_array() expects parameter 1 to be a valid callback` #70

Closed UnrulyNatives closed 7 years ago

UnrulyNatives commented 7 years ago

I have the Laravel 5.5 and the latest version of this package successfully added.

Problem

As soon as I add my first theme by :

'default' => 'bootstrap',

and

        'bootstrap' => [
            'extends'       => null, 
        ],

I receive the error

call_user_func_array() expects parameter 1 to be a valid callback, class 'Igaster\LaravelTheme\Theme' does not have a method 'config' (View: \resources\views\pages\create.blade.php)

I tried several variants but to no positive result.

Thx.

igaster commented 7 years ago

It seems that you have upgraded from package version v1.x to v2.x. The config() method has been renamed to getSetting(). Check the Migration Guide