Level 30
The theme method does not exist anymore in Nova 4. If you want to add custom css to Nova, please see my answer.
Getting the below error whenever i run any artisan or composer commands, verified that the method "theme" is in the nova.php file so looks like the methods aren't being autoloaded for some reason, worked before i updated to Nova 4, this is the line that's causing it: Nova::theme(asset('/***/***/theme.css'));
BadMethodCallException
Method theme does not exist.
at vendor/laravel/nova/src/Nova.php:1265
1261▕ */
1262▕ public static function __callStatic($method, $parameters)
1263▕ {
1264▕ if (! property_exists(get_called_class(), $method)) {
➜ 1265▕ throw new BadMethodCallException("Method {$method} does not exist.");
1266▕ }
1267▕
1268▕ return static::${$method};
1269▕ }
1 nova-components/***/src/ThemeServiceProvider.php:17
Laravel\Nova\Nova::__callStatic()
+7 vendor frames
9 [internal]:0
Illuminate\Foundation\Application::Illuminate\Foundation\{closure}()
Please or to participate in this conversation.