ldc-gen-game-web/app/Models/InstantWin.php

26 lines
444 B
PHP
Raw Normal View History

2020-10-21 15:26:21 +02:00
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class InstantWin extends Model
{
2021-08-18 17:08:02 +02:00
2020-10-21 15:26:21 +02:00
protected $table = "instant_win";
2021-08-18 17:08:02 +02:00
2020-10-21 15:26:21 +02:00
public $timestamps = false;
2021-08-18 17:08:02 +02:00
2020-10-21 15:26:21 +02:00
protected $with = ['prize'];
2021-08-18 17:08:02 +02:00
public function prize()
{
2020-10-21 15:26:21 +02:00
return $this->belongsTo('App\Models\Prizes', 'prize_id');
}
2021-08-18 17:08:02 +02:00
public function participation()
{
return $this->hasOne('App\Models\Participation', 'instant_win_id');
}
2020-10-21 15:26:21 +02:00
}