vendredi 6 septembre 2019

Jenssegers\Mongodb\Auth\User not sending verify mails

i have tried everything with mongodb to send verification mail . but not working .

verfication send workig fine with mysql , but not with mongo. though login registration works fine in mongo ... verfication msg comes in app. but no mail in inbox

i have tried

namespace App;

use Illuminate\Notifications\Notifiable;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Jenssegers\Mongodb\Auth\User as Authenticatable;

class User extends Authenticatable
{
    use Notifiable;

    protected $fillable = [
        'name', 'email', 'password',
    ];


    protected $hidden = [
        'password', 'remember_token',
    ];

    protected $casts = [
        'email_verified_at' => 'datetime',
    ];
}

and implemented MustVerifyEmail and blank methods

public function hasVerifiedEmail(){}
public function markEmailAsVerified(){}
public function sendEmailVerificationNotification(){}

also done this

class EventServiceProvider extends ServiceProvider
{

    protected $listen = [
        Registered::class => [
            SendEmailVerificationNotification::class,
        ],
    ];

i also implemnted

namespace Jenssegers\Mongodb\Auth;
use Illuminate\Auth\Authenticatable;
use Illuminate\Auth\Passwords\CanResetPassword;
use Illuminate\Contracts\Auth\Access\Authorizable as AuthorizableContract;
use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract;
use Illuminate\Foundation\Auth\Access\Authorizable;
use Jenssegers\Mongodb\Eloquent\Model;
class User extends Model implements
    AuthenticatableContract,
    AuthorizableContract,
    CanResetPasswordContract
{
    use Authenticatable, Authorizable, CanResetPassword;
}

but none of these working .... message comes of verification mail ... but no mail in inbox

My only concern is to send verification mail with mongo .. please suggest



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire