---
title: "Installation — Connections for Laravel | Roundly"
description: "Install via Composer, publish and run the migration, and optionally publish the config file."
url: https://roundly-consulting.com/open-source/docs/connections-for-laravel/installation
language: en
---

[All packages](https://roundly-consulting.com/open-source.md)

[Connections for Laravel](https://roundly-consulting.com/open-source/docs/connections-for-laravel.md)

# Installation

Require the package, then publish and run the migration. The service provider is auto-discovered — no manual registration:

```bash
composer require roundly-consulting/connections-for-laravel

php artisan vendor:publish --tag="connections-migrations"
php artisan migrate
```

The migration is publish-only: the package never loads it automatically. Publishing copies a timestamped migration into database/migrations, so your app owns it and php artisan migrate runs exactly what you published. If your connectable models use UUID or ULID keys, set key\_type before you migrate — see Database schema.

The config file is optional — every key has a default. Publish it only to override:

```bash
php artisan vendor:publish --tag="connections-config"
```

The two publish tags are connections-migrations and connections-config. The provider also registers three Artisan commands — connections:prune, connections:notify-expiring and make:connectable — and contributes a section to php artisan about:

```bash
php artisan about --only=connections
```

The about section shows the model, table, default status, whether access checks are enforced, the default expiry, how many permissions a new connection starts with (a count, never the names), and whether the Gate hook, cache and events are on. A malformed default status, expiry or permission list shows as INVALID.

## Show your open-source love

This package is free and MIT-licensed. If it saves you time, a one-off donation or a Patreon membership keeps it maintained, tested and documented.

[More ways to support, including crypto](https://roundly-consulting.com/support-us.md)

By donating, you agree to our [donation terms](https://roundly-consulting.com/donation-terms.md).

[Support our open source work (opens in a new tab)](https://donate.stripe.com/dRmeVe8FX5PF1Qd9pXcEw00) [Join us on Patreon (opens in a new tab)](https://www.patreon.com/cw/roundly)

## Want this built into your product?

We integrate our packages into custom Laravel and AI builds. Tell us what you're working on and we'll reply within 48 hours.

[Get a quote in 48 hours](https://roundly-consulting.com/contact.md) [Browse all packages](https://roundly-consulting.com/open-source/docs/connections-for-laravel.md)
