Open alexaderramos opened 3 years ago
Same issue can somebody help?
@alexaderramos @janakparmar9491 This package installs cleanly in fresh Laravel 8. If you've recently upgraded to Laravel 8, first remove the package using composer remove joedixon/laravel-translation
, then run php artisan optimize:clear
.
After this, the package installed successfully for me.
in vendor\joedixon\laravel-translation\routes Add : use Illuminate\Support\Facades\Route; then run :composer require joedixon/laravel-translation
During installation the following problem occurred
`.... Generating optimized autoload files
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▕
11 [internal]:0 Illuminate\Foundation\Application::Illuminate\Foundation{closure}()
17 artisan:37 Illuminate\Foundation\Console\Kernel::handle() 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.
`