Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117755654
UserVerify.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
940 B
Referenced Files
None
Subscribers
None
UserVerify.php
View Options
<?php
namespace
App\Console\Commands
;
use
Illuminate\Console\Command
;
class
UserVerify
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'
;
/**
* Create a new command instance.
*
* @return void
*/
public
function
__construct
()
{
parent
::
__construct
();
}
/**
* Execute the console command.
*
* @return mixed
*/
public
function
handle
()
{
$user
=
\App\User
::
where
(
'email'
,
$this
->
argument
(
'user'
))->
first
();
if
(!
$user
)
{
return
1
;
}
$this
->
info
(
"Found user: {$user->id}"
);
$job
=
new
\App\Jobs\UserVerify
(
$user
);
$job
->
handle
();
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Apr 4, 8:11 AM (1 w, 5 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
70/ca/b313d9b66423093892faa7931b1d
Default Alt Text
UserVerify.php (940 B)
Attached To
Mode
rK kolab
Attached
Detach File
Event Timeline