Skip to content

Support Laravel 11 #61

Open
Open
@koona-labs

Description

@koona-labs

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions