userRepository = $userRepository; } /** * Execute the console command. * * @return mixed */ public function handle() { $user = $this->userRepository->create([ 'name' => $this->argument('name'), 'email' => $this->argument('email'), 'password' => $this->argument('password') ]); $this->info(sprintf('A user was created with ID %s', $user->id)); } }