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

Support Laravel 11 #61

Open
koona-labs opened this issue Apr 8, 2024 · 0 comments
Open

Support Laravel 11 #61

koona-labs opened this issue Apr 8, 2024 · 0 comments

Comments

@koona-labs
Copy link

Hey there,

thank you very much for this great package.

Unfortunately there are version conflicts when trying to install the package in Laravel 11.

Steps to reproduce

  1. Install current Laravel version (in my case 11.2.0)
  2. run composer require rinvex/laravel-tenants

The following error message shows up

Composer could not detect the root package (laravel/laravel) version, defaulting to '1.0.0'. See https://getcomposer.org/root-version
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Nothing to install, update or remove
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi

   Error

  Call to undefined method Rinvex\Tenants\Providers\TenantsServiceProvider::publishesConfig()

  at vendor/rinvex/laravel-tenants/src/Providers/TenantsServiceProvider.php:56
     52▕      */
     53▕     public function boot()
     54▕     {
     55▕         // Publish Resources
  ➜  56▕         $this->publishesConfig('rinvex/laravel-tenants');
     57▕         $this->publishesMigrations('rinvex/laravel-tenants');
     58▕         ! $this->autoloadMigrations('rinvex/laravel-tenants') || $this->loadMigrationsFrom(__DIR__.'/../../database/migrations');
     59▕
     60▕         // Resolve active tenant

      +7 vendor frames

  8   [internal]:0
      Illuminate\Foundation\Application::Illuminate\Foundation\{closure}()
      +6 vendor frames

  15  artisan:13
      Illuminate\Foundation\Application::handleCommand()

Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1

When laravel/framework version 11 is installed, rinvex/laravel-tenants:8.1.0 instead of rinvex/laravel-tenants:8.1.2 is pulled in. This is apparently because rinvex/laravel-tenants:8.1.2 has symfony/console:^6.2.0 as dependency which seems to conflict with the requirements for Laravel 11.

A fix would be highly appreciated.

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