namespace App;
use Illuminate\Notifications\Notifiable;
use App\Notifications\ResetPasswordNotification;
//Class which implements Illuminate\Contracts\Auth\Authenticatable
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Support\Facades\Event;
class User extends Authenticatable
{
use Notifiable;
public function sendPasswordResetNotification($token)
{
$this->notify(new ResetPasswordNotification($token));
}
}
I have fixed that by using facade but when i want to go to resetpassword route from mailtrap i got this error
Object not found!
The requested URL was not found on this server. If you entered the URL manually
please check your spelling and try again.
If you think this is a server error, please contact the webmaster.
public function toMail($notifiable)
{
$notifiable->email = $this->email;
$url = url('password/reset/{token}'.$this->token);
return (new MailMessage)
->line('you receiving this email because we received a password reset from
your account.')
->action('Reset Password', $url)
->line('Thank you for using our application!');
}
public function toMail($notifiable)
{
$notifiable->email = $this->email;
$url = url('password/reset/{token}'.$this->token);
return (new MailMessage)
->line('you receiving this email because we received a password reset from
your account.')
->action('Reset Password', $url)
->line('Thank you for using our application!');
}
i haven't used the mail so this is the only link which used by mailtrap is't it?
the mailtrap link is