17 lines
326 B
PHP
17 lines
326 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Models;
|
||
|
|
|
||
|
|
use Illuminate\Database\Eloquent\Model;
|
||
|
|
|
||
|
|
class Prizes extends Model
|
||
|
|
{
|
||
|
|
public function gain_view() {
|
||
|
|
return $this->belongsTo('App\Models\GainView', 'gain_view_id');
|
||
|
|
}
|
||
|
|
|
||
|
|
public function instant_wins() {
|
||
|
|
return $this->hasMany('App\Models\InstantWin', 'prize_id');
|
||
|
|
}
|
||
|
|
}
|