Changeset View
Changeset View
Standalone View
Standalone View
src/app/Console/Commands/Meet/Rooms.php
- This file was moved from src/app/Console/Commands/OpenVidu/Rooms.php.
<?php | <?php | ||||
namespace App\Console\Commands\OpenVidu; | namespace App\Console\Commands\Meet; | ||||
use Illuminate\Console\Command; | use App\Console\Command; | ||||
class Rooms extends Command | class Rooms extends Command | ||||
{ | { | ||||
/** | /** | ||||
* The name and signature of the console command. | * The name and signature of the console command. | ||||
* | * | ||||
* @var string | * @var string | ||||
*/ | */ | ||||
protected $signature = 'openvidu:rooms'; | protected $signature = 'meet:rooms'; | ||||
/** | /** | ||||
* The console command description. | * The console command description. | ||||
* | * | ||||
* @var string | * @var string | ||||
*/ | */ | ||||
protected $description = 'List OpenVidu rooms'; | protected $description = 'List Meet rooms'; | ||||
/** | /** | ||||
* Execute the console command. | * Execute the console command. | ||||
* | * | ||||
* @return mixed | * @return mixed | ||||
*/ | */ | ||||
public function handle() | public function handle() | ||||
{ | { | ||||
$rooms = \App\OpenVidu\Room::all(); | $rooms = \App\Meet\Room::all(); | ||||
foreach ($rooms as $room) { | foreach ($rooms as $room) { | ||||
$this->info("{$room->name}"); | $this->info("{$room->name}"); | ||||
} | } | ||||
} | } | ||||
} | } |