Changeset View
Changeset View
Standalone View
Standalone View
src/app/Meet/RoomSetting.php
<?php | <?php | ||||
namespace App\Meet; | namespace App\Meet; | ||||
use Illuminate\Database\Eloquent\Model; | use Illuminate\Database\Eloquent\Model; | ||||
/** | /** | ||||
* A collection of settings for a Room. | * A collection of settings for a Room. | ||||
* | * | ||||
* @property int $id | * @property int $id | ||||
* @property int $room_id | * @property int $room_id | ||||
* @property string $key | * @property string $key | ||||
* @property string $value | * @property string $value | ||||
*/ | */ | ||||
class RoomSetting extends Model | class RoomSetting extends Model | ||||
{ | { | ||||
protected $fillable = [ | /** @var array<int, string> The attributes that are mass assignable */ | ||||
'room_id', 'key', 'value' | protected $fillable = ['room_id', 'key', 'value']; | ||||
]; | |||||
/** @var string Database table name */ | |||||
protected $table = 'openvidu_room_settings'; | protected $table = 'openvidu_room_settings'; | ||||
/** | /** | ||||
* The room to which this setting belongs. | * The room to which this setting belongs. | ||||
* | * | ||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo | ||||
*/ | */ | ||||
public function room() | public function room() | ||||
{ | { | ||||
return $this->belongsTo('\App\Meet\Room', 'room_id', 'id'); | return $this->belongsTo(Room::class); | ||||
} | } | ||||
} | } |