spatie/laravel-settings

Unable to use package in tenancy mode

lucabecchetti opened this issue · 0 comments

hi guys... i'm using this wonderfull package with spatie settings, but it always try to load settings from central datasse, i create a new model class that extend spatie settings model:

<?php

namespace App\Models;
use Spatie\LaravelSettings\Models\SettingsProperty as BaseSettingsProperty;
use Stancl\Tenancy\Database\Concerns\TenantConnection;

class TenantSettingsProperty extends BaseSettingsProperty
{
    use TenantConnection;
}

But i get: Database connection [tenant] not configured

Can someone help me please?