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

Fails on install #22

Open
7ammer opened this issue Nov 10, 2020 · 1 comment
Open

Fails on install #22

7ammer opened this issue Nov 10, 2020 · 1 comment

Comments

@7ammer
Copy link

7ammer commented Nov 10, 2020

>>> composer require joedixon/nova-translation
Using version ^1.0 for joedixon/nova-translation
./composer.json has been updated
Running composer update joedixon/nova-translation
Loading composer repositories with package information
Updating dependencies
Lock file operations: 2 installs, 0 updates, 0 removals
  - Locking joedixon/laravel-translation (v1.1.2)
  - Locking joedixon/nova-translation (v1.0.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 2 installs, 0 updates, 0 removals
  - Downloading joedixon/laravel-translation (v1.1.2)
  - Downloading joedixon/nova-translation (v1.0.0)
  - Installing joedixon/laravel-translation (v1.1.2): Extracting archive
  - Installing joedixon/nova-translation (v1.0.0): Extracting archive
Package moontoast/math is abandoned, you should avoid using it. Use brick/math instead.
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi

   Error 

  Unsupported operand types

  at vendor/joedixon/laravel-translation/routes/web.php:3
      1▕ <?php
      2▕ 
  ➜   3▕ Route::group(config('translation.route_group_config') + ['namespace' => 'JoeDixon\\Translation\\Http\\Controllers'], function ($router) {
      4▕     $router->get(config('translation.ui_url'), 'LanguageController@index')
      5▕         ->name('languages.index');
      6▕ 
      7▕     $router->get(config('translation.ui_url').'/create', 'LanguageController@create')
      8▕         ->name('languages.create');
      9▕ 

      +10 vendor frames 
  11  [internal]:0
      Illuminate\Foundation\Application::Illuminate\Foundation\{closure}(Object(JoeDixon\Translation\TranslationServiceProvider))

      +5 vendor frames 
  17  artisan:37
      Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

@7ammer
Copy link
Author

7ammer commented Nov 10, 2020

php v7.4.2
laravel v8.11.2

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

1 participant