I want to dynamically modify the values of the admilte.php configuration file
'logo' => 'TutosCODERS',
'logo_img' => 'vendor/adminlte/dist/img/AdminLTELogo.png',
use App\Models\Setting;
$events->listen(BuildingMenu::class, function (BuildingMenu $event) {
$settings = Setting::first();
$event->menu->logo(['logo' => $setting->company]);
});
In serviceprovider I tried to execute this code, but it doesn't work, I guess there must be another way, does anyone know how to solve it?
I could find the answer this code works correctly