22 lines
435 B
PHP
22 lines
435 B
PHP
<?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, $output = null)
|
|
{
|
|
$users = User::all();
|
|
|
|
return [
|
|
'status' => 'success',
|
|
'users' => $users
|
|
];
|
|
}
|
|
} |