| 12345678910111213141516171819202122232425262728 |
- <?php
- namespace App\Models;
- class RoomUser extends BaseModel
- {
- protected $table = 'room_users';
- protected $fillable = ['room_id', 'member_id', 'game_id', 'status', 'score', 'screenshot', 'game_id', 'first_name'];
- public function room()
- {
- return $this->belongsTo(Room::class, 'room_id', 'room_id');
- }
- protected function getBrokerageAttribute($value)
- {
- return floatval($value);
- }
- protected function getScoreAttribute($value)
- {
- return floatval($value);
- }
- protected function getRealScoreAttribute($value)
- {
- return floatval($value);
- }
- }
|