33 lines
578 B
PHP
33 lines
578 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class PersonalNotification extends Model
|
|
{
|
|
protected $fillable = [
|
|
'user_id',
|
|
'sport_id',
|
|
'bookmaker_id',
|
|
'alarm_level_id',
|
|
'notify_by_system',
|
|
'notify_by_email',
|
|
];
|
|
|
|
public function sport()
|
|
{
|
|
return $this->belongsTo(Sport::class);
|
|
}
|
|
|
|
public function bookmaker()
|
|
{
|
|
return $this->belongsTo(Bookmaker::class);
|
|
}
|
|
|
|
public function alarm_level()
|
|
{
|
|
return $this->belongsTo(AlarmLevel::class);
|
|
}
|
|
}
|