Changeset View
Changeset View
Standalone View
Standalone View
src/app/Console/Commands/OpenVidu/RoomCreate.php
Show All 31 Lines | class RoomCreate extends Command | ||||
/** | /** | ||||
* Execute the console command. | * Execute the console command. | ||||
* | * | ||||
* @return mixed | * @return mixed | ||||
*/ | */ | ||||
public function handle() | public function handle() | ||||
{ | { | ||||
$user = \App\User::where('email', $this->argument('user'))->first(); | $user = \App\User::withEnvTenant()->where('email', $this->argument('user'))->first(); | ||||
if (!$user) { | if (!$user) { | ||||
return 1; | return 1; | ||||
} | } | ||||
$roomName = $this->argument('room'); | $roomName = $this->argument('room'); | ||||
if (!preg_match('/^[a-zA-Z0-9_-]{1,16}$/', $roomName)) { | if (!preg_match('/^[a-zA-Z0-9_-]{1,16}$/', $roomName)) { | ||||
Show All 19 Lines |