1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 15:54:03 +00:00
tenancy/tests/Etc/AddUserCommand.php
2020-03-20 19:47:56 +01:00

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 = [];
}