Skip to content

Commit 06060b2

Browse files
committed
chore: Initial refactor
1 parent ccdb154 commit 06060b2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+460
-3501
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.Ulysses-*
2-
2+
.OLD
3+
.LESS_OLD

README.md

Whitespace-only changes.

auth-service-override.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

bud.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
## Introduction
2+
3+
Bud is an addon for Sprout that builds upon the core [service override](service-overrides) functionality, to allow for
4+
tenant-specific configurations.
5+
It allows tenants to have their own;
6+
7+
- Auth Providers
8+
- Broadcasting Connections
9+
- Cache Stores
10+
- Database Connections
11+
- Filesystem Disks
12+
- Logging Channels
13+
- Mailers
14+
- Queue Connections
15+
16+
It works by [encrypting](https://laravel.com/docs/11.x/encryption) the tenants config, and storing it a config store.
17+
Config stores are similar to cache stores, except they store based on the following values:
18+
19+
- Tenancy Name
20+
- Tenant ID
21+
- Service Name
22+
- Type Name (Connection name, cache store name, etc)
23+
24+
It comes out of the box with support for using the filesystem, and the database as a cache store, but is easily
25+
extendable to support things like the AWS secret manager.
26+
27+
> [!CALLOUT]
28+
> Bud is currently under development, but you can keep track of the development using either the
29+
> [project board](https://github.com/orgs/sprout-laravel/projects/3/views/2?pane=issue&itemId=85872053&issue=sprout-laravel%7Cbud%7C1)
30+
> or the [GitHub repository](https://github.com/sprout-laravel/bud).

cache-service-override.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

config.php

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?php
2+
3+
return [
4+
'entry' => 'installation',
5+
6+
'menu' => [
7+
'Getting Started' => [
8+
'Installation' => 'installation',
9+
'Configuration' => 'configuration',
10+
],
11+
12+
'Core Concepts' => [
13+
'Tenants' => 'tenants',
14+
'Tenant Resolution' => 'tenant-resolution',
15+
'Service Overrides' => 'service-overrides',
16+
'Eloquent' => 'eloquent',
17+
],
18+
19+
'Advanced' => [
20+
'Tenant Providers' => 'tenant-providers',
21+
'Identity Resolvers' => 'identity-resolvers',
22+
'Tenancies' => 'tenancies',
23+
'Exceptions' => 'exceptions',
24+
'Context' => 'context',
25+
],
26+
27+
'Addons' => [
28+
'Bud' => 'bud',
29+
'Seedling' => 'seedling',
30+
'Terra' => 'terra',
31+
],
32+
],
33+
];

0 commit comments

Comments
 (0)