<?php namespace App; use Illuminate\Database\Eloquent\Model; class Notification extends Model { protected $guarded = ['id','created_at','updated_at']; public function notification_roles() { return $this->hasMany(NotificationRole::class); } public function notification_users() { return $this->hasMany(NotificationUser::class)->with('user'); } }