original_string: protected function createDefaultUser()
      {
          // Get the user configuration data.
          $config = $this->user;
  
          // Create default permission.
          $this->permissionRepository->create([
            'name' => 'Administrator (Full Access)',
            'slug' => 'admin',
          ], false);
  
          // Create default role.
          $this->roleRepository->create([
            'name' => 'Registered',
            'slug' => 'registered',
          ], false);
  
          // Create the admin role.
          $role = $this->roleRepository->create([
            'name'        => 'Administrator',
            'slug'        => 'administrator',
            'permissions' => [
              'admin' => true,
            ],
          ], false);
  
          // Create the user.
          $user = $this->authRepository->registerAndActivate([
            'email'      => array_get($config, 'email'),
            'first_name' => array_get($config, 'first'),
            'last_name'  => array_get($config, 'last'),
            'password'   => array_get($config, 'pass'),
            'role'       => 'administrator',
          ], false);
  
          // Attach user to admin role.
          $role->users()
               ->attach($user);
      }
code: protected function createDefaultUser()
      {
          // Get the user configuration data.
          $config = $this->user;
  
          // Create default permission.
          $this->permissionRepository->create([
            'name' => 'Administrator (Full Access)',
            'slug' => 'admin',
          ], false);
  
          // Create default role.
          $this->roleRepository->create([
            'name' => 'Registered',
            'slug' => 'registered',
          ], false);
  
          // Create the admin role.
          $role = $this->roleRepository->create([
            'name'        => 'Administrator',
            'slug'        => 'administrator',
            'permissions' => [
              'admin' => true,
            ],
          ], false);
  
          // Create the user.
          $user = $this->authRepository->registerAndActivate([
            'email'      => array_get($config, 'email'),
            'first_name' => array_get($config, 'first'),
            'last_name'  => array_get($config, 'last'),
            'password'   => array_get($config, 'pass'),
            'role'       => 'administrator',
          ], false);
  
          // Attach user to admin role.
          $role->users()
               ->attach($user);
      }
code_tokens: protected function createDefaultUser ( ) { // Get the user configuration data. $ config = $ this -> user ; // Create default permission. $ this -> permissionRepository -> create ( [ 'name' => 'Administrator (Full Access)' , 'slug' => 'admin' , ] , false ) ; // Create default role. $ this -> roleRepository -> create ( [ 'name' => 'Registered' , 'slug' => 'registered' , ] , false ) ; // Create the admin role. $ role = $ this -> roleRepository -> create ( [ 'name' => 'Administrator' , 'slug' => 'administrator' , 'permissions' => [ 'admin' => true , ] , ] , false ) ; // Create the user. $ user = $ this -> authRepository -> registerAndActivate ( [ 'email' => array_get ( $ config , 'email' ) , 'first_name' => array_get ( $ config , 'first' ) , 'last_name' => array_get ( $ config , 'last' ) , 'password' => array_get ( $ config , 'pass' ) , 'role' => 'administrator' , ] , false ) ; // Attach user to admin role. $ role -> users ( ) -> attach ( $ user ) ; }
docstring: Create default Group and User
  
  @return void
docstring_tokens: Create default Group and User