app/Console/Commands/User/CreateUserCommand.php
/**
     * Execute the console command.
     *
     * @return mixed
     */
Execute the console command.
@return mixed
Execute the console command . @return mixed
public function handle()
    {
        $username = $this->argument('username');
        $password = $this->argument('password');
        $user = User::create([
            'name' => $username,
            'nick' => $username,
            'password' => bcrypt($password),
        ]);
        $this->info("user id: {$user->id}");
    }
public function handle ( ) { $ username = $ this -> argument ( 'username' ) ; $ password = $ this -> argument ( 'password' ) ; $ user = User :: create ( [ 'name' => $ username , 'nick' => $ username , 'password' => bcrypt ( $ password ) , ] ) ; $ this -> info ( " user id:  { $ user -> id } " ) ; }
Execute the console command.
Execute the console command .