File: D:/HostingSpaces/SBogers10/kooken.komma.pro/vendor/komma/kms/src/Auth/AuthMailService.php
<?php
namespace Komma\KMS\Auth;
use Komma\KMS\Notifications\SetPassword;
use Illuminate\Contracts\Auth\Authenticatable;
use Illuminate\Support\Facades\Password;
/**
* Class AuthMailService
*
* A service responsible for sending mails about authorisation and authentication.
*
* @see OrderMailService
* @package App\Auth
*/
class AuthMailService implements AuthMailServiceInterface
{
/**
* Notify user that he needs to set a password to login
*
* @param Authenticatable $newUser
* @return null
*/
public function notifyUserToSetPassword(Authenticatable $newUser)
{
$token = Password::getRepository()->create($newUser);
$newUser->notify(new SetPassword($newUser, $token));
return null;
}
}