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

[Bug] Subscriber error when the type of id not int #8

Open
bahramzade opened this issue Sep 25, 2024 · 4 comments
Open

[Bug] Subscriber error when the type of id not int #8

bahramzade opened this issue Sep 25, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@bahramzade
Copy link

Screenshot 2024-09-26 at 00 07 11

why this error?

i am for admin use Users table
for subs use Restraunt table.

inside model use HasPlanSubscriptions; +

        ->tenantBillingProvider(new FilamentSubscriptionsProvider())
            ->requiresTenantSubscription()

in appservice provider

```

FilamentSubscriptions::register(
\TomatoPHP\FilamentSubscriptions\Services\Contracts\Subscriber::make(\App\Models\Restraunt::class)
->name('Restraunt')
->model(\App\Models\Restraunt::class)
);

Copy link

linear bot commented Sep 25, 2024

TOT-91 error

@3x1io 3x1io added the bug Something isn't working label Sep 26, 2024
@3x1io
Copy link
Member

3x1io commented Sep 29, 2024

hi @bahramzade do you use string id for this table?

@3x1io 3x1io changed the title error [Bug] Subscriber error when the type of id not int Sep 29, 2024
@bahramzade
Copy link
Author

hi @bahramzade do you use string id for this table?

i am use uuid in my project

@galliroberto
Copy link

change migration
$table->uuidMorphs('subscriber');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants