Closed fh32000 closed 3 years ago
@omarhen @sepehrr @FaridAghili @SadeghPM @
it work affer this change in your code
` Nova::serving(function (ServingNova $event) {
if (in_array(app()->getLocale(), config('nova-rtl-theme.locales', []))) {
Nova::provideToScript([
'nova_rtl_theme' => [
'stylesheet' => config('nova-rtl-theme.stylesheet'),
'font_family' => config('nova-rtl-theme.font-family'),
],
]);
Nova::style('nova-rtl-theme', __DIR__ . '/../resources/css/theme.css');
Nova::script('nova-rtl-theme', __DIR__ . '/../resources/js/theme.js');
}
});`
Thanks Fixed in v1.5.9
I have Middleware to change app Locale but ThemeServiceProvider boot run before my Middleware
`<?php
namespace App\Http\Middleware;
use Closure; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Log;
` /**
Log: