From a462b4e70e5110c00fc58175b1a68434b5afc36a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estev=C3=A3o=20Sim=C3=B5es?= Date: Sun, 18 Aug 2024 15:28:46 -0300 Subject: [PATCH] Docs: Fix wrong class path on tenancy custom billing provider Change `Filament\Billing\Contracts\Provider` to `Filament\Billing\Providers\Contracts\Provider` on the examples inside the docs referencing a custom billing provider creation. --- packages/panels/docs/11-tenancy.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/panels/docs/11-tenancy.md b/packages/panels/docs/11-tenancy.md index 563bdf71a6..49d6dd5e09 100644 --- a/packages/panels/docs/11-tenancy.md +++ b/packages/panels/docs/11-tenancy.md @@ -294,7 +294,7 @@ If you're using the `requiresTenantSubscription()` configuration method, then yo ### Writing a custom billing integration -Billing integrations are quite simple to write. You just need a class that implements the `Filament\Billing\Contracts\Provider` interface. This interface has two methods. +Billing integrations are quite simple to write. You just need a class that implements the `Filament\Billing\Providers\Contracts\Provider` interface. This interface has two methods. `getRouteAction()` is used to get the route action that should be run when the user visits the billing page. This could be a callback function, or the name of a controller, or a Livewire component - anything that works when using `Route::get()` in Laravel normally. For example, you could put in a simple redirect to your own billing page using a callback function. @@ -304,7 +304,7 @@ Here's an example billing provider that uses a callback function for the route a ```php use App\Http\Middleware\RedirectIfUserNotSubscribed; -use Filament\Billing\Contracts\Provider; +use Filament\Billing\Providers\Contracts\Provider; use Illuminate\Http\RedirectResponse; class ExampleBillingProvider implements Provider