src/Commands/NewAPIUserCommand.php
public function handle()
    {
        $user_repository = $this->laravel->make('Tokenly\LaravelApiProvider\Contracts\APIUserRepositoryContract');
        $user_vars = [
            'name'     => $this->input->getArgument('name'),
            'username' => $this->input->getArgument('username'),
            'email'    => $this->input->getArgument('email'),
            'password' => $this->input->getOption('password'),

        ];
        $user_model = $user_repository->create($user_vars);
        
        // log
        EventLog::log('user.create.cli', $user_model, ['id', 'email', 'apisecretkey']);

        // show the new user
        $user = clone $user_model;
        $user['password'] = '********';
        $this->line(json_encode($user, 192));
    }
public function handle()
    {
        $user_repository = $this->laravel->make('Tokenly\LaravelApiProvider\Contracts\APIUserRepositoryContract');
        $user_vars = [
            'name'     => $this->input->getArgument('name'),
            'username' => $this->input->getArgument('username'),
            'email'    => $this->input->getArgument('email'),
            'password' => $this->input->getOption('password'),

        ];
        $user_model = $user_repository->create($user_vars);
        
        // log
        EventLog::log('user.create.cli', $user_model, ['id', 'email', 'apisecretkey']);

        // show the new user
        $user = clone $user_model;
        $user['password'] = '********';
        $this->line(json_encode($user, 192));
    }
Execute the console command.

@return mixed