Meeting.php 411 B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. class Meeting extends Model
  5. {
  6. protected $table = "meeting";
  7. //
  8. protected $dates = [
  9. 'strangerDob'
  10. ];
  11. public function lobby()
  12. {
  13. return $this->belongsTo(Lobby::class);
  14. }
  15. public function targetLobbyPro()
  16. {
  17. return $this->belongsTo(LobbyPro::class, 'target_lobby_pro_id');
  18. }
  19. }