protected function createFirstUser()
    {
        $info = [
            'first_name' => $this->askForFirstName(),
            'last_name'  => $this->askForLastName(),
            'email'      => $this->askForEmail(),
            'password'   => $this->askForPassword(),
            'created_at' => Carbon::now(),
            'updated_at' => Carbon::now(),
        ];

        $this->application->make('Modules\User\Repositories\UserRepository')->createWithRoles(
            $info,
            $this->getAdminRole()
        );

        $this->command->info('Admin account created!');
    }
protected function createFirstUser()
    {
        $info = [
            'first_name' => $this->askForFirstName(),
            'last_name'  => $this->askForLastName(),
            'email'      => $this->askForEmail(),
            'password'   => $this->askForPassword(),
            'created_at' => Carbon::now(),
            'updated_at' => Carbon::now(),
        ];

        $this->application->make('Modules\User\Repositories\UserRepository')->createWithRoles(
            $info,
            $this->getAdminRole()
        );

        $this->command->info('Admin account created!');
    }
protected function createFirstUser ( ) { $ info = [ 'first_name' => $ this -> askForFirstName ( ) , 'last_name' => $ this -> askForLastName ( ) , 'email' => $ this -> askForEmail ( ) , 'password' => $ this -> askForPassword ( ) , 'created_at' => Carbon :: now ( ) , 'updated_at' => Carbon :: now ( ) , ] ; $ this -> application -> make ( 'Modules\User\Repositories\UserRepository' ) -> createWithRoles ( $ info , $ this -> getAdminRole ( ) ) ; $ this -> command -> info ( 'Admin account created!' ) ; }
Create a first admin user.

@param $adminRoleId
Create a first admin user .