Init
This commit is contained in:
22
commands/HelloWorld.php
Normal file
22
commands/HelloWorld.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Commands;
|
||||
|
||||
use App\Console\Commands\HRCCommand;
|
||||
use App\Console\Commands\HRCCommandInterface;
|
||||
use App\Models\User;
|
||||
|
||||
class HelloWorld extends HRCCommand implements HRCCommandInterface
|
||||
{
|
||||
protected $signature = 'gethello';
|
||||
|
||||
public function command($input)
|
||||
{
|
||||
$users = User::all();
|
||||
|
||||
return [
|
||||
'status' => 'success',
|
||||
'users' => $users
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user