Theme::set() igaster/laravel-theme giving error code example
Example: Igaster\Laravel Theme\Exceptions\theme Already Exists
removing the config/themes.php files will solve the issue.
------------------ OR -------------------
if you are switching or trying to set the theme inside the AppServiceProvider
try updating it inside the boot method instead of updating it inside the
register method.