rtconner / laravel-tagging

Tag support for Laravel Eloquent models - Taggable Trait
MIT License
882 stars 168 forks source link

Creating TagGroup not working #186

Closed alinr closed 4 years ago

alinr commented 4 years ago

Hi,

when I try this: php artisan tagging:create-group MyTagGroup

I get this error:

ErrorException 

  Undefined variable: \Conner\Tagging\Model\TagGroup

  at vendor/rtconner/laravel-tagging/src/Console/Commands/GenerateTagGroup.php:21
    17|     public function handle()
    18|     {
    19|         $groupName = $this->argument('group');
    20| 
  > 21|         $tagGroup = new ${TaggingUtility::tagGroupModelString()};
    22|         $tagGroup->name = $groupName;
    23|         $tagGroup->slug = TaggingUtility::normalize($groupName);
    24| 
    25|         $tagGroup->save();

      +15 vendor frames 
  16  artisan:37
      Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

Any idea?

rtconner commented 4 years ago

Thank you for the report, this was a bug. It is resolved in version 4.0.2 now

alinr commented 4 years ago

Thank you, Rob!