mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 15:54:03 +00:00
35 lines
589 B
PHP
35 lines
589 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Stancl\Tenancy\Tests\Etc;
|
|
|
|
use Illuminate\Console\Command;
|
|
use Stancl\Tenancy\Traits\TenantAwareCommand;
|
|
|
|
class AddUserCommand extends Command
|
|
{
|
|
use TenantAwareCommand;
|
|
|
|
/**
|
|
* The name and signature of the console command.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $signature = 'user:add';
|
|
|
|
/**
|
|
* Execute the console command.
|
|
*
|
|
* @return mixed
|
|
*/
|
|
public function handle()
|
|
{
|
|
User::create();
|
|
}
|
|
}
|
|
|
|
class User extends \Illuminate\Database\Eloquent\Model
|
|
{
|
|
protected $guarded = [];
|
|
}
|