Changeset View
Changeset View
Standalone View
Standalone View
src/app/Console/Commands/OpenVidu/Rooms.php
Show All 15 Lines | class Rooms extends Command | ||||
/** | /** | ||||
* The console command description. | * The console command description. | ||||
* | * | ||||
* @var string | * @var string | ||||
*/ | */ | ||||
protected $description = 'List OpenVidu rooms'; | protected $description = 'List OpenVidu rooms'; | ||||
/** | /** | ||||
* Create a new command instance. | |||||
* | |||||
* @return void | |||||
*/ | |||||
public function __construct() | |||||
{ | |||||
parent::__construct(); | |||||
} | |||||
/** | |||||
* 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\OpenVidu\Room::all(); | ||||
foreach ($rooms as $room) { | foreach ($rooms as $room) { | ||||
$this->info("{$room->name}"); | $this->info("{$room->name}"); | ||||
} | } | ||||
} | } | ||||
} | } |