PHPackages                             helori/laravel-saas - 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. helori/laravel-saas

ActiveLibrary[Payment Processing](/categories/payments)

helori/laravel-saas
===================

Software as a Service scaffholding for Laravel based on Vue 3, Tailwindcss and Stripe. Inspired by Laravel Jetstream and Spark.

v0.1(2y ago)121.3k1[4 issues](https://github.com/helori/laravel-saas/issues)MITVuePHP ^8.0.2

Since Jun 15Pushed 7mo ago2 watchersCompare

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

READMEChangelog (1)Dependencies (6)Versions (2)Used By (0)

laravel-saas
============

[](#laravel-saas)

Software as a Service scaffholding for Laravel based on Vue 3, Tailwindcss and Stripe. Inspired by Laravel Jetstream and Spark.

On a fresh Laravel 8 application, install the package running the following command. It will install all dependencies such as laravel/cashier, laravel/fortify, laravel/sanctum, ...

```
composer require helori/laravel-saas

```

Publish the configuration files, migrations, routes, views and assets :

```
php artisan vendor:publish --provider="Laravel\Fortify\FortifyServiceProvider"
php artisan vendor:publish --provider="Laravel\Sanctum\SanctumServiceProvider"
php artisan vendor:publish --provider="Helori\LaravelSaas\SaasServiceProvider" --force

```

Run the migrations. Laravel default migrations and the package migrations will be run :

```
php artisan migrate

```

Add Sanctum's middleware to your api middleware group within your application's app/Http/Kernel.php file:

```
'api' => [
    \Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful::class,
    ...
],

```

Modify your .env file with the following configuration :

```
SESSION_DRIVER=database
SESSION_SECURE_COOKIE=true
SAME_SITE_COOKIES=none

SESSION_DOMAIN=".my-domain.test"
SANCTUM_STATEFUL_DOMAINS="my-domain.test"

STRIPE_KEY=stripe-key
STRIPE_SECRET=stripe-secret

CASHIER_CURRENCY=eur
CASHIER_CURRENCY_LOCALE=fr_FR
CASHIER_LOGGER=stack

```

Make sure your config/session.php has the following configuration :

```
'same_site' => env('SAME_SITE_COOKIES', 'lax'),

```

Make sure your config/cors.php has the following configuration :

```
'supports_credentials' => true,

```

Update your app\\Providers\\RouteServiceProvider.php as follows :

```
public const HOME = '/app';

```

Install front-end dependencies :

```
npm i @tailwindcss/forms @tailwindcss/typography axios tailwindcss vue@next vue-router@4 @heroicons/vue numeral moment --save-dev

```

Compile your assets :

```
npm run watch

```

You can use the package seeders to seed your application with test data. To do so, edit your database/seeders/DatabaseSeeder.php like so :

```
