🗾Defining plans

Cashierstream is written on top of Cashier Register, a complete plan and usage quota manager for your Laravel application.

The plans defined will be available for your users through the UI portal. You can follow the Cashier Register examples and leverage the true power of billing.

use RenokiCo\CashierRegister\CashierRegisterServiceProvider as BaseServiceProvider;
use RenokiCo\CashierRegister\Saas;

class CashierRegisterServiceProvider extends BaseServiceProvider
{
    /**
     * Boot the service provider.
     *
     * @return void
     */
    public function boot()
    {
        parent::boot();

        Saas::plan('Gold Plan', 'price_xxx')
            ->monthly(30)
            ->features([
                Saas::feature('Seats', 'seats', 5)->notResettable(),
                Saas::feature('Projects', 'projects')->unlimited()->notResettable(),
            ]);
    }
}

Last updated