LotteryWin.php 421 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. class LotteryWin extends Model
  5. {
  6. public $timestamps = false;
  7. protected $table = 'lottery_win';
  8. protected $guarded = [];
  9. public function member()
  10. {
  11. return $this->hasOne(Member::class, 'id', 'member_id');
  12. }
  13. public function prize()
  14. {
  15. return $this->hasOne(LotteryPrize::class, 'id', 'prize_id');
  16. }
  17. }