Laravel Jetstream Team Subscription

About

A straightforward interface to handle subscriptions and features consumption.

Installation

Requirements

PHP >= 8.2 and Laravel 11.x or higher

1. Clone the repository

git clone https://github.com/fftfaisal/jetstream-team-subscription.git

2. Install composer dependencies

composer install

3. Migration and seed

cp .env.example .env

Generate the application key

php artisan key:generate
php artisan migrate:fresh --seed

4. Install NPM dependencies

npm install && npm run build

5. Run the server

php artisan serve

Configuration

open the .env file and set the following variables

STRIPE_KEY=
STRIPE_SECRET=
STRIPE_WEBHOOK_SECRET=

To setup stripe plans and features, open the config/billing.php file and set the following variables

STRIPE_BASIC_MONTHLY_PLAN=
STRIPE_BASIC_YEARLY_PLAN=
STRIPE_PREMIUM_MONTHLY_PLAN=
STRIPE_PREMIUM_YEARLY_PLAN=
STRIPE_GOLD_MONTHLY_PLAN=
STRIPE_GOLD_YEARLY_PLAN=

That's it! You are ready to go.