mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-28 17:01:16 +00:00
18 lines
467 B
PHP
18 lines
467 B
PHP
<?php
|
|
|
|
use App\Models\User;
|
|
use Jrean\UserVerification\Facades\UserVerification;
|
|
|
|
require_once dirname(__DIR__, 2).DIRECTORY_SEPARATOR.'bootstrap/autoload.php';
|
|
|
|
if (isset($argv[1]) && is_numeric($argv[1])) {
|
|
$user = User::find($argv[1]);
|
|
UserVerification::generate($user);
|
|
|
|
UserVerification::send($user, 'User email verification required');
|
|
|
|
cli()->info('Email has been sent');
|
|
} else {
|
|
cli()->error('You need to provide user id as argument');
|
|
}
|