PHPackages                             polarizetech/merchant - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. polarizetech/merchant

ActiveLibrary[Payment Processing](/categories/payments)

polarizetech/merchant
=====================

Marketplace payments support for Laravel (via Stripe Connect)

0.0.10(2y ago)01.2kMITPHPPHP ^8.2

Since Apr 17Pushed 2y agoCompare

[ Source](https://github.com/polarizetech/merchant)[ Packagist](https://packagist.org/packages/polarizetech/merchant)[ RSS](/packages/polarizetech-merchant/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (7)DependenciesVersions (6)Used By (0)

### Merchant

[](#merchant)

Marketplace payments support for Laravel (via Stripe Connect)

#### Installation

[](#installation)

Install package: `composer required polarize/merchant "^0.0"`

Add your stripe API credentials to your environment file (make sure Stripe Connect is enabled via the Stripe Dashboard):

```
STRIPE_KEY="..."
STRIPE_SECRET="..."

```

Publish the migration for Merchant table: `php artisan vendor:publish --tag=merchant.migrations`

Run migrations: `php artisan migrate`

#### Setup your models

[](#setup-your-models)

Relate the `Merchant` model to your `User` model (or whichever model you'd like to give merchant payment capabilities to):

```
