douglasresendemaciel/fcm-laravel-notification

Call to undefined method Illuminate\Database\Query\Builder::routeNotificationForFcm()

Closed this issue · 2 comments

Or as I understand this package doesn't support 5.5 ?

Hi, on your notifiable implement routeNotificationForFcm():

use Illuminate\Database\Eloquent\Model;
use Illuminate\Notifications\Notifiable;

class User extends Model {
    use Notifiable;

   public function routeNotificationForFcm() {
        //return a device token, either from the model or from some other place. 
        return $this->device_token;
    }

}

tks man, I will put this in the queue for the next release