laravel-mongodb icon indicating copy to clipboard operation
laravel-mongodb copied to clipboard

Laravel Broadcasting Notification with Jenssegers, Reports prepare on NULL()

Open AravindhNextbrain opened this issue 5 years ago • 2 comments

Hi

I agree the issue because of connectivity between model.

As per the jessengers package guidelines. Instead of use Illuminate\Database\Eloquent\Model; am using this use Jenssegers\Mongodb\Eloquent\Model;

But how can i overwride the Notification Model Class.

I am trying for $user->notify(SomeClass::Class($data));

AravindhNextbrain avatar Feb 14 '20 11:02 AravindhNextbrain

i discovered a package that can help you in this case https://github.com/boytunghc/laravel-mongo-notifiable

l3aro avatar May 11 '20 08:05 l3aro

A lite bit late, I've deleted the package for a while. I thought it wasn't useful. You can still use my package at Packagist: boytunghc/laravel-mongo-notifiable

alexzvn avatar Aug 17 '21 08:08 alexzvn