allen.yan ef865b50e1 20250902
移除使用的密碼記錄
加入手機點歌介面
加入 ftp驗証
2025-09-02 11:25:28 +08:00

26 lines
527 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace App\Livewire\Pages;
use Livewire\Component;
class Home extends Component
{
public $roomCode;
public function mount()
{
// 先從 URL 取得 room_code再存進 session
//session()->forget('room_code');
$this->roomCode = request()->query('room_code', session('room_code', null));
if ($this->roomCode) {
session(['room_code' => $this->roomCode]);
}
}
public function render()
{
return view('livewire.pages.home');
}
}