tomatophp / filament-wallet

Account Balance / Wallets Manager For FilamentPHP and Filament Account Builder
https://tomatophp.com/en/open-source/filament-wallet
MIT License
20 stars 3 forks source link

Multi-tenancy is not working #4

Closed aisuvro closed 2 months ago

aisuvro commented 3 months ago

Hi There, It is a great plugin for the single admin panel. This plugin is not working in the filament's multi-tenancy.

If I add a single line to the resource page of the plugin, it works like a charm.

protected static bool $isScopedToTenant = false;

If I extend the resource still it is not working.

<?php

namespace App\Filament\Member\Resources;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Builder;
use TomatoPHP\FilamentWallet\Filament\Resources\WalletResource as TomatoWalletResource;

class WalletResource extends TomatoWalletResource
{
    protected static bool $isScopedToTenant = false;
}
3x1io commented 2 months ago

you can extend the Resource and allow scope, and I will add it as an option to allow tenants on all tomato echo system packages.