Closed bilogic closed 2 years ago
The following example throws the Call to a member function authorize() on null exception
Call to a member function authorize() on null
\OptimistDigital\NovaSettings\NovaSettings::addSettingsFields([ Text::make('Some setting', 'some_setting'), Number::make('A number', 'a_number'), ]);
However, this works without issues
\OptimistDigital\NovaSettings\NovaSettings::make()
addSettingsFields() returns null, it should not be static and return $this to allow chaining.
addSettingsFields()
null
$this
Hey! I think I need more of the stacktrace to debug this. Where is the exception thrown?
The following example throws the
Call to a member function authorize() on null
exceptionHowever, this works without issues