Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating TagGroup not working #186

Closed
alinr opened this issue Apr 27, 2020 · 2 comments
Closed

Creating TagGroup not working #186

alinr opened this issue Apr 27, 2020 · 2 comments

Comments

@alinr
Copy link

alinr commented Apr 27, 2020

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
Copy link
Owner

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

@alinr
Copy link
Author

alinr commented Apr 28, 2020

Thank you, Rob!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants