First commit
This commit is contained in:
commit
7cf3558ba7
12933 changed files with 1180047 additions and 0 deletions
25
app/Livewire/Web/Components/Demo/ThemeSwitcher.php
Normal file
25
app/Livewire/Web/Components/Demo/ThemeSwitcher.php
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
<?php
|
||||
|
||||
namespace App\Livewire\Web\Components\Demo;
|
||||
|
||||
use Livewire\Component;
|
||||
|
||||
class ThemeSwitcher extends Component
|
||||
{
|
||||
public $domains = [];
|
||||
|
||||
public function mount()
|
||||
{
|
||||
$this->domains = config('domains.domains');
|
||||
foreach ($this->domains as $key => $domain) {
|
||||
if ($domain['domain_name'] == config('domains.domain_portal')) {
|
||||
unset($this->domains[$key]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function render()
|
||||
{
|
||||
return view('livewire.web.components.demo.theme-switcher');
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue