original_string: private function categories()
      {
          $package = Package::where('name', 'Core')->first();
          $core = ConfigCategory::create([
              'key' => 'core',
              'package_id' => $package->id
          ]);
          ConfigCategory::create([
              'key' => 'core_mail',
              'parent_id' => $core->id,
              'package_id' => $core->package_id
          ]);
          ConfigCategory::create([
              'key' => 'core_general',
              'parent_id' => $core->id,
              'package_id' => $core->package_id
          ]);
          $this->general();
          $this->mail();
      }
code: private function categories()
      {
          $package = Package::where('name', 'Core')->first();
          $core = ConfigCategory::create([
              'key' => 'core',
              'package_id' => $package->id
          ]);
          ConfigCategory::create([
              'key' => 'core_mail',
              'parent_id' => $core->id,
              'package_id' => $core->package_id
          ]);
          ConfigCategory::create([
              'key' => 'core_general',
              'parent_id' => $core->id,
              'package_id' => $core->package_id
          ]);
          $this->general();
          $this->mail();
      }
code_tokens: private function categories ( ) { $ package = Package :: where ( 'name' , 'Core' ) -> first ( ) ; $ core = ConfigCategory :: create ( [ 'key' => 'core' , 'package_id' => $ package -> id ] ) ; ConfigCategory :: create ( [ 'key' => 'core_mail' , 'parent_id' => $ core -> id , 'package_id' => $ core -> package_id ] ) ; ConfigCategory :: create ( [ 'key' => 'core_general' , 'parent_id' => $ core -> id , 'package_id' => $ core -> package_id ] ) ; $ this -> general ( ) ; $ this -> mail ( ) ; }
docstring: Method for creating configuration categories
  
  @return void
docstring_tokens: Method for creating configuration categories