Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2485232
VerifyCommand.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
845 B
Referenced Files
None
Subscribers
None
VerifyCommand.php
View Options
<?php
namespace
App\Console\Commands\User
;
use
App\Console\Command
;
class
VerifyCommand
extends
Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected
$signature
=
'user:verify {user}'
;
/**
* The console command description.
*
* @var string
*/
protected
$description
=
'Verify the state of a user account'
;
/**
* Execute the console command.
*
* @return mixed
*/
public
function
handle
()
{
$user
=
$this
->
getUser
(
$this
->
argument
(
'user'
));
if
(!
$user
)
{
$this
->
error
(
"User not found."
);
return
1
;
}
$job
=
new
\App\Jobs\User\VerifyJob
(
$user
->
id
);
$job
->
handle
();
// TODO: We should check the job result and print an error on failure
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Nov 21, 7:18 AM (1 d, 16 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
387439
Default Alt Text
VerifyCommand.php (845 B)
Attached To
Mode
R2 kolab
Attached
Detach File
Event Timeline
Log In to Comment