podcastartgenerator/site/app/Livewire/Themeswitch.php

25 lines
368 B
PHP
Raw Normal View History

<?php
namespace App\Livewire;
use Livewire\Component;
class Themeswitch extends Component
{
public function light()
{
2023-12-14 12:30:49 -05:00
session()->put('preferred_theme', 'light');
}
public function dark()
{
2023-12-14 12:30:49 -05:00
session()->put('preferred_theme', 'dark');
}
public function render()
{
return view('livewire.themeswitch');
}
}