refbytes/laravel-outseta

Integrate Outseta registration, login, and internal user creation with Laravel.

v1.0.2 2025-04-25 01:04 UTC

README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This Laravel package integrates Outseta registration, login, and internal user creation with Laravel. It also includes a webhook configuration for receiving Outseta events.

Intro to Outseta for Laravel

Note

If you don't already have an account, you can register for a an Outseta account. This is an affiliate link that helps me keep the lights on.

Usage

In order to use this package, you'll need to have an Outseta account. Once you account is created, you can follow these steps to get started. A full integration guide is provided in the wiki.

Outseta Account

Copy the subdomain portion of your Outseta URL to OUTSETA_SUBDOMAIN in your .env file. The subdomain can be copied from your browser's address bar. It can also be viewed and changed by going to Settings -> General -> Outseta URL.

Installation

You can install the package via composer:

composer require refbytes/laravel-outseta

The included migrations create an accounts table and adds an account_id column to your users table. If you need to customize the models used by this package you can specify them in the config file using .env keys.

You can publish and run the migrations with:

php artisan vendor:publish --tag="outseta-migrations"
php artisan migrate

In order to integrate the Outseta Authentication, you need to add the Quick Start script to the header of every page. You can do this be adding the included component to the <head> section of your layouts.

<x-outseta-quick-start-script />

There are a few configuration options that are required to be set up in your .env file and several optional settings depending on your app:

OUTSETA_SUBDOMAIN=
OUTSETA_PUBLIC_KEY=
OUTSETA_WEBHOOK_KEY= 

OUTSETA_REDIRECT_AFTER_LOGIN= # default is /dashboard
OUTSETA_REDIRECT_IF_NOT_SUBSCRIBED= # default is /

If you choose to, you can publish the config file with:

php artisan vendor:publish --tag="outseta-config"

Features

  • Registration
  • Authentication
  • Subscription Checking
  • Webhooks with Events
  • Update Addon Usage
  • Track Custom Activity

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

License

The MIT License (MIT). Please see License File for more information.