12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?php
- namespace App\Http\Controllers;
- use App\Models\Meeting;
- use App\Models\MeetingParticipant;
- use Illuminate\Http\Request;
- use App\Models\Pro;
- use Illuminate\Support\Facades\DB;
- class GuestController extends Controller
- {
- // old meeting
- /*
- public function meeting(Request $request, $meetingID, $participantID) {
- $meeting = Meeting::where('uid', $meetingID)->first();
- if(!$meeting) {
- return abort(404, "Meeting no longer active");
- }
- $participants = MeetingParticipant::where('meeting_id', $meeting->id)->get();
- foreach ($participants as $participant) {
- $participant->proName = $participant->proName(); // eager-fill proName
- }
- return view('meeting', [
- 'meetingID' => $meetingID,
- 'participantID'=> $participantID,
- 'participants' => $participants,
- 'guest' => true
- ]);
- }
- */
- public function meet(Request $request) {
- return view('meet', [
- 'guest' => true
- ]);
- }
- public function getCheckinToken(Request $request, $uid) {
- $client = DB::table('client')->where('uid', $uid)->first();
- return json_encode([
- "data" => $client->check_in_token
- ]);
- }
- }
|