This commit is contained in:
2020-12-21 17:02:11 +03:00
commit da14b86c6a
51 changed files with 7334 additions and 0 deletions

22
commands/HelloWorld.php Normal file
View 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
];
}
}