app->register(LivewireAlertServiceProvider::class); // if (App::environment('production')) { // URL::forceScheme('https'); // } // Paginator::useBootstrap(); View::composer('layouts.master', function ($view) { if (Auth::check()) { // Gunakan Auth::check() untuk memastikan user sudah login $user = Auth::user(); $theme = $user->theme ?? null; $view->with('themes', $theme); } }); } }