diff --git a/CHANGELOG.md b/CHANGELOG.md index 8599fc2..897c0ad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## [Unreleased] +## 3.3 - 2020-05-24 +### Changed +- README.md updated with some minor correction and frontend image. + ## 3.2 - 2020-04-23 ### Changed - Improved robustness in `environmentFileDomain` when no domain is given. @@ -21,6 +25,10 @@ than the root Laravel's app folder. With new tests. ### Changed - `composer.json` updated for Laravel 7.x +## 2.7 - 2020-05-24 +### Changed +- README.md updated with some minor correction and frontend image. + ## 2.6 - 2020-04-23 ### Changed - Improved robustness in `environmentFileDomain` when no domain is given. @@ -57,6 +65,10 @@ skipped and not replicated in the new .env. file ### Changed - `composer.json` updated for Laravel 6.x +## 1.4.7 - 2020-05-24 +### Changed +- README.md updated with some minor correction and frontend image. + ## 1.4.6 - 2020-04-23 ### Changed - Improved robustness in `environmentFileDomain` when no domain is given. @@ -93,6 +105,10 @@ skipped and not replicated in the new .env. file ### Changed - `composer.json` updated for Laravel 5.8 +## 1.3.7 - 2020-05-24 +### Changed +- README.md updated with some minor correction and frontend image. + ## 1.3.6 - 2020-04-23 ### Changed - Improved robustness in `environmentFileDomain` when no domain is given. @@ -131,6 +147,10 @@ skipped and not replicated in the new .env. file - Bugfix in `Gecche\Multidomain\Queue\Listener` due to changes in handling worker commands in the parent class. +## 1.2.7 - 2020-05-24 +### Changed +- README.md updated with some minor correction and frontend image. + ## 1.2.6 - 2020-04-23 ### Changed - Improved robustness in `environmentFileDomain` when no domain is given. @@ -167,6 +187,10 @@ skipped and not replicated in the new .env. file ### Changed - `composer.json` updated for Laravel 5.6 +## 1.1.13 - 2020-05-24 +### Changed +- README.md updated with some minor correction and frontend image. + ## 1.1.12 - 2020-04-23 ### Changed - Improved robustness in `environmentFileDomain` when no domain is given. @@ -235,10 +259,12 @@ Laravel release starting from 5.5 and as pointed out in the docs) ### Added - Initial version for Laravel 5.5. -[Unreleased]: https://github.com/gecche/laravel-multidomain/compare/v3.2...HEAD +[Unreleased]: https://github.com/gecche/laravel-multidomain/compare/v3.3...HEAD +[3.3]: https://github.com/gecche/laravel-multidomain/compare/v3.2...v3.3 [3.2]: https://github.com/gecche/laravel-multidomain/compare/v3.1...v3.2 [3.1]: https://github.com/gecche/laravel-multidomain/compare/v3.0...v3.1 [3.0]: https://github.com/gecche/laravel-multidomain/compare/v2.4...v3.0 +[2.7]: https://github.com/gecche/laravel-multidomain/compare/v2.6...v2.7 [2.6]: https://github.com/gecche/laravel-multidomain/compare/v2.5...v2.6 [2.5]: https://github.com/gecche/laravel-multidomain/compare/v2.4...v2.5 [2.4]: https://github.com/gecche/laravel-multidomain/compare/v2.3...v2.4 @@ -246,6 +272,7 @@ Laravel release starting from 5.5 and as pointed out in the docs) [2.2]: https://github.com/gecche/laravel-multidomain/compare/v2.1...v2.2 [2.1]: https://github.com/gecche/laravel-multidomain/compare/v2.0...v2.1 [2.0]: https://github.com/gecche/laravel-multidomain/compare/v1.4.0...v2.0 +[1.4.7]: https://github.com/gecche/laravel-multidomain/compare/v1.4.6...v1.4.7 [1.4.6]: https://github.com/gecche/laravel-multidomain/compare/v1.4.5...v1.4.6 [1.4.5]: https://github.com/gecche/laravel-multidomain/compare/v1.4.4...v1.4.5 [1.4.4]: https://github.com/gecche/laravel-multidomain/compare/v1.4.3...v1.4.4 @@ -253,6 +280,7 @@ Laravel release starting from 5.5 and as pointed out in the docs) [1.4.2]: https://github.com/gecche/laravel-multidomain/compare/v1.4.1...v1.4.2 [1.4.1]: https://github.com/gecche/laravel-multidomain/compare/v1.4.0...v1.4.1 [1.4.0]: https://github.com/gecche/laravel-multidomain/compare/v1.3.0...v1.4.0 +[1.3.7]: https://github.com/gecche/laravel-multidomain/compare/v1.3.6...v1.3.7 [1.3.6]: https://github.com/gecche/laravel-multidomain/compare/v1.3.5...v1.3.6 [1.3.5]: https://github.com/gecche/laravel-multidomain/compare/v1.3.4...v1.3.5 [1.3.4]: https://github.com/gecche/laravel-multidomain/compare/v1.3.3...v1.3.4 @@ -260,6 +288,7 @@ Laravel release starting from 5.5 and as pointed out in the docs) [1.3.2]: https://github.com/gecche/laravel-multidomain/compare/v1.3.1...v1.3.2 [1.3.1]: https://github.com/gecche/laravel-multidomain/compare/v1.3.0...v1.3.1 [1.3.0]: https://github.com/gecche/laravel-multidomain/compare/v1.2.0...v1.3.0 +[1.2.7]: https://github.com/gecche/laravel-multidomain/compare/v1.2.6...v1.2.7 [1.2.6]: https://github.com/gecche/laravel-multidomain/compare/v1.2.5...v1.2.6 [1.2.5]: https://github.com/gecche/laravel-multidomain/compare/v1.2.4...v1.2.5 [1.2.4]: https://github.com/gecche/laravel-multidomain/compare/v1.2.3...v1.2.4 @@ -267,6 +296,7 @@ Laravel release starting from 5.5 and as pointed out in the docs) [1.2.2]: https://github.com/gecche/laravel-multidomain/compare/v1.2.1...v1.2.2 [1.2.1]: https://github.com/gecche/laravel-multidomain/compare/v1.2.0...v1.2.1 [1.2.0]: https://github.com/gecche/laravel-multidomain/compare/v1.1.6...v1.2.0 +[1.1.13]: https://github.com/gecche/laravel-multidomain/compare/v1.1.12...v1.1.13 [1.1.12]: https://github.com/gecche/laravel-multidomain/compare/v1.1.11...v1.1.12 [1.1.11]: https://github.com/gecche/laravel-multidomain/compare/v1.1.10...v1.1.11 [1.1.10]: https://github.com/gecche/laravel-multidomain/compare/v1.1.9...v1.1.10 diff --git a/README.md b/README.md index e23ad4a..0d9426a 100644 --- a/README.md +++ b/README.md @@ -3,9 +3,11 @@ [![Laravel](https://img.shields.io/badge/Laravel-7.x-orange.svg?style=flat-square)](http://laravel.com) [![License](http://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](https://tldrlegal.com/license/mit-license) -# laravel-multidomain +# Laravel Multi Domain An extension for using Laravel in a multi domain setting +![Laravel Multi Domain](laravel-multidomain.png) + ## Description This package allows a single Laravel installation to work with multiple HTTP domains. @@ -83,7 +85,7 @@ At the very top of the `app/Http/Kernel.php` file , do the following change: use Gecche\Multidomain\Foundation\Http\Kernel as HttpKernel; ``` -Similarly in the ``app/Console/Kernel.php` file: +Similarly in the `app/Console/Kernel.php` file: ```php //use Illuminate\Foundation\Console\Kernel as ConsoleKernel; @@ -141,7 +143,7 @@ The command also adds an entry in the `domains` key in `config/domains.php` file In addition, two new folders are created, `storage/site1_com/` and `storage/site2_com/`. They have the same folder structure as the main storage. -Customisations to this `storage` substructure must be matched by values in the `config/domain.php` file. +Customizations to this `storage` substructure must be matched by values in the `config/domain.php` file. #### `domain.remove` artisan command The `domain:remove` command removes the specified HTTP domain from the @@ -274,7 +276,7 @@ command. Extending the `storage:link` command allowing to choose the name is out (and I hope it will be done directly in future versions of Laravel). A way to obtain multiple storage links could be the following. -LEt us suppose to have two domains, namely `site1.com` and `site2.com` with associated storage folders +Let us suppose to have two domains, namely `site1.com` and `site2.com` with associated storage folders `storage/site1_com` and `storage/site2_com`. 1. We manually create links for each domain: @@ -303,7 +305,7 @@ APP_PUBLIC_STORAGE=-site1_com Furthermore, if you are using the package in a Single Page Application (SPA) setting, you could better handling distinct public resources for each domain via .htaccess or similar solutions as pointed out by [Scaenicus](https://github.com/Scaenicus) in his -[.htacess solution](https://github.com/gecche/laravel-multidomain/issues/11#issuecomment-559822284). +[.htaccess solution](https://github.com/gecche/laravel-multidomain/issues/11#issuecomment-559822284). #### Storing environment files in a custom folder @@ -329,7 +331,7 @@ also the standard `.env` file has to be placed in it If in your setting you make use of the Laravel's Scheduler, remember that also the command `schedule:run` has to be launched with the domain option. Hence, you have to launch a scheduler for each domain. -At firt one oculd think that one Scheduler instance should handle the commands launched for any domain, but the +At first one could think that one Scheduler instance should handle the commands launched for any domain, but the Scheduler itself is run within a Laravel Application, so the "env" under which it is run, automatically applies to each scheduled command and the `--domain` option has no effect at all. diff --git a/laravel-multidomain.png b/laravel-multidomain.png new file mode 100644 index 0000000..cc0f03f Binary files /dev/null and b/laravel-multidomain.png differ