Paul Couture
c4398c641e
Prepping for launch. Reviewed-on: #1 Co-authored-by: Paul Couture <paul@paulcouture.com> Co-committed-by: Paul Couture <paul@paulcouture.com>
25 lines
368 B
PHP
25 lines
368 B
PHP
<?php
|
|
|
|
namespace App\Livewire;
|
|
|
|
use Livewire\Component;
|
|
|
|
class Themeswitch extends Component
|
|
{
|
|
|
|
public function light()
|
|
{
|
|
session()->put('preferred_theme', 'light');
|
|
}
|
|
|
|
public function dark()
|
|
{
|
|
session()->put('preferred_theme', 'dark');
|
|
}
|
|
|
|
public function render()
|
|
{
|
|
return view('livewire.themeswitch');
|
|
}
|
|
}
|