joedixon / nova-translation

53 stars 17 forks source link

Fails on install #22

Open 7ammer opened 4 years ago

7ammer commented 4 years ago
>>> 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 commented 4 years ago

php v7.4.2 laravel v8.11.2