2020-10-21 15:26:21 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
|
|
|
|
|
class Prizes extends Model
|
|
|
|
|
{
|
2021-08-18 17:08:02 +02:00
|
|
|
public function gain_view()
|
|
|
|
|
{
|
2020-10-21 15:26:21 +02:00
|
|
|
return $this->belongsTo('App\Models\GainView', 'gain_view_id');
|
|
|
|
|
}
|
|
|
|
|
|
2021-08-18 17:08:02 +02:00
|
|
|
public function instant_wins()
|
|
|
|
|
{
|
2020-10-21 15:26:21 +02:00
|
|
|
return $this->hasMany('App\Models\InstantWin', 'prize_id');
|
|
|
|
|
}
|
|
|
|
|
}
|