diff --git a/app/Http/Controllers/Addresses/Create.php b/app/Http/Controllers/Addrs/Create.php similarity index 83% rename from app/Http/Controllers/Addresses/Create.php rename to app/Http/Controllers/Addrs/Create.php index 404728881..57472949a 100644 --- a/app/Http/Controllers/Addresses/Create.php +++ b/app/Http/Controllers/Addrs/Create.php @@ -1,6 +1,6 @@ =7.4.0", "doctrine/dbal": "^2.8", "fideloper/proxy": "^4.2", "fruitcake/laravel-cors": "^2.0", + "genealogiawebsite/laravel-gedcom": "^2.0", "guzzlehttp/guzzle": "^7.0.1", "laravel-enso/activity-log": "^4.0", "laravel-enso/calendar": "^2.0", @@ -18,13 +20,14 @@ "laravel-enso/documents": "^4.0", "laravel-enso/excel": "^2.0", "laravel-enso/how-to": "^4.0", + "laravel-enso/multitenancy": "^2.0", "laravel-enso/pdf": "^2.0", "laravel-enso/tutorials": "^4.0", + "laravel/cashier": "^12.4", "laravel/horizon": "^5.0", "laravel/telescope": "^4.0", "laravel/tinker": "^2.0", "laravel/ui": "^3.0", - "php": ">=7.4.0", "sentry/sentry-laravel": "^1.0.0" }, "require-dev": { diff --git a/composer.lock b/composer.lock index 453f904e5..ccb08c854 100644 --- a/composer.lock +++ b/composer.lock @@ -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": "44c900aa022150f8c6a4a0b2cef34bea", + "content-hash": "e7c9bdf40abcd6a0728dd3866bc5e747", "packages": [ { "name": "asm89/stack-cors", @@ -484,6 +484,20 @@ "redis", "xcache" ], + "funding": [ + { + "url": "https://www.doctrine-project.org/sponsorship.html", + "type": "custom" + }, + { + "url": "https://www.patreon.com/phpdoctrine", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/doctrine%2Fcache", + "type": "tidelift" + } + ], "time": "2020-07-07T18:54:01+00:00" }, { @@ -759,6 +773,20 @@ "uppercase", "words" ], + "funding": [ + { + "url": "https://www.doctrine-project.org/sponsorship.html", + "type": "custom" + }, + { + "url": "https://www.patreon.com/phpdoctrine", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finflector", + "type": "tidelift" + } + ], "time": "2020-05-29T15:13:26+00:00" }, { @@ -821,8 +849,90 @@ "parser", "php" ], + "funding": [ + { + "url": "https://www.doctrine-project.org/sponsorship.html", + "type": "custom" + }, + { + "url": "https://www.patreon.com/phpdoctrine", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/doctrine%2Flexer", + "type": "tidelift" + } + ], "time": "2020-05-25T17:44:05+00:00" }, + { + "name": "dompdf/dompdf", + "version": "v0.8.6", + "source": { + "type": "git", + "url": "https://github.com/dompdf/dompdf.git", + "reference": "db91d81866c69a42dad1d2926f61515a1e3f42c5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/dompdf/dompdf/zipball/db91d81866c69a42dad1d2926f61515a1e3f42c5", + "reference": "db91d81866c69a42dad1d2926f61515a1e3f42c5", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-mbstring": "*", + "phenx/php-font-lib": "^0.5.2", + "phenx/php-svg-lib": "^0.3.3", + "php": "^7.1" + }, + "require-dev": { + "mockery/mockery": "^1.3", + "phpunit/phpunit": "^7.5", + "squizlabs/php_codesniffer": "^3.5" + }, + "suggest": { + "ext-gd": "Needed to process images", + "ext-gmagick": "Improves image processing performance", + "ext-imagick": "Improves image processing performance", + "ext-zlib": "Needed for pdf stream compression" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-develop": "0.7-dev" + } + }, + "autoload": { + "psr-4": { + "Dompdf\\": "src/" + }, + "classmap": [ + "lib/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-2.1" + ], + "authors": [ + { + "name": "Fabien Ménager", + "email": "fabien.menager@gmail.com" + }, + { + "name": "Brian Sweeney", + "email": "eclecticgeek@gmail.com" + }, + { + "name": "Gabriel Bull", + "email": "me@gabrielbull.com" + } + ], + "description": "DOMPDF is a CSS 2.1 compliant HTML to PDF converter", + "homepage": "https://github.com/dompdf/dompdf", + "time": "2020-08-30T22:54:22+00:00" + }, { "name": "dragonmantank/cron-expression", "version": "v3.0.2", @@ -1062,6 +1172,94 @@ ], "time": "2020-09-07T11:48:52+00:00" }, + { + "name": "genealogiawebsite/laravel-gedcom", + "version": "v2.0.12", + "source": { + "type": "git", + "url": "https://github.com/genealogiawebsite/laravel-gedcom.git", + "reference": "ab57094cefba54c09515508e0260390b442c656b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/genealogiawebsite/laravel-gedcom/zipball/ab57094cefba54c09515508e0260390b442c656b", + "reference": "ab57094cefba54c09515508e0260390b442c656b", + "shasum": "" + }, + "require": { + "genealogiawebsite/php-gedcom": "^1.0" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "GenealogiaWebsite\\LaravelGedcom\\ServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "GenealogiaWebsite\\LaravelGedcom\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "A package that converts gedcom files to Eloquent models", + "funding": [ + { + "url": "https://github.com/genealogiawebsite", + "type": "github" + } + ], + "time": "2020-10-09T19:50:46+00:00" + }, + { + "name": "genealogiawebsite/php-gedcom", + "version": "v1.2.3", + "source": { + "type": "git", + "url": "https://github.com/genealogiawebsite/php-gedcom.git", + "reference": "c6bc5aa3f554c048a1a34312d15d0700f7f5410e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/genealogiawebsite/php-gedcom/zipball/c6bc5aa3f554c048a1a34312d15d0700f7f5410e", + "reference": "c6bc5aa3f554c048a1a34312d15d0700f7f5410e", + "shasum": "" + }, + "require": { + "php": ">=7.3" + }, + "require-dev": { + "phpunit/phpunit": "5.7.*", + "squizlabs/php_codesniffer": "3.5.*" + }, + "type": "library", + "autoload": { + "psr-0": { + "PhpGedcom\\": "library/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "A GEDCOM file parser (read + write) for PHP 5.3+", + "homepage": "http://github.com/modularsoftware/php-gedcom", + "keywords": [ + "gedcom", + "parser" + ], + "funding": [ + { + "url": "https://opencollective.com/genealogy", + "type": "open_collective" + } + ], + "time": "2020-09-17T02:40:32+00:00" + }, { "name": "graham-campbell/result-type", "version": "v1.0.1", @@ -2481,16 +2679,16 @@ }, { "name": "laravel-enso/countries", - "version": "2.1.1", + "version": "2.1.2", "source": { "type": "git", "url": "https://github.com/laravel-enso/countries.git", - "reference": "91f0361af301f58b4424cbacaa5eb5db3b9dc66a" + "reference": "08cbf0580c24997b9400b0ee4d3864c37c566fbe" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel-enso/countries/zipball/91f0361af301f58b4424cbacaa5eb5db3b9dc66a", - "reference": "91f0361af301f58b4424cbacaa5eb5db3b9dc66a", + "url": "https://api.github.com/repos/laravel-enso/countries/zipball/08cbf0580c24997b9400b0ee4d3864c37c566fbe", + "reference": "08cbf0580c24997b9400b0ee4d3864c37c566fbe", "shasum": "" }, "require": { @@ -2514,7 +2712,8 @@ "autoload": { "psr-4": { "LaravelEnso\\Countries\\": "src/", - "LaravelEnso\\Countries\\Database\\Seeders\\": "database/seeders/" + "LaravelEnso\\Countries\\Database\\Seeders\\": "database/seeders/", + "LaravelEnso\\Countries\\Database\\Factories\\": "database/factories/" } }, "notification-url": "https://packagist.org/downloads/", @@ -2541,7 +2740,7 @@ "laravel-enso", "manager" ], - "time": "2020-10-08T11:39:04+00:00" + "time": "2020-10-15T09:11:55+00:00" }, { "name": "laravel-enso/data-export", @@ -3650,6 +3849,61 @@ ], "time": "2020-10-08T07:32:12+00:00" }, + { + "name": "laravel-enso/multitenancy", + "version": "2.0.1", + "source": { + "type": "git", + "url": "https://github.com/laravel-enso/multitenancy.git", + "reference": "1b627c3ba8d2328a9a84e689bd82931ca10be52b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel-enso/multitenancy/zipball/1b627c3ba8d2328a9a84e689bd82931ca10be52b", + "reference": "1b627c3ba8d2328a9a84e689bd82931ca10be52b", + "shasum": "" + }, + "require": { + "laravel-enso/companies": "^3.0", + "laravel-enso/core": "^5.0|^6.0", + "laravel-enso/enums": "^2.0" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "LaravelEnso\\Multitenancy\\AppServiceProvider" + ], + "aliases": [] + } + }, + "autoload": { + "psr-4": { + "LaravelEnso\\Multitenancy\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Adrian Ocneanu", + "email": "aocneanu@gmail.com", + "homepage": "https://laravel-enso.com", + "role": "Developer" + } + ], + "description": "User actions logger dependency for Laravel Enso", + "homepage": "https://github.com/laravel-enso/multitenancy", + "keywords": [ + "laravel", + "laravel-enso", + "middleware", + "multitenancy" + ], + "time": "2020-10-08T06:38:21+00:00" + }, { "name": "laravel-enso/notifications", "version": "4.0.1", @@ -4447,6 +4701,80 @@ ], "time": "2020-10-08T07:06:27+00:00" }, + { + "name": "laravel/cashier", + "version": "v12.4.1", + "source": { + "type": "git", + "url": "https://github.com/laravel/cashier-stripe.git", + "reference": "4775da2ddb76c8e04020bb2445930689f2e4ce70" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/cashier-stripe/zipball/4775da2ddb76c8e04020bb2445930689f2e4ce70", + "reference": "4775da2ddb76c8e04020bb2445930689f2e4ce70", + "shasum": "" + }, + "require": { + "dompdf/dompdf": "^0.8.0", + "ext-json": "*", + "illuminate/contracts": "^6.0|^7.0|^8.0", + "illuminate/database": "^6.0|^7.0|^8.0", + "illuminate/http": "^6.0|^7.0|^8.0", + "illuminate/log": "^6.0|^7.0|^8.0", + "illuminate/notifications": "^6.0|^7.0|^8.0", + "illuminate/routing": "^6.0|^7.0|^8.0", + "illuminate/support": "^6.0|^7.0|^8.0", + "illuminate/view": "^6.0|^7.0|^8.0", + "moneyphp/money": "^3.2", + "nesbot/carbon": "^2.0", + "php": "^7.2", + "stripe/stripe-php": "^7.39", + "symfony/http-kernel": "^4.3|^5.0", + "symfony/intl": "^4.3|^5.0" + }, + "require-dev": { + "mockery/mockery": "^1.0", + "orchestra/testbench": "^4.0|^5.0|^6.0", + "phpunit/phpunit": "^8.0|^9.0" + }, + "suggest": { + "ext-intl": "Allows for more locales besides the default \"en\" when formatting money values." + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "12.x-dev" + }, + "laravel": { + "providers": [ + "Laravel\\Cashier\\CashierServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Laravel\\Cashier\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylorotwell@gmail.com" + } + ], + "description": "Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.", + "keywords": [ + "billing", + "laravel", + "stripe" + ], + "time": "2020-10-06T15:16:45+00:00" + }, { "name": "laravel/framework", "version": "v8.10.0", @@ -5275,6 +5603,88 @@ ], "time": "2019-09-18T18:44:20+00:00" }, + { + "name": "moneyphp/money", + "version": "v3.3.1", + "source": { + "type": "git", + "url": "https://github.com/moneyphp/money.git", + "reference": "122664c2621a95180a13c1ac81fea1d2ef20781e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/moneyphp/money/zipball/122664c2621a95180a13c1ac81fea1d2ef20781e", + "reference": "122664c2621a95180a13c1ac81fea1d2ef20781e", + "shasum": "" + }, + "require": { + "ext-json": "*", + "php": ">=5.6" + }, + "require-dev": { + "cache/taggable-cache": "^0.4.0", + "doctrine/instantiator": "^1.0.5", + "ext-bcmath": "*", + "ext-gmp": "*", + "ext-intl": "*", + "florianv/exchanger": "^1.0", + "florianv/swap": "^3.0", + "friends-of-phpspec/phpspec-code-coverage": "^3.1.1 || ^4.3", + "moneyphp/iso-currencies": "^3.2.1", + "php-http/message": "^1.4", + "php-http/mock-client": "^1.0.0", + "phpspec/phpspec": "^3.4.3", + "phpunit/phpunit": "^5.7.27 || ^6.5.14 || ^7.5.18 || ^8.5", + "psr/cache": "^1.0", + "symfony/phpunit-bridge": "^4" + }, + "suggest": { + "ext-bcmath": "Calculate without integer limits", + "ext-gmp": "Calculate without integer limits", + "ext-intl": "Format Money objects with intl", + "florianv/exchanger": "Exchange rates library for PHP", + "florianv/swap": "Exchange rates library for PHP", + "psr/cache-implementation": "Used for Currency caching" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Money\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Mathias Verraes", + "email": "mathias@verraes.net", + "homepage": "http://verraes.net" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com" + }, + { + "name": "Frederik Bosch", + "email": "f.bosch@genkgo.nl" + } + ], + "description": "PHP implementation of Fowler's Money pattern", + "homepage": "http://moneyphp.org", + "keywords": [ + "Value Object", + "money", + "vo" + ], + "time": "2020-03-18T17:49:59+00:00" + }, { "name": "monolog/monolog", "version": "2.1.1", @@ -5570,20 +5980,20 @@ }, { "name": "paragonie/random_compat", - "version": "v9.99.99", + "version": "v9.99.100", "source": { "type": "git", "url": "https://github.com/paragonie/random_compat.git", - "reference": "84b4dfb120c6f9b4ff7b3685f9b8f1aa365a0c95" + "reference": "996434e5492cb4c3edcb9168db6fbb1359ef965a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/paragonie/random_compat/zipball/84b4dfb120c6f9b4ff7b3685f9b8f1aa365a0c95", - "reference": "84b4dfb120c6f9b4ff7b3685f9b8f1aa365a0c95", + "url": "https://api.github.com/repos/paragonie/random_compat/zipball/996434e5492cb4c3edcb9168db6fbb1359ef965a", + "reference": "996434e5492cb4c3edcb9168db6fbb1359ef965a", "shasum": "" }, "require": { - "php": "^7" + "php": ">= 7" }, "require-dev": { "phpunit/phpunit": "4.*|5.*", @@ -5611,7 +6021,7 @@ "pseudorandom", "random" ], - "time": "2018-07-02T15:55:56+00:00" + "time": "2020-10-15T08:29:30+00:00" }, { "name": "paragonie/sodium_compat", @@ -5693,7 +6103,84 @@ "secret-key cryptography", "side-channel resistant" ], - "time": "2020-03-20T21:48:09+00:00" + "time": "2020-03-20T21:48:09+00:00" + }, + { + "name": "phenx/php-font-lib", + "version": "0.5.2", + "source": { + "type": "git", + "url": "https://github.com/PhenX/php-font-lib.git", + "reference": "ca6ad461f032145fff5971b5985e5af9e7fa88d8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/PhenX/php-font-lib/zipball/ca6ad461f032145fff5971b5985e5af9e7fa88d8", + "reference": "ca6ad461f032145fff5971b5985e5af9e7fa88d8", + "shasum": "" + }, + "require-dev": { + "phpunit/phpunit": "^4.8.35 || ^5 || ^6 || ^7" + }, + "type": "library", + "autoload": { + "psr-4": { + "FontLib\\": "src/FontLib" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-3.0" + ], + "authors": [ + { + "name": "Fabien Ménager", + "email": "fabien.menager@gmail.com" + } + ], + "description": "A library to read, parse, export and make subsets of different types of font files.", + "homepage": "https://github.com/PhenX/php-font-lib", + "time": "2020-03-08T15:31:32+00:00" + }, + { + "name": "phenx/php-svg-lib", + "version": "v0.3.3", + "source": { + "type": "git", + "url": "https://github.com/PhenX/php-svg-lib.git", + "reference": "5fa61b65e612ce1ae15f69b3d223cb14ecc60e32" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/PhenX/php-svg-lib/zipball/5fa61b65e612ce1ae15f69b3d223cb14ecc60e32", + "reference": "5fa61b65e612ce1ae15f69b3d223cb14ecc60e32", + "shasum": "" + }, + "require": { + "sabberworm/php-css-parser": "^8.3" + }, + "require-dev": { + "phpunit/phpunit": "^5.5|^6.5" + }, + "type": "library", + "autoload": { + "psr-4": { + "Svg\\": "src/Svg" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-3.0" + ], + "authors": [ + { + "name": "Fabien Ménager", + "email": "fabien.menager@gmail.com" + } + ], + "description": "A library to read, parse and export to PDF SVG files.", + "homepage": "https://github.com/PhenX/php-svg-lib", + "time": "2019-09-11T20:02:13+00:00" }, { "name": "php-http/client-common", @@ -6793,6 +7280,51 @@ ], "time": "2020-08-18T17:17:46+00:00" }, + { + "name": "sabberworm/php-css-parser", + "version": "8.3.1", + "source": { + "type": "git", + "url": "https://github.com/sabberworm/PHP-CSS-Parser.git", + "reference": "d217848e1396ef962fb1997cf3e2421acba7f796" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sabberworm/PHP-CSS-Parser/zipball/d217848e1396ef962fb1997cf3e2421acba7f796", + "reference": "d217848e1396ef962fb1997cf3e2421acba7f796", + "shasum": "" + }, + "require": { + "php": ">=5.3.2" + }, + "require-dev": { + "codacy/coverage": "^1.4", + "phpunit/phpunit": "~4.8" + }, + "type": "library", + "autoload": { + "psr-0": { + "Sabberworm\\CSS": "lib/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Raphael Schweikert" + } + ], + "description": "Parser for CSS Files written in PHP", + "homepage": "http://www.sabberworm.com/blog/2010/6/10/php-css-parser", + "keywords": [ + "css", + "parser", + "stylesheet" + ], + "time": "2020-06-01T09:10:00+00:00" + }, { "name": "sentry/sdk", "version": "2.2.0", @@ -7138,6 +7670,63 @@ ], "time": "2020-09-08T19:46:59+00:00" }, + { + "name": "stripe/stripe-php", + "version": "v7.60.0", + "source": { + "type": "git", + "url": "https://github.com/stripe/stripe-php.git", + "reference": "4015ff20a6838a04b663e20724f2fc4f3943f630" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/stripe/stripe-php/zipball/4015ff20a6838a04b663e20724f2fc4f3943f630", + "reference": "4015ff20a6838a04b663e20724f2fc4f3943f630", + "shasum": "" + }, + "require": { + "ext-curl": "*", + "ext-json": "*", + "ext-mbstring": "*", + "php": ">=5.6.0" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "2.16.1", + "php-coveralls/php-coveralls": "^2.1", + "phpunit/phpunit": "^5.7", + "squizlabs/php_codesniffer": "^3.3", + "symfony/process": "~3.4" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0-dev" + } + }, + "autoload": { + "psr-4": { + "Stripe\\": "lib/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Stripe and contributors", + "homepage": "https://github.com/stripe/stripe-php/contributors" + } + ], + "description": "Stripe PHP Library", + "homepage": "https://stripe.com/", + "keywords": [ + "api", + "payment processing", + "stripe" + ], + "time": "2020-10-15T19:29:35+00:00" + }, { "name": "swiftmailer/swiftmailer", "version": "v6.2.3", @@ -7809,16 +8398,16 @@ }, { "name": "symfony/http-client-contracts", - "version": "v2.2.0", + "version": "v2.3.1", "source": { "type": "git", "url": "https://github.com/symfony/http-client-contracts.git", - "reference": "3a5d0fe7908daaa23e3dbf4cee3ba4bfbb19fdd3" + "reference": "41db680a15018f9c1d4b23516059633ce280ca33" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-client-contracts/zipball/3a5d0fe7908daaa23e3dbf4cee3ba4bfbb19fdd3", - "reference": "3a5d0fe7908daaa23e3dbf4cee3ba4bfbb19fdd3", + "url": "https://api.github.com/repos/symfony/http-client-contracts/zipball/41db680a15018f9c1d4b23516059633ce280ca33", + "reference": "41db680a15018f9c1d4b23516059633ce280ca33", "shasum": "" }, "require": { @@ -7829,8 +8418,9 @@ }, "type": "library", "extra": { + "branch-version": "2.3", "branch-alias": { - "dev-master": "2.2-dev" + "dev-main": "2.3-dev" }, "thanks": { "name": "symfony/contracts", @@ -7880,7 +8470,7 @@ "type": "tidelift" } ], - "time": "2020-09-07T11:33:47+00:00" + "time": "2020-10-14T17:08:19+00:00" }, { "name": "symfony/http-foundation", @@ -8071,6 +8661,96 @@ ], "time": "2020-10-04T07:57:28+00:00" }, + { + "name": "symfony/intl", + "version": "v5.1.7", + "source": { + "type": "git", + "url": "https://github.com/symfony/intl.git", + "reference": "9381fd69ce6407041185aa6f1bafbf7d65f0e66a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/intl/zipball/9381fd69ce6407041185aa6f1bafbf7d65f0e66a", + "reference": "9381fd69ce6407041185aa6f1bafbf7d65f0e66a", + "shasum": "" + }, + "require": { + "php": ">=7.2.5", + "symfony/polyfill-intl-icu": "~1.0", + "symfony/polyfill-php80": "^1.15" + }, + "require-dev": { + "symfony/filesystem": "^4.4|^5.0" + }, + "suggest": { + "ext-intl": "to use the component with locales other than \"en\"" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.1-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Component\\Intl\\": "" + }, + "classmap": [ + "Resources/stubs" + ], + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Bernhard Schussek", + "email": "bschussek@gmail.com" + }, + { + "name": "Eriksen Costa", + "email": "eriksen.costa@infranology.com.br" + }, + { + "name": "Igor Wiedler", + "email": "igor@wiedler.ch" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "A PHP replacement layer for the C intl extension that includes additional data from the ICU library.", + "homepage": "https://symfony.com", + "keywords": [ + "i18n", + "icu", + "internationalization", + "intl", + "l10n", + "localization" + ], + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2020-09-27T03:44:28+00:00" + }, { "name": "symfony/mime", "version": "v5.1.7", @@ -8449,6 +9129,82 @@ ], "time": "2020-07-14T12:35:20+00:00" }, + { + "name": "symfony/polyfill-intl-icu", + "version": "v1.18.1", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-intl-icu.git", + "reference": "4e45a6e39041a9cc78835b11abc47874ae302a55" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-intl-icu/zipball/4e45a6e39041a9cc78835b11abc47874ae302a55", + "reference": "4e45a6e39041a9cc78835b11abc47874ae302a55", + "shasum": "" + }, + "require": { + "php": ">=5.3.3", + "symfony/intl": "~2.3|~3.0|~4.0|~5.0" + }, + "suggest": { + "ext-intl": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.18-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for intl's ICU-related data and classes", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "icu", + "intl", + "polyfill", + "portable", + "shim" + ], + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2020-07-14T12:35:20+00:00" + }, { "name": "symfony/polyfill-intl-idn", "version": "v1.18.1", @@ -10581,6 +11337,20 @@ "constructor", "instantiate" ], + "funding": [ + { + "url": "https://www.doctrine-project.org/sponsorship.html", + "type": "custom" + }, + { + "url": "https://www.patreon.com/phpdoctrine", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finstantiator", + "type": "tidelift" + } + ], "time": "2020-05-29T17:27:14+00:00" }, { @@ -10718,25 +11488,25 @@ }, { "name": "facade/ignition-contracts", - "version": "1.0.1", + "version": "1.0.2", "source": { "type": "git", "url": "https://github.com/facade/ignition-contracts.git", - "reference": "aeab1ce8b68b188a43e81758e750151ad7da796b" + "reference": "3c921a1cdba35b68a7f0ccffc6dffc1995b18267" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/facade/ignition-contracts/zipball/aeab1ce8b68b188a43e81758e750151ad7da796b", - "reference": "aeab1ce8b68b188a43e81758e750151ad7da796b", + "url": "https://api.github.com/repos/facade/ignition-contracts/zipball/3c921a1cdba35b68a7f0ccffc6dffc1995b18267", + "reference": "3c921a1cdba35b68a7f0ccffc6dffc1995b18267", "shasum": "" }, "require": { - "php": "^7.1" + "php": "^7.3|^8.0" }, "require-dev": { - "friendsofphp/php-cs-fixer": "^2.14", - "phpunit/phpunit": "^7.5|^8.0", - "vimeo/psalm": "^3.12" + "friendsofphp/php-cs-fixer": "^v2.15.8", + "phpunit/phpunit": "^9.3.11", + "vimeo/psalm": "^3.17.1" }, "type": "library", "autoload": { @@ -10763,7 +11533,7 @@ "flare", "ignition" ], - "time": "2020-07-14T10:10:28+00:00" + "time": "2020-10-16T08:27:54+00:00" }, { "name": "filp/whoops", @@ -10915,6 +11685,12 @@ } ], "description": "A tool to automatically fix PHP code style", + "funding": [ + { + "url": "https://github.com/keradus", + "type": "github" + } + ], "time": "2020-06-27T23:57:46+00:00" }, { @@ -11315,6 +12091,12 @@ "object", "object graph" ], + "funding": [ + { + "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy", + "type": "tidelift" + } + ], "time": "2020-06-29T13:22:24+00:00" }, { @@ -11561,6 +12343,20 @@ "quality", "source" ], + "funding": [ + { + "url": "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=66BYDWAT92N6L", + "type": "custom" + }, + { + "url": "https://github.com/nunomaduro", + "type": "github" + }, + { + "url": "https://www.patreon.com/nunomaduro", + "type": "patreon" + } + ], "time": "2020-03-10T20:43:15+00:00" }, { diff --git a/database/seeders/CompanySeeder.php b/database/seeders/CompanySeeder.php new file mode 100644 index 000000000..49e5f7d80 --- /dev/null +++ b/database/seeders/CompanySeeder.php @@ -0,0 +1,28 @@ +company(); + + $person = Person::where('id', '1')->first(); + $person->companies()->attach(1, ['person_id' => 1, 'is_main' => 1, 'is_mandatary' => 1, 'company_id' => 1]); + } + + private function company() + { + return factory(Company::class)->create([ + 'name' => 'Admin Root', + 'is_tenant' => 0, + 'email' => 'admin@genealogia.co.uk', + 'phone' => '+4412345678910', + 'status' => Statuses::Active, + ]); + } +} diff --git a/routes/api.php b/routes/api.php index e74350469..3c0992662 100644 --- a/routes/api.php +++ b/routes/api.php @@ -1,266 +1,689 @@ prefix('api') + ->group( + function() { + + Route::namespace('') + ->prefix('about') + ->as('about.') + ->group(function () { + Route::get('about', AboutIndex::class)->name('index'); + }); + Route::namespace('') + ->prefix('termsandconditions') + ->as('termsandconditions.') + ->group(function () { + Route::get('termsandconditions', TermsandconditionsIndex::class)->name('index'); + }); + Route::namespace('') + ->prefix('privacy') + ->as('privacy.') + ->group(function () { + Route::get('privacy', PrivacyIndex::class)->name('index'); + }); + Route::namespace('') + ->prefix('contact') + ->as('contact.') + ->group(function () { + Route::get('contact', ContactIndex::class)->name('index'); + }); + }); + + **/ Route::namespace('Auth') ->middleware('api') ->group(function () { Route::middleware('guest')->group(function () { - Route::post('login', 'LoginController@login')->name('login'); + Route::post('login', [LoginController::class, 'login'])->name('login'); }); Route::middleware('auth')->group(function () { - Route::post('logout', 'LoginController@logout')->name('logout'); + Route::post('logout', [LoginController::class, 'logout'])->name('logout'); }); }); +// Route::middleware(['api'])->group( +// function() { +Route::post('register', [RegisterController::class, 'register']); +Route::post('verify', [RegisterController::class, 'verify_user']); +// } +// ); + // example data for the dashboard Route::middleware(['web', 'auth', 'multitenant']) - ->namespace('Dashboard') + ->namespace('') ->prefix('dashboard')->as('dashboard.') ->group(function () { - Route::get('line', 'ChartController@line') + Route::get('line', [ChartController::class, 'line']) ->name('line'); - Route::get('bar', 'ChartController@bar') + Route::get('bar', [ChartController::class, 'bar']) ->name('bar'); - Route::get('pie', 'ChartController@pie') + Route::get('pie', [ChartController::class, 'pie']) ->name('pie'); - Route::get('doughnut', 'ChartController@doughnut') + Route::get('doughnut', [ChartController::class, 'doughnut']) ->name('doughnut'); - Route::get('radar', 'ChartController@radar') + Route::get('radar', [ChartController::class, 'radar']) ->name('radar'); - Route::get('polar', 'ChartController@polar') + Route::get('polar', [ChartController::class, 'polar']) ->name('polar'); - Route::get('bubble', 'ChartController@bubble') + Route::get('bubble', [ChartController::class, 'bubble']) ->name('bubble'); - Route::post('changedb', 'ChartController@changedb') + Route::post('changedb', [ChartController::class, 'changedb']) ->name('changedb'); - Route::post('getdb', 'ChartController@getDB') + Route::post('getdb', [ChartController::class, 'getDB']) ->name('getdb'); + Route::get('trial', [ChartController::class, 'trial']) + ->name('trial'); }); Route::middleware(['api', 'auth', 'core', 'multitenant']) ->group(function () { - Route::namespace('Citations') + Route::namespace('') ->prefix('citations') ->as('citations.') ->group(function () { - Route::get('', 'Index')->name('index'); - Route::get('create', 'Create')->name('create'); - Route::post('', 'Store')->name('store'); - Route::get('{citation}/edit', 'Edit')->name('edit'); + Route::get('', CitationsIndex::class)->name('index'); + Route::get('create', CitationsCreate::class)->name('create'); + Route::post('', CitationsStore::class)->name('store'); + Route::get('{citation}/edit', CitationsEdit::class)->name('edit'); - Route::patch('{citation}', 'Update')->name('update'); + Route::patch('{citation}', CitationsUpdate::class)->name('update'); - Route::delete('{citation}', 'Destroy')->name('destroy'); + Route::delete('{citation}', CitationsDestroy::class)->name('destroy'); - Route::get('initTable', 'InitTable')->name('initTable'); - Route::get('tableData', 'TableData')->name('tableData'); - Route::get('exportExcel', 'ExportExcel')->name('exportExcel'); + Route::get('initTable', CitationsInitTable::class)->name('initTable'); + Route::get('tableData', CitationsTableData::class)->name('tableData'); + Route::get('exportExcel', CitationsExportExcel::class)->name('exportExcel'); - Route::get('options', 'Options')->name('options'); - Route::get('{citation}', 'Show')->name('show'); + Route::get('options', CitationsOptions::class)->name('options'); + Route::get('{citation}', CitationsShow::class)->name('show'); }); }); Route::middleware(['api', 'auth', 'core', 'multitenant']) ->group(function () { - Route::namespace('Families') + Route::namespace('') ->prefix('families') ->as('families.') ->group(function () { - Route::get('', 'Index')->name('index'); - Route::get('create', 'Create')->name('create'); - Route::post('', 'Store')->name('store'); - Route::get('{family}/edit', 'Edit')->name('edit'); + Route::get('', FamiliesIndex::class)->name('index'); + Route::get('create', FamiliesCreate::class)->name('create'); + Route::post('', FamiliesStore::class)->name('store'); + Route::get('{family}/edit', FamiliesEdit::class)->name('edit'); - Route::patch('{family}', 'Update')->name('update'); + Route::patch('{family}', FamiliesUpdate::class)->name('update'); - Route::delete('{family}', 'Destroy')->name('destroy'); + Route::delete('{family}', FamiliesDestroy::class)->name('destroy'); - Route::get('initTable', 'InitTable')->name('initTable'); - Route::get('tableData', 'TableData')->name('tableData'); - Route::get('exportExcel', 'ExportExcel')->name('exportExcel'); + Route::get('initTable', FamiliesInitTable::class)->name('initTable'); + Route::get('tableData', FamiliesTableData::class)->name('tableData'); + Route::get('exportExcel', FamiliesExportExcel::class)->name('exportExcel'); - Route::get('options', 'Options')->name('options'); - Route::get('{family}', 'Show')->name('show'); + Route::get('options', FamiliesOptions::class)->name('options'); + Route::get('{family}', FamiliesShow::class)->name('show'); }); }); Route::middleware(['api', 'auth', 'core', 'multitenant']) ->group(function () { - Route::namespace('Notes') + Route::namespace('') ->prefix('notes') ->as('notes.') ->group(function () { - Route::get('', 'Index')->name('index'); - Route::get('create', 'Create')->name('create'); - Route::post('', 'Store')->name('store'); - Route::get('{note}/edit', 'Edit')->name('edit'); + Route::get('', NotesIndex::class)->name('index'); + Route::get('create', NotesCreate::class)->name('create'); + Route::post('', NotesStore::class)->name('store'); + Route::get('{note}/edit', NotesEdit::class)->name('edit'); - Route::patch('{note}', 'Update')->name('update'); + Route::patch('{note}', NotesUpdate::class)->name('update'); - Route::delete('{note}', 'Destroy')->name('destroy'); + Route::delete('{note}', NotesDestroy::class)->name('destroy'); - Route::get('initTable', 'InitTable')->name('initTable'); - Route::get('tableData', 'TableData')->name('tableData'); - Route::get('exportExcel', 'ExportExcel')->name('exportExcel'); + Route::get('initTable', NotesInitTable::class)->name('initTable'); + Route::get('tableData', NotesTableData::class)->name('tableData'); + Route::get('exportExcel', NotesExportExcel::class)->name('exportExcel'); - Route::get('options', 'Options')->name('options'); - Route::get('{note}', 'Show')->name('show'); + Route::get('options', NotesOptions::class)->name('options'); + Route::get('{note}', NotesShow::class)->name('show'); }); }); Route::middleware(['api', 'auth', 'core', 'multitenant']) ->group(function () { - Route::namespace('Places') + Route::namespace('') ->prefix('places') ->as('places.') ->group(function () { - Route::get('', 'Index')->name('index'); - Route::get('create', 'Create')->name('create'); - Route::post('', 'Store')->name('store'); - Route::get('{place}/edit', 'Edit')->name('edit'); + Route::get('', PlacesIndex::class)->name('index'); + Route::get('create', PlacesCreate::class)->name('create'); + Route::post('', PlacesStore::class)->name('store'); + Route::get('{place}/edit', PlacesEdit::class)->name('edit'); - Route::patch('{place}', 'Update')->name('update'); + Route::patch('{place}', PlacesUpdate::class)->name('update'); - Route::delete('{place}', 'Destroy')->name('destroy'); + Route::delete('{place}', PlacesDestroy::class)->name('destroy'); - Route::get('initTable', 'InitTable')->name('initTable'); - Route::get('tableData', 'TableData')->name('tableData'); - Route::get('exportExcel', 'ExportExcel')->name('exportExcel'); + Route::get('initTable', PlacesInitTable::class)->name('initTable'); + Route::get('tableData', PlacesTableData::class)->name('tableData'); + Route::get('exportExcel', PlacesExportExcel::class)->name('exportExcel'); - Route::get('options', 'Options')->name('options'); - Route::get('{place}', 'Show')->name('show'); + Route::get('options', PlacesOptions::class)->name('options'); + Route::get('{place}', PlacesShow::class)->name('show'); }); }); Route::middleware(['api', 'auth', 'core', 'multitenant']) ->group(function () { - Route::namespace('Repositories') + Route::namespace('') ->prefix('repositories') ->as('repositories.') ->group(function () { - Route::get('', 'Index')->name('index'); - Route::get('create', 'Create')->name('create'); - Route::post('', 'Store')->name('store'); - Route::get('{repository}/edit', 'Edit')->name('edit'); + Route::get('', RepositoriesIndex::class)->name('index'); + Route::get('create', RepositoriesCreate::class)->name('create'); + Route::post('', RepositoriesStore::class)->name('store'); + Route::get('{repository}/edit', RepositoriesEdit::class)->name('edit'); - Route::patch('{repository}', 'Update')->name('update'); + Route::patch('{repository}', RepositoriesUpdate::class)->name('update'); - Route::delete('{repository}', 'Destroy')->name('destroy'); + Route::delete('{repository}', RepositoriesDestroy::class)->name('destroy'); - Route::get('initTable', 'InitTable')->name('initTable'); - Route::get('tableData', 'TableData')->name('tableData'); - Route::get('exportExcel', 'ExportExcel')->name('exportExcel'); + Route::get('initTable', RepositoriesInitTable::class)->name('initTable'); + Route::get('tableData', RepositoriesTableData::class)->name('tableData'); + Route::get('exportExcel', RepositoriesExportExcel::class)->name('exportExcel'); - Route::get('options', 'Options')->name('options'); - Route::get('{repository}', 'Show')->name('show'); + Route::get('options', RepositoriesOptions::class)->name('options'); + Route::get('{repository}', RepositoriesShow::class)->name('show'); }); }); Route::middleware(['api', 'auth', 'core', 'multitenant']) ->group(function () { - Route::namespace('Sources') + Route::namespace('') ->prefix('sources') ->as('sources.') ->group(function () { - Route::get('', 'Index')->name('index'); - Route::get('create', 'Create')->name('create'); - Route::post('', 'Store')->name('store'); - Route::get('{source}/edit', 'Edit')->name('edit'); + Route::get('', SourcesIndex::class)->name('index'); + Route::get('create', SourcesCreate::class)->name('create'); + Route::post('', SourcesStore::class)->name('store'); + Route::get('{source}/edit', SourcesEdit::class)->name('edit'); - Route::patch('{source}', 'Update')->name('update'); + Route::patch('{source}', SourcesUpdate::class)->name('update'); - Route::delete('{source}', 'Destroy')->name('destroy'); + Route::delete('{source}', SourcesDestroy::class)->name('destroy'); - Route::get('initTable', 'InitTable')->name('initTable'); - Route::get('tableData', 'TableData')->name('tableData'); - Route::get('exportExcel', 'ExportExcel')->name('exportExcel'); + Route::get('initTable', SourcesInitTable::class)->name('initTable'); + Route::get('tableData', SourcesTableData::class)->name('tableData'); + Route::get('exportExcel', SourcesExportExcel::class)->name('exportExcel'); - Route::get('options', 'Options')->name('options'); - Route::get('{source}', 'Show')->name('show'); + Route::get('options', SourcesOptions::class)->name('options'); + Route::get('{source}', SourcesShow::class)->name('show'); }); }); Route::middleware(['api', 'auth', 'core', 'multitenant']) ->group(function () { - Route::namespace('Types') + Route::namespace('') ->prefix('types') ->as('types.') ->group(function () { - Route::get('', 'Index')->name('index'); - Route::get('create', 'Create')->name('create'); - Route::post('', 'Store')->name('store'); - Route::get('{type}/edit', 'Edit')->name('edit'); + Route::get('', TypesIndex::class)->name('index'); + Route::get('create', TypesCreate::class)->name('create'); + Route::post('', TypesStore::class)->name('store'); + Route::get('{type}/edit', TypesEdit::class)->name('edit'); - Route::patch('{type}', 'Update')->name('update'); + Route::patch('{type}', TypesUpdate::class)->name('update'); - Route::delete('{type}', 'Destroy')->name('destroy'); + Route::delete('{type}', TypesDestroy::class)->name('destroy'); - Route::get('initTable', 'InitTable')->name('initTable'); - Route::get('tableData', 'TableData')->name('tableData'); - Route::get('exportExcel', 'ExportExcel')->name('exportExcel'); + Route::get('initTable', TypesInitTable::class)->name('initTable'); + Route::get('tableData', TypesTableData::class)->name('tableData'); + Route::get('exportExcel', TypesExportExcel::class)->name('exportExcel'); - Route::get('options', 'Options')->name('options'); - Route::get('{type}', 'Show')->name('show'); + Route::get('options', TypesOptions::class)->name('options'); + Route::get('{type}', TypesShow::class)->name('show'); }); }); Route::middleware(['api', 'auth', 'core', 'multitenant']) ->group(function () { - Route::namespace('Authors') + Route::namespace('') ->prefix('authors') ->as('authors.') ->group(function () { - Route::get('', 'Index')->name('index'); - Route::get('create', 'Create')->name('create'); - Route::post('', 'Store')->name('store'); - Route::get('{author}/edit', 'Edit')->name('edit'); + Route::get('', AuthorsIndex::class)->name('index'); + Route::get('create', AuthorsCreate::class)->name('create'); + Route::post('', AuthorsStore::class)->name('store'); + Route::get('{author}/edit', AuthorsEdit::class)->name('edit'); - Route::patch('{author}', 'Update')->name('update'); + Route::patch('{author}', AuthorsUpdate::class)->name('update'); - Route::delete('{author}', 'Destroy')->name('destroy'); + Route::delete('{author}', AuthorsDestroy::class)->name('destroy'); - Route::get('initTable', 'InitTable')->name('initTable'); - Route::get('tableData', 'TableData')->name('tableData'); - Route::get('exportExcel', 'ExportExcel')->name('exportExcel'); + Route::get('initTable', AuthorsInitTable::class)->name('initTable'); + Route::get('tableData', AuthorsTableData::class)->name('tableData'); + Route::get('exportExcel', AuthorsExportExcel::class)->name('exportExcel'); - Route::get('options', 'Options')->name('options'); - Route::get('{author}', 'Show')->name('show'); + Route::get('options', AuthorsOptions::class)->name('options'); + Route::get('{author}', AuthorsShow::class)->name('show'); }); }); Route::middleware(['api', 'auth', 'core', 'multitenant']) ->group(function () { - Route::namespace('Publications') + Route::namespace('') ->prefix('publications') ->as('publications.') ->group(function () { - Route::get('', 'Index')->name('index'); - Route::get('create', 'Create')->name('create'); - Route::post('', 'Store')->name('store'); - Route::get('{publication}/edit', 'Edit')->name('edit'); + Route::get('', PublicationsIndex::class)->name('index'); + Route::get('create', PublicationsCreate::class)->name('create'); + Route::post('', PublicationsStore::class)->name('store'); + Route::get('{publication}/edit', PublicationsEdit::class)->name('edit'); - Route::patch('{publication}', 'Update')->name('update'); + Route::patch('{publication}', PublicationsUpdate::class)->name('update'); - Route::delete('{publication}', 'Destroy')->name('destroy'); + Route::delete('{publication}', PublicationsDestroy::class)->name('destroy'); - Route::get('initTable', 'InitTable')->name('initTable'); - Route::get('tableData', 'TableData')->name('tableData'); - Route::get('exportExcel', 'ExportExcel')->name('exportExcel'); + Route::get('initTable', PublicationsInitTable::class)->name('initTable'); + Route::get('tableData', PublicationsTableData::class)->name('tableData'); + Route::get('exportExcel', PublicationsExportExcel::class)->name('exportExcel'); - Route::get('options', 'Options')->name('options'); - Route::get('{publication}', 'Show')->name('show'); + Route::get('options', PublicationsOptions::class)->name('options'); + Route::get('{publication}', PublicationsShow::class)->name('show'); }); }); -Route::middleware(['api', 'auth', 'core']) +Route::middleware(['api', 'auth', 'core', 'multitenant']) ->group(function () { - Route::namespace('Gedcom') + Route::namespace('') ->prefix('gedcom') ->as('gedcom.') ->group(function () { - Route::post('store', 'Store')->name('store'); + Route::post('store', GedcomStore::class)->name('store'); }); }); @@ -268,470 +691,520 @@ Route::middleware(['api', 'auth', 'core', 'multitenant']) ->group(function () { - Route::namespace('Trees') - ->prefix('trees') - ->as('trees.') - ->group(function () { - Route::get('{tree}', 'Show')->name('show'); - }); - }); - -Route::middleware(['api', 'auth', 'core', 'multitenant']) - ->group(function () { - Route::namespace('MediaObjects') - ->prefix('objects') - ->as('objects.') + Route::namespace('') + ->prefix('mediaobjects') + ->as('mediaobjects.') ->group(function () { - Route::get('', 'Index')->name('index'); - Route::get('create', 'Create')->name('create'); - Route::post('', 'Store')->name('store'); - Route::get('{mediaobject}/edit', 'Edit')->name('edit'); + Route::get('', MediaObjectsIndex::class)->name('index'); + Route::get('create', MediaObjectsCreate::class)->name('create'); + Route::post('', MediaObjectsStore::class)->name('store'); + Route::get('{mediaobjects}/edit', MediaObjectsEdit::class)->name('edit'); - Route::patch('{mediaobject}', 'Update')->name('update'); + Route::patch('{mediaobjects}', MediaObjectsUpdate::class)->name('update'); - Route::delete('{mediaobject}', 'Destroy')->name('destroy'); + Route::delete('{mediaobjects}', MediaObjectsDestroy::class)->name('destroy'); - Route::get('initTable', 'InitTable')->name('initTable'); - Route::get('tableData', 'TableData')->name('tableData'); - Route::get('exportExcel', 'ExportExcel')->name('exportExcel'); + Route::get('initTable', MediaObjectsInitTable::class)->name('initTable'); + Route::get('tableData', MediaObjectsTableData::class)->name('tableData'); + Route::get('exportExcel', MediaObjectsExportExcel::class)->name('exportExcel'); - Route::get('options', 'Options')->name('options'); - Route::get('{mediaobject}', 'Show')->name('show'); + Route::get('options', MediaObjectsOptions::class)->name('options'); + Route::get('{mediaobject}', MediaObjectsShow::class)->name('show'); }); }); Route::middleware(['api', 'auth', 'core', 'multitenant']) ->group(function () { - Route::namespace('Addresses') - ->prefix('addresses') - ->as('addresses.') + Route::namespace('') + ->prefix('addrs') + ->as('addrs.') ->group(function () { - Route::get('', 'Index')->name('index'); - Route::get('create', 'Create')->name('create'); - Route::post('', 'Store')->name('store'); - Route::get('{addr}/edit', 'Edit')->name('edit'); + Route::get('', AddrsIndex::class)->name('index'); + Route::get('create', AddrsCreate::class)->name('create'); + Route::post('', AddrsStore::class)->name('store'); + Route::get('{addr}/edit', AddrsEdit::class)->name('edit'); - Route::patch('{addr}', 'Update')->name('update'); + Route::patch('{addr}', AddrsUpdate::class)->name('update'); - Route::delete('{addr}', 'Destroy')->name('destroy'); + Route::delete('{addr}', AddrsDestroy::class)->name('destroy'); - Route::get('initTable', 'InitTable')->name('initTable'); - Route::get('tableData', 'TableData')->name('tableData'); - Route::get('exportExcel', 'ExportExcel')->name('exportExcel'); + Route::get('initTable', AddrsInitTable::class)->name('initTable'); + Route::get('tableData', AddrsTableData::class)->name('tableData'); + Route::get('exportExcel', AddrsExportExcel::class)->name('exportExcel'); - Route::get('options', 'Options')->name('options'); - Route::get('{addr}', 'Show')->name('show'); + Route::get('options', AddrsOptions::class)->name('options'); + Route::get('{addr}', AddrsShow::class)->name('show'); }); }); Route::middleware(['api', 'auth', 'core', 'multitenant']) ->group(function () { - Route::namespace('Chan') + Route::namespace('') ->prefix('chan') ->as('chan.') ->group(function () { - Route::get('', 'Index')->name('index'); - Route::get('create', 'Create')->name('create'); - Route::post('', 'Store')->name('store'); - Route::get('{chan}/edit', 'Edit')->name('edit'); + Route::get('', ChanIndex::class)->name('index'); + Route::get('create', ChanCreate::class)->name('create'); + Route::post('', ChanStore::class)->name('store'); + Route::get('{chan}/edit', ChanEdit::class)->name('edit'); - Route::patch('{chan}', 'Update')->name('update'); + Route::patch('{chan}', ChanUpdate::class)->name('update'); - Route::delete('{chan}', 'Destroy')->name('destroy'); + Route::delete('{chan}', ChanDestroy::class)->name('destroy'); - Route::get('initTable', 'InitTable')->name('initTable'); - Route::get('tableData', 'TableData')->name('tableData'); - Route::get('exportExcel', 'ExportExcel')->name('exportExcel'); + Route::get('initTable', ChanInitTable::class)->name('initTable'); + Route::get('tableData', ChanTableData::class)->name('tableData'); + Route::get('exportExcel', ChanExportExcel::class)->name('exportExcel'); - Route::get('options', 'Options')->name('options'); - Route::get('{chan}', 'Show')->name('show'); + Route::get('options', ChanOptions::class)->name('options'); + Route::get('{chan}', ChanShow::class)->name('show'); }); }); Route::middleware(['api', 'auth', 'core', 'multitenant']) ->group(function () { - Route::namespace('Familyevents') + Route::namespace('') ->prefix('familyevents') ->as('familyevents.') ->group(function () { - Route::get('', 'Index')->name('index'); - Route::get('create', 'Create')->name('create'); - Route::post('', 'Store')->name('store'); - Route::get('{familyEvent}/edit', 'Edit')->name('edit'); + Route::get('', FamilyeventsIndex::class)->name('index'); + Route::get('create', FamilyeventsCreate::class)->name('create'); + Route::post('', FamilyeventsStore::class)->name('store'); + Route::get('{familyEvent}/edit', FamilyeventsEdit::class)->name('edit'); - Route::patch('{familyEvent}', 'Update')->name('update'); + Route::patch('{familyEvent}', FamilyeventsUpdate::class)->name('update'); - Route::delete('{familyEvent}', 'Destroy')->name('destroy'); + Route::delete('{familyEvent}', FamilyeventsDestroy::class)->name('destroy'); - Route::get('initTable', 'InitTable')->name('initTable'); - Route::get('tableData', 'TableData')->name('tableData'); - Route::get('exportExcel', 'ExportExcel')->name('exportExcel'); + Route::get('initTable', FamilyeventsInitTable::class)->name('initTable'); + Route::get('tableData', FamilyeventsTableData::class)->name('tableData'); + Route::get('exportExcel', FamilyeventsExportExcel::class)->name('exportExcel'); - Route::get('options', 'Options')->name('options'); - Route::get('{familyEvent}', 'Show')->name('show'); + Route::get('options', FamilyeventsOptions::class)->name('options'); + Route::get('{familyEvent}', FamilyeventsShow::class)->name('show'); }); }); Route::middleware(['api', 'auth', 'core', 'multitenant']) ->group(function () { - Route::namespace('Familyslugs') + Route::namespace('') ->prefix('familyslugs') ->as('familyslugs.') ->group(function () { - Route::get('', 'Index')->name('index'); - Route::get('create', 'Create')->name('create'); - Route::post('', 'Store')->name('store'); - Route::get('{familySlgs}/edit', 'Edit')->name('edit'); + Route::get('', FamilyslugsIndex::class)->name('index'); + Route::get('create', FamilyslugsCreate::class)->name('create'); + Route::post('', FamilyslugsStore::class)->name('store'); + Route::get('{familySlgs}/edit', FamilyslugsEdit::class)->name('edit'); - Route::patch('{familySlgs}', 'Update')->name('update'); + Route::patch('{familySlgs}', FamilyslugsUpdate::class)->name('update'); - Route::delete('{familySlgs}', 'Destroy')->name('destroy'); + Route::delete('{familySlgs}', FamilyslugsDestroy::class)->name('destroy'); - Route::get('initTable', 'InitTable')->name('initTable'); - Route::get('tableData', 'TableData')->name('tableData'); - Route::get('exportExcel', 'ExportExcel')->name('exportExcel'); + Route::get('initTable', FamilyslugsInitTable::class)->name('initTable'); + Route::get('tableData', FamilyslugsTableData::class)->name('tableData'); + Route::get('exportExcel', FamilyslugsExportExcel::class)->name('exportExcel'); - Route::get('options', 'Options')->name('options'); - Route::get('{familySlgs}', 'Show')->name('show'); + Route::get('options', FamilyslugsOptions::class)->name('options'); + Route::get('{familySlgs}', FamilyslugsShow::class)->name('show'); }); }); Route::middleware(['api', 'auth', 'core', 'multitenant']) ->group(function () { - Route::namespace('Personalias') + Route::namespace('') ->prefix('personalias') ->as('personalias.') ->group(function () { - Route::get('', 'Index')->name('index'); - Route::get('create', 'Create')->name('create'); - Route::post('', 'Store')->name('store'); - Route::get('{personAlia}/edit', 'Edit')->name('edit'); + Route::get('', PersonaliasIndex::class)->name('index'); + Route::get('create', PersonaliasCreate::class)->name('create'); + Route::post('', PersonaliasStore::class)->name('store'); + Route::get('{personAlia}/edit', PersonaliasEdit::class)->name('edit'); - Route::patch('{personAlia}', 'Update')->name('update'); + Route::patch('{personAlia}', PersonaliasUpdate::class)->name('update'); - Route::delete('{personAlia}', 'Destroy')->name('destroy'); + Route::delete('{personAlia}', PersonaliasDestroy::class)->name('destroy'); - Route::get('initTable', 'InitTable')->name('initTable'); - Route::get('tableData', 'TableData')->name('tableData'); - Route::get('exportExcel', 'ExportExcel')->name('exportExcel'); + Route::get('initTable', PersonaliasInitTable::class)->name('initTable'); + Route::get('tableData', PersonaliasTableData::class)->name('tableData'); + Route::get('exportExcel', PersonaliasExportExcel::class)->name('exportExcel'); - Route::get('options', 'Options')->name('options'); - Route::get('{personAlia}', 'Show')->name('show'); + Route::get('options', PersonaliasOptions::class)->name('options'); + Route::get('{personAlia}', PersonaliasShow::class)->name('show'); }); }); Route::middleware(['api', 'auth', 'core', 'multitenant']) ->group(function () { - Route::namespace('Personanci') + Route::namespace('') ->prefix('personanci') ->as('personanci.') ->group(function () { - Route::get('', 'Index')->name('index'); - Route::get('create', 'Create')->name('create'); - Route::post('', 'Store')->name('store'); - Route::get('{personAnci}/edit', 'Edit')->name('edit'); + Route::get('', PersonanciIndex::class)->name('index'); + Route::get('create', PersonanciCreate::class)->name('create'); + Route::post('', PersonanciStore::class)->name('store'); + Route::get('{personAnci}/edit', PersonanciEdit::class)->name('edit'); - Route::patch('{personAnci}', 'Update')->name('update'); + Route::patch('{personAnci}', PersonanciUpdate::class)->name('update'); - Route::delete('{personAnci}', 'Destroy')->name('destroy'); + Route::delete('{personAnci}', PersonanciDestroy::class)->name('destroy'); - Route::get('initTable', 'InitTable')->name('initTable'); - Route::get('tableData', 'TableData')->name('tableData'); - Route::get('exportExcel', 'ExportExcel')->name('exportExcel'); + Route::get('initTable', PersonanciInitTable::class)->name('initTable'); + Route::get('tableData', PersonanciTableData::class)->name('tableData'); + Route::get('exportExcel', PersonanciExportExcel::class)->name('exportExcel'); - Route::get('options', 'Options')->name('options'); - Route::get('{personAnci}', 'Show')->name('show'); + Route::get('options', PersonanciOptions::class)->name('options'); + Route::get('{personAnci}', PersonanciShow::class)->name('show'); }); }); Route::middleware(['api', 'auth', 'core', 'multitenant']) ->group(function () { - Route::namespace('Personasso') + Route::namespace('') ->prefix('personasso') ->as('personasso.') ->group(function () { - Route::get('', 'Index')->name('index'); - Route::get('create', 'Create')->name('create'); - Route::post('', 'Store')->name('store'); - Route::get('{personAsso}/edit', 'Edit')->name('edit'); + Route::get('', PersonassoIndex::class)->name('index'); + Route::get('create', PersonassoCreate::class)->name('create'); + Route::post('', PersonassoStore::class)->name('store'); + Route::get('{personAsso}/edit', PersonassoEdit::class)->name('edit'); - Route::patch('{personAsso}', 'Update')->name('update'); + Route::patch('{personAsso}', PersonassoUpdate::class)->name('update'); - Route::delete('{personAsso}', 'Destroy')->name('destroy'); + Route::delete('{personAsso}', PersonassoDestroy::class)->name('destroy'); - Route::get('initTable', 'InitTable')->name('initTable'); - Route::get('tableData', 'TableData')->name('tableData'); - Route::get('exportExcel', 'ExportExcel')->name('exportExcel'); + Route::get('initTable', PersonassoInitTable::class)->name('initTable'); + Route::get('tableData', PersonassoTableData::class)->name('tableData'); + Route::get('exportExcel', PersonassoExportExcel::class)->name('exportExcel'); - Route::get('options', 'Options')->name('options'); - Route::get('{personAsso}', 'Show')->name('show'); + Route::get('options', PersonassoOptions::class)->name('options'); + Route::get('{personAsso}', PersonassoShow::class)->name('show'); }); }); Route::middleware(['api', 'auth', 'core', 'multitenant']) ->group(function () { - Route::namespace('Personevent') + Route::namespace('') ->prefix('personevent') ->as('personevent.') ->group(function () { - Route::get('', 'Index')->name('index'); - Route::get('create', 'Create')->name('create'); - Route::post('', 'Store')->name('store'); - Route::get('{personEvent}/edit', 'Edit')->name('edit'); + Route::get('', PersoneventIndex::class)->name('index'); + Route::get('create', PersoneventCreate::class)->name('create'); + Route::post('', PersoneventStore::class)->name('store'); + Route::get('{personEvent}/edit', PersoneventEdit::class)->name('edit'); - Route::patch('{personEvent}', 'Update')->name('update'); + Route::patch('{personEvent}', PersoneventUpdate::class)->name('update'); - Route::delete('{personEvent}', 'Destroy')->name('destroy'); + Route::delete('{personEvent}', PersoneventDestroy::class)->name('destroy'); - Route::get('initTable', 'InitTable')->name('initTable'); - Route::get('tableData', 'TableData')->name('tableData'); - Route::get('exportExcel', 'ExportExcel')->name('exportExcel'); + Route::get('initTable', PersoneventInitTable::class)->name('initTable'); + Route::get('tableData', PersoneventTableData::class)->name('tableData'); + Route::get('exportExcel', PersoneventExportExcel::class)->name('exportExcel'); - Route::get('options', 'Options')->name('options'); - Route::get('{personEvent}', 'Show')->name('show'); + Route::get('options', PersoneventOptions::class)->name('options'); + Route::get('{personEvent}', PersoneventShow::class)->name('show'); }); }); Route::middleware(['api', 'auth', 'core', 'multitenant']) ->group(function () { - Route::namespace('Personlds') + Route::namespace('') ->prefix('personlds') ->as('personlds.') ->group(function () { - Route::get('', 'Index')->name('index'); - Route::get('create', 'Create')->name('create'); - Route::post('', 'Store')->name('store'); - Route::get('{personLds}/edit', 'Edit')->name('edit'); + Route::get('', PersonldsIndex::class)->name('index'); + Route::get('create', PersonldsCreate::class)->name('create'); + Route::post('', PersonldsStore::class)->name('store'); + Route::get('{personLds}/edit', PersonldsEdit::class)->name('edit'); - Route::patch('{personLds}', 'Update')->name('update'); + Route::patch('{personLds}', PersonldsUpdate::class)->name('update'); - Route::delete('{personLds}', 'Destroy')->name('destroy'); + Route::delete('{personLds}', PersonldsDestroy::class)->name('destroy'); - Route::get('initTable', 'InitTable')->name('initTable'); - Route::get('tableData', 'TableData')->name('tableData'); - Route::get('exportExcel', 'ExportExcel')->name('exportExcel'); + Route::get('initTable', PersonldsInitTable::class)->name('initTable'); + Route::get('tableData', PersonldsTableData::class)->name('tableData'); + Route::get('exportExcel', PersonldsExportExcel::class)->name('exportExcel'); - Route::get('options', 'Options')->name('options'); - Route::get('{personLds}', 'Show')->name('show'); + Route::get('options', PersonldsOptions::class)->name('options'); + Route::get('{personLds}', PersonldsShow::class)->name('show'); }); }); Route::middleware(['api', 'auth', 'core', 'multitenant']) ->group(function () { - Route::namespace('Refn') + Route::namespace('') ->prefix('refn') ->as('refn.') ->group(function () { - Route::get('', 'Index')->name('index'); - Route::get('create', 'Create')->name('create'); - Route::post('', 'Store')->name('store'); - Route::get('{refn}/edit', 'Edit')->name('edit'); + Route::get('', RefnIndex::class)->name('index'); + Route::get('create', RefnCreate::class)->name('create'); + Route::post('', RefnStore::class)->name('store'); + Route::get('{refn}/edit', RefnEdit::class)->name('edit'); - Route::patch('{refn}', 'Update')->name('update'); + Route::patch('{refn}', RefnUpdate::class)->name('update'); - Route::delete('{refn}', 'Destroy')->name('destroy'); + Route::delete('{refn}', RefnDestroy::class)->name('destroy'); - Route::get('initTable', 'InitTable')->name('initTable'); - Route::get('tableData', 'TableData')->name('tableData'); - Route::get('exportExcel', 'ExportExcel')->name('exportExcel'); + Route::get('initTable', RefnInitTable::class)->name('initTable'); + Route::get('tableData', RefnTableData::class)->name('tableData'); + Route::get('exportExcel', RefnExportExcel::class)->name('exportExcel'); - Route::get('options', 'Options')->name('options'); - Route::get('{refn}', 'Show')->name('show'); + Route::get('options', RefnOptions::class)->name('options'); + Route::get('{refn}', RefnShow::class)->name('show'); }); }); Route::middleware(['api', 'auth', 'core', 'multitenant']) ->group(function () { - Route::namespace('Sourcedata') + Route::namespace('') ->prefix('sourcedata') ->as('sourcedata.') ->group(function () { - Route::get('', 'Index')->name('index'); - Route::get('create', 'Create')->name('create'); - Route::post('', 'Store')->name('store'); - Route::get('{sourceData}/edit', 'Edit')->name('edit'); + Route::get('', SourcedataIndex::class)->name('index'); + Route::get('create', SourcedataCreate::class)->name('create'); + Route::post('', SourcedataStore::class)->name('store'); + Route::get('{sourceData}/edit', SourcedataEdit::class)->name('edit'); - Route::patch('{sourceData}', 'Update')->name('update'); + Route::patch('{sourceData}', SourcedataUpdate::class)->name('update'); - Route::delete('{sourceData}', 'Destroy')->name('destroy'); + Route::delete('{sourceData}', SourcedataDestroy::class)->name('destroy'); - Route::get('initTable', 'InitTable')->name('initTable'); - Route::get('tableData', 'TableData')->name('tableData'); - Route::get('exportExcel', 'ExportExcel')->name('exportExcel'); + Route::get('initTable', SourcedataInitTable::class)->name('initTable'); + Route::get('tableData', SourcedataTableData::class)->name('tableData'); + Route::get('exportExcel', SourcedataExportExcel::class)->name('exportExcel'); - Route::get('options', 'Options')->name('options'); - Route::get('{sourceData}', 'Show')->name('show'); + Route::get('options', SourcedataOptions::class)->name('options'); + Route::get('{sourceData}', SourcedataShow::class)->name('show'); }); }); Route::middleware(['api', 'auth', 'core', 'multitenant']) ->group(function () { - Route::namespace('Sourcedataevent') + Route::namespace('') ->prefix('sourcedataevent') ->as('sourcedataevent.') ->group(function () { - Route::get('', 'Index')->name('index'); - Route::get('create', 'Create')->name('create'); - Route::post('', 'Store')->name('store'); - Route::get('{sourceDataEven}/edit', 'Edit')->name('edit'); + Route::get('', SourcedataeventIndex::class)->name('index'); + Route::get('create', SourcedataeventCreate::class)->name('create'); + Route::post('', SourcedataeventStore::class)->name('store'); + Route::get('{sourceDataEven}/edit', SourcedataeventEdit::class)->name('edit'); - Route::patch('{sourceDataEven}', 'Update')->name('update'); + Route::patch('{sourceDataEven}', SourcedataeventUpdate::class)->name('update'); - Route::delete('{sourceDataEven}', 'Destroy')->name('destroy'); + Route::delete('{sourceDataEven}', SourcedataeventDestroy::class)->name('destroy'); - Route::get('initTable', 'InitTable')->name('initTable'); - Route::get('tableData', 'TableData')->name('tableData'); - Route::get('exportExcel', 'ExportExcel')->name('exportExcel'); + Route::get('initTable', SourcedataeventInitTable::class)->name('initTable'); + Route::get('tableData', SourcedataeventTableData::class)->name('tableData'); + Route::get('exportExcel', SourcedataeventExportExcel::class)->name('exportExcel'); - Route::get('options', 'Options')->name('options'); - Route::get('{sourceDataEven}', 'Show')->name('show'); + Route::get('options', SourcedataeventOptions::class)->name('options'); + Route::get('{sourceDataEven}', SourcedataeventShow::class)->name('show'); }); }); Route::middleware(['api', 'auth', 'core', 'multitenant']) ->group(function () { - Route::namespace('Sourcerefevents') + Route::namespace('') ->prefix('sourcerefevents') ->as('sourcerefevents.') ->group(function () { - Route::get('', 'Index')->name('index'); - Route::get('create', 'Create')->name('create'); - Route::post('', 'Store')->name('store'); - Route::get('{sourceRefEven}/edit', 'Edit')->name('edit'); + Route::get('', SourcerefeventsIndex::class)->name('index'); + Route::get('create', SourcerefeventsCreate::class)->name('create'); + Route::post('', SourcerefeventsStore::class)->name('store'); + Route::get('{sourceRefEven}/edit', SourcerefeventsEdit::class)->name('edit'); - Route::patch('{sourceRefEven}', 'Update')->name('update'); + Route::patch('{sourceRefEven}', SourcerefeventsUpdate::class)->name('update'); - Route::delete('{sourceRefEven}', 'Destroy')->name('destroy'); + Route::delete('{sourceRefEven}', SourcerefeventsDestroy::class)->name('destroy'); - Route::get('initTable', 'InitTable')->name('initTable'); - Route::get('tableData', 'TableData')->name('tableData'); - Route::get('exportExcel', 'ExportExcel')->name('exportExcel'); + Route::get('initTable', SourcerefeventsInitTable::class)->name('initTable'); + Route::get('tableData', SourcerefeventsTableData::class)->name('tableData'); + Route::get('exportExcel', SourcerefeventsExportExcel::class)->name('exportExcel'); - Route::get('options', 'Options')->name('options'); - Route::get('{sourceRefEven}', 'Show')->name('show'); + Route::get('options', SourcerefeventsOptions::class)->name('options'); + Route::get('{sourceRefEven}', SourcerefeventsShow::class)->name('show'); }); }); Route::middleware(['api', 'auth', 'core', 'multitenant']) ->group(function () { - Route::namespace('Subm') + Route::namespace('') ->prefix('subm') ->as('subm.') ->group(function () { - Route::get('', 'Index')->name('index'); - Route::get('create', 'Create')->name('create'); - Route::post('', 'Store')->name('store'); - Route::get('{subm}/edit', 'Edit')->name('edit'); + Route::get('', SubmIndex::class)->name('index'); + Route::get('create', SubmCreate::class)->name('create'); + Route::post('', SubmStore::class)->name('store'); + Route::get('{subm}/edit', SubmEdit::class)->name('edit'); - Route::patch('{subm}', 'Update')->name('update'); + Route::patch('{subm}', SubmUpdate::class)->name('update'); - Route::delete('{subm}', 'Destroy')->name('destroy'); + Route::delete('{subm}', SubmDestroy::class)->name('destroy'); - Route::get('initTable', 'InitTable')->name('initTable'); - Route::get('tableData', 'TableData')->name('tableData'); - Route::get('exportExcel', 'ExportExcel')->name('exportExcel'); + Route::get('initTable', SubmInitTable::class)->name('initTable'); + Route::get('tableData', SubmTableData::class)->name('tableData'); + Route::get('exportExcel', SubmExportExcel::class)->name('exportExcel'); - Route::get('options', 'Options')->name('options'); - Route::get('{subm}', 'Show')->name('show'); + Route::get('options', SubmOptions::class)->name('options'); + Route::get('{subm}', SubmShow::class)->name('show'); }); }); Route::middleware(['api', 'auth', 'core', 'multitenant']) ->group(function () { - Route::namespace('Subn') + Route::namespace('') ->prefix('subn') ->as('subn.') ->group(function () { - Route::get('', 'Index')->name('index'); - Route::get('create', 'Create')->name('create'); - Route::post('', 'Store')->name('store'); - Route::get('{subn}/edit', 'Edit')->name('edit'); + Route::get('', SubnIndex::class)->name('index'); + Route::get('create', SubnCreate::class)->name('create'); + Route::post('', SubnStore::class)->name('store'); + Route::get('{subn}/edit', SubnEdit::class)->name('edit'); - Route::patch('{subn}', 'Update')->name('update'); + Route::patch('{subn}', SubnUpdate::class)->name('update'); - Route::delete('{subn}', 'Destroy')->name('destroy'); + Route::delete('{subn}', SubnDestroy::class)->name('destroy'); - Route::get('initTable', 'InitTable')->name('initTable'); - Route::get('tableData', 'TableData')->name('tableData'); - Route::get('exportExcel', 'ExportExcel')->name('exportExcel'); + Route::get('initTable', SubnInitTable::class)->name('initTable'); + Route::get('tableData', SubnTableData::class)->name('tableData'); + Route::get('exportExcel', SubnExportExcel::class)->name('exportExcel'); - Route::get('options', 'Options')->name('options'); - Route::get('{subn}', 'Show')->name('show'); + Route::get('options', SubnOptions::class)->name('options'); + Route::get('{subn}', SubnShow::class)->name('show'); }); }); Route::middleware(['api', 'auth', 'core', 'multitenant']) ->group(function () { - Route::namespace('Personsubm') + Route::namespace('') ->prefix('personsubm') ->as('personsubm.') ->group(function () { - Route::get('', 'Index')->name('index'); - Route::get('create', 'Create')->name('create'); - Route::post('', 'Store')->name('store'); - Route::get('{personSubm}/edit', 'Edit')->name('edit'); + Route::get('', PersonSubmIndex::class)->name('index'); + Route::get('create', PersonSubmCreate::class)->name('create'); + Route::post('', PersonSubmStore::class)->name('store'); + Route::get('{personSubm}/edit', PersonSubmEdit::class)->name('edit'); + + Route::patch('{personSubm}', PersonSubmUpdate::class)->name('update'); - Route::patch('{personSubm}', 'Update')->name('update'); + Route::delete('{personSubm}', PersonSubmDestroy::class)->name('destroy'); - Route::delete('{personSubm}', 'Destroy')->name('destroy'); + Route::get('initTable', PersonSubmInitTable::class)->name('initTable'); + Route::get('tableData', PersonSubmTableData::class)->name('tableData'); + Route::get('exportExcel', PersonSubmExportExcel::class)->name('exportExcel'); - Route::get('initTable', 'InitTable')->name('initTable'); - Route::get('tableData', 'TableData')->name('tableData'); - Route::get('exportExcel', 'ExportExcel')->name('exportExcel'); + Route::get('options', PersonSubmOptions::class)->name('options'); + Route::get('{personSubm}', PersonSubmShow::class)->name('show'); + }); + }); - Route::get('options', 'Options')->name('options'); - Route::get('{personSubm}', 'Show')->name('show'); +Route::middleware(['api', 'auth']) + ->group(function () { + Route::prefix('stripe') + ->as('stripe.') + ->group(function () { + Route::get('/user/setup-intent', 'StripeController@getSetupIntent'); + Route::put('/user/subscription', 'StripeController@updateSubscription'); + Route::post('/user/payments', 'StripeController@postPaymentMethods'); + Route::get('/user/payment-methods', 'StripeController@getPaymentMethods'); + Route::post('/user/remove-payment', 'StripeController@removePaymentMethod'); }); }); -Route::namespace('\LaravelEnso\People\Http\Controllers') - ->middleware(['api', 'auth', 'core', 'multitenant']) +Route::namespace('') + ->middleware(['api', 'auth', 'core','multitenant']) ->prefix('api/administration/people') ->as('administration.people.') ->group(function () { - Route::get('create', 'Create')->name('create'); - Route::post('', 'Store')->name('store'); - Route::get('{person}/edit', 'Edit')->name('edit'); - Route::patch('{person}', 'Update')->name('update'); - Route::delete('{person}', 'Destroy')->name('destroy'); + Route::get('create', PeopleCreate::class)->name('create'); + Route::post('', PeopleStore::class)->name('store'); + Route::get('{person}/edit', PeopleEdit::class)->name('edit'); + Route::patch('{person}', PeopleUpdate::class)->name('update'); + Route::delete('{person}', PeopleDestroy::class)->name('destroy'); - Route::get('initTable', 'InitTable')->name('initTable'); - Route::get('tableData', 'TableData')->name('tableData'); - Route::get('exportExcel', 'ExportExcel')->name('exportExcel'); + Route::get('initTable', PeopleInitTable::class)->name('initTable'); + Route::get('tableData', PeopleTableData::class)->name('tableData'); + Route::get('exportExcel', PeopleExportExcel::class)->name('exportExcel'); - Route::get('options', 'Options')->name('options'); + Route::get('options', PeopleOptions::class)->name('options'); }); -Route::namespace('\LaravelEnso\Companies\Http\Controllers') - ->middleware(['api', 'auth', 'core', 'multitenant']) +Route::namespace('') + ->middleware(['api', 'auth', 'core','multitenant']) ->prefix('api/administration/companies') ->as('administration.companies.') ->group(function () { - Route::namespace('Company') - ->group(function () { - Route::get('create', 'Create')->name('create'); - Route::post('', 'Store')->name('store'); - Route::get('{company}/edit', 'Edit')->name('edit'); - Route::patch('{company}', 'Update')->name('update'); - Route::delete('{company}', 'Destroy')->name('destroy'); + Route::get('create', CompanyCreate::class)->name('create'); + Route::post('', CompanyStore::class)->name('store'); + Route::get('{company}/edit', CompanyEdit::class)->name('edit'); + Route::patch('{company}', CompanyUpdate::class)->name('update'); + Route::delete('{company}', CompanyDestroy::class)->name('destroy'); - Route::get('initTable', 'InitTable')->name('initTable'); - Route::get('tableData', 'TableData')->name('tableData'); - Route::get('exportExcel', 'ExportExcel')->name('exportExcel'); + Route::get('initTable', CompanyInitTable::class)->name('initTable'); + Route::get('tableData', CompanyTableData::class)->name('tableData'); + Route::get('exportExcel', CompanyExportExcel::class)->name('exportExcel'); - Route::get('options', 'Options')->name('options'); - }); - Route::namespace('Person') + Route::get('options', CompanyOptions::class)->name('options'); + }); +Route::namespace('') + ->group(function () { + Route::prefix('people') + ->as('people.') ->group(function () { - Route::prefix('people') - ->as('people.') - ->group(function () { - Route::get('{company}', 'Index')->name('index'); - Route::get('{company}/create', 'Create')->name('create'); - Route::get('{company}/{person}/edit', 'Edit')->name('edit'); - Route::patch('{person}', 'Update')->name('update'); - Route::post('', 'Store')->name('store'); - Route::delete('{company}/{person}', 'Destroy')->name('destroy'); - }); + Route::get('{company}', PeopleCompany::class)->name('index'); + Route::get('{company}/create', PeopleCompanyCreate::class)->name('create'); + Route::get('{company}/{person}/edit', PeopleCompanyEdit::class)->name('edit'); + Route::patch('{person}', PeopleCompanyUpdate::class)->name('update'); + Route::post('', PeopleCompanyStore::class)->name('store'); + Route::delete('{company}/{person}', PeopleCompanyDestroy::class)->name('destroy'); }); }); + +Route::middleware(['api', 'auth', 'core', 'multitenant']) + ->namespace('') + ->prefix('api/core/calendar') + ->as('core.calendar.') + ->group(function (){ + Route::get('', CalendarIndex::class)->name('index'); + Route::get('create', CalendarCreate::class)->name('create'); + Route::post('', CalendarStore::class)->name('store'); + Route::get('{calendar}/edit', CalendarEdit::class)->name('edit'); + Route::patch('{calendar}', CalendarUpdate::class)->name('update'); + Route::delete('{calendar}', CalendarDestroy::class)->name('destroy'); + Route::get('options', CalendarOptions::class)->name('options'); + }); + +Route::namespace('') + ->prefix('events') + ->as('events.') + ->group(function () { + Route::get('', EventIndex::class)->name('index'); + Route::get('create', EventCreate::class)->name('create'); + Route::post('', EventStore::class)->name('store'); + Route::get('{event}/edit', EventEdit::class)->name('edit'); + Route::patch('{event}', EventUpdate::class)->name('update'); + Route::delete('{event}', EventDestroy::class)->name('destroy'); + }); + +Route::middleware(['api', 'auth', 'core']) + ->prefix('api/core/addresses')->as('core.addresses.') + ->group(function () { + Route::get('localities', Localities::class)->name('localities'); + Route::get('regions', Regions::class)->name('regions'); + Route::get('', AddressIndex::class)->name('index'); + Route::get('create', AddressCreate::class)->name('create'); + Route::post('', AddressStore::class)->name('store'); + Route::get('options', AddressOptions::class)->name('options'); + Route::get('postcode', Postcode::class)->name('postcode'); + Route::get('{address}/edit', AddressEdit::class)->name('edit'); + Route::get('{address}/localize', AddressLocalize::class)->name('localize'); + Route::patch('{address}', AddressUpdate::class)->name('update'); + Route::delete('{address}', AddressDestroy::class)->name('destroy'); + + Route::patch('makeDefault/{address}', AddressMakeDefault::class)->name('makeDefault'); + Route::patch('makeBilling/{address}', AddressMakeBilling::class)->name('makeBilling'); + Route::patch('makeShipping/{address}', AddressMakeShipping::class)->name('makeShipping'); + + Route::get('{address}', AddressShow::class)->name('show'); + }); + +Broadcast::routes(['middleware' => ['auth:sanctum']]);