laravel-translation-manager: Unsupported operand types

I’m getting the following error when I try to go to /translations:

exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Unsupported operand types' in vendor/barryvdh/laravel-translation-manager/src/Controller.php:31.

I’ve done everything like the manual shows. I’m using Laravel v5.1.45.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 15 (5 by maintainers)

Most upvoted comments

I had the same issue. $groups is a string and therefore cannot be concatenated with the array. Cause: the result of ->pluck() has been changed from 5.1 to 5.2 😦 . If you change line 27 from $groups = $groups->pluck('group', 'group'); to $groups = $groups->lists('group', 'group'); This part works properly again in 5.1

I’m getting the same error exception whit the dev version you suggested.