| Total Complexity | 2 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 7 | class NotificationPreference extends Model |
||
| 8 | { |
||
| 9 | protected $table = 'notifier_preferences'; |
||
| 10 | protected $fillable = [ |
||
| 11 | 'user_id', |
||
| 12 | 'notification_event_id', |
||
| 13 | 'channels', |
||
| 14 | 'settings', |
||
| 15 | ]; |
||
| 16 | |||
| 17 | protected $casts = [ |
||
| 18 | 'channels' => 'array', |
||
| 19 | 'settings' => 'array', |
||
| 20 | ]; |
||
| 21 | |||
| 22 | public function user(): BelongsTo |
||
| 23 | { |
||
| 24 | return $this->belongsTo(config('auth.providers.users.model')); |
||
| 25 | } |
||
| 26 | |||
| 27 | public function event(): BelongsTo |
||
| 30 | } |
||
| 31 | } |
||
| 32 |