Multidomain.

This commit is contained in:
floppydiskette 2024-06-19 15:22:29 +01:00
parent 8f02ed0a76
commit 56db90d3a3
Signed by: fwoppydwisk
SSH key fingerprint: SHA256:Hqn452XQ1ETzUt/FthJu6+OFkS4NBxCv5VQSEvuk7CE
21 changed files with 147 additions and 2 deletions

View file

@ -11,7 +11,7 @@
|
*/
$app = new Illuminate\Foundation\Application(
$app = new Gecche\Multidomain\Foundation\Application(
$_ENV['APP_BASE_PATH'] ?? dirname(__DIR__)
);

View file

@ -7,6 +7,7 @@
"require": {
"php": "^8.1",
"auth0/login": "^7.8",
"gecche/laravel-multidomain": "^10.2",
"guzzlehttp/guzzle": "^7.2",
"laravel/framework": "^10.10",
"laravel/tinker": "^2.8",

67
composer.lock generated
View file

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "28176864af13fa0e06f1784e6e64e791",
"content-hash": "e89c848f344e4001ca7970a0888b5443",
"packages": [
{
"name": "auth0/auth0-php",
@ -939,6 +939,71 @@
],
"time": "2023-10-12T05:21:21+00:00"
},
{
"name": "gecche/laravel-multidomain",
"version": "v10.2",
"source": {
"type": "git",
"url": "https://github.com/gecche/laravel-multidomain.git",
"reference": "10fda309991bf58eeed0696103f12d071ada399f"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/gecche/laravel-multidomain/zipball/10fda309991bf58eeed0696103f12d071ada399f",
"reference": "10fda309991bf58eeed0696103f12d071ada399f",
"shasum": ""
},
"require": {
"laravel/framework": "^10.0"
},
"require-dev": {
"diablomedia/phpunit-pretty-printer": "^5.0",
"mockery/mockery": "^1.5.1",
"orchestra/testbench": "^8.0",
"orchestra/testbench-browser-kit": "^8.0",
"phpunit/phpunit": "^9.6.0 || ^10.0.7"
},
"type": "library",
"extra": {
"laravel": {
"providers": [
"Gecche\\Multidomain\\Foundation\\Providers\\DomainConsoleServiceProvider"
]
}
},
"autoload": {
"files": [
"src/Foundation/helpers.php"
],
"psr-4": {
"Gecche\\Multidomain\\": "src/"
},
"classmap": []
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Giacomo Terreni",
"email": "giacomo.terreni@gmail.com"
}
],
"description": "Laravel App on a subdomains, multi-tenancy setting",
"keywords": [
"laravel",
"multi-tenants",
"multidomain",
"multitenancy",
"subdomains"
],
"support": {
"issues": "https://github.com/gecche/laravel-multidomain/issues",
"source": "https://github.com/gecche/laravel-multidomain/tree/v10.2"
},
"time": "2024-02-20T09:54:57+00:00"
},
{
"name": "graham-campbell/result-type",
"version": "v1.1.2",

View file

@ -26,6 +26,8 @@
App\Providers\AuthServiceProvider::class,
App\Providers\EventServiceProvider::class,
App\Providers\RouteServiceProvider::class,
])->replace([
\Illuminate\Queue\QueueServiceProvider::class => \Gecche\Multidomain\Queue\QueueServiceProvider::class,
])->toArray(),
'aliases' => Facade::defaultAliases()->merge([
])->toArray(),

27
config/domain.php Normal file
View file

@ -0,0 +1,27 @@
<?php
return [
'env_stub' => '.env',
'storage_dirs' => [
'app' => [
'public' => [
],
],
'framework' => [
'cache' => [
],
'testing' => [
],
'sessions' => [
],
'views' => [
],
],
'logs' => [
],
],
'domains' => [
'diskfloppy.me' => 'diskfloppy.me',
'dwiskfwoppy.me' => 'diskfloppy.me',
],
];

3
storage/diskfloppy_me/app/.gitignore vendored Normal file
View file

@ -0,0 +1,3 @@
*
!public/
!.gitignore

View file

@ -0,0 +1,2 @@
*
!.gitignore

View file

@ -0,0 +1,9 @@
compiled.php
config.php
down
events.scanned.php
maintenance.php
routes.php
routes.scanned.php
schedule-*
services.json

View file

@ -0,0 +1,3 @@
*
!data/
!.gitignore

View file

@ -0,0 +1,2 @@
*
!.gitignore

View file

@ -0,0 +1,2 @@
*
!.gitignore

View file

@ -0,0 +1,2 @@
*
!.gitignore

2
storage/diskfloppy_me/logs/.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
*
!.gitignore

3
storage/dwiskfwoppy_me/app/.gitignore vendored Normal file
View file

@ -0,0 +1,3 @@
*
!public/
!.gitignore

View file

@ -0,0 +1,2 @@
*
!.gitignore

View file

@ -0,0 +1,9 @@
compiled.php
config.php
down
events.scanned.php
maintenance.php
routes.php
routes.scanned.php
schedule-*
services.json

View file

@ -0,0 +1,3 @@
*
!data/
!.gitignore

View file

@ -0,0 +1,2 @@
*
!.gitignore

View file

@ -0,0 +1,2 @@
*
!.gitignore

View file

@ -0,0 +1,2 @@
*
!.gitignore

View file

@ -0,0 +1,2 @@
*
!.gitignore