NotificationType::class ]; protected $fillable = [ 'type', 'content', 'customer_id' ]; /** * Polymorphic relation : Get the parent model */ public function notifiable() { return $this->morphTo(); } }