Skip to content

Commit

Permalink
README updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Giacomo Terreni committed May 24, 2020
1 parent b87f432 commit 8bb6299
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 7 deletions.
32 changes: 31 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand Down Expand Up @@ -57,6 +65,10 @@ skipped and not replicated in the new .env.<domain> 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.
Expand Down Expand Up @@ -93,6 +105,10 @@ skipped and not replicated in the new .env.<domain> 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.
Expand Down Expand Up @@ -131,6 +147,10 @@ skipped and not replicated in the new .env.<domain> 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.
Expand Down Expand Up @@ -167,6 +187,10 @@ skipped and not replicated in the new .env.<domain> 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.
Expand Down Expand Up @@ -235,38 +259,44 @@ 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
[2.3]: https://github.com/gecche/laravel-multidomain/compare/v2.2...v2.3
[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
[1.4.3]: https://github.com/gecche/laravel-multidomain/compare/v1.4.2...v1.4.3
[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
[1.3.3]: https://github.com/gecche/laravel-multidomain/compare/v1.3.2...v1.3.3
[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
[1.2.3]: https://github.com/gecche/laravel-multidomain/compare/v1.2.2...v1.2.3
[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
Expand Down
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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

Expand All @@ -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.

Expand Down
Binary file added laravel-multidomain.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8bb6299

Please sign in to comment.