2017 © Pedro Peláez
 

library domain-enforcement

Laravel 5 middleware to enforce a single domain on your application. e.g non-www. to www.

image

owenmelbz/domain-enforcement

Laravel 5 middleware to enforce a single domain on your application. e.g non-www. to www.

  • Saturday, September 2, 2017
  • by OwenMelbz
  • Repository
  • 1 Watchers
  • 20 Stars
  • 1,609 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 0 Open issues
  • 7 Versions
  • 16 % Grown

The README.md

Laravel 5+ Domain / APP_URL Enforcement

An automatic piece of middleware for Laravel 5+, which will force users to access your application via what is defined in the APP_URL - especially useful for SEO forcing non-www users to www etc, unless specified in the ignore list, (*1)

Usage

  1. Install via composer composer require owenmelbz/domain-enforcement, (*2)

  2. Register the service provider - typically done inside the app.php providers array e.g OwenMelbz\DomainEnforcement\DomainEnforcementServiceProvider::class, (*3)

  3. Add ENFORCE_DOMAIN=true to your application environment config e.g .env, (*4)

  4. Enjoy your stress free architecture agnostic redirects, (*5)

Configuration

If you publish the config via php artisan vendor:publish --provider="OwenMelbz\DomainEnforcement\DomainEnforcementServiceProvider" you can exclude urls from getting enforced., (*6)

Why?

Too often we've wasted time configuring redirections, with proxy systems like CloudFlare, with apache development machines and nginx production, this removes all the headache and can simply be turned off and on at a whim., (*7)

The Versions

02/09 2017

dev-master

9999999-dev

Laravel 5 middleware to enforce a single domain on your application. e.g non-www. to www.

  Sources   Download

MIT

The Requires

 

by Owen Melbourne

laravel redirect enforce www non-www

02/09 2017

0.0.6

0.0.6.0

Laravel 5 middleware to enforce a single domain on your application. e.g non-www. to www.

  Sources   Download

MIT

The Requires

 

by Owen Melbourne

laravel redirect enforce www non-www

02/06 2017

0.0.5

0.0.5.0

Laravel 5 middleware to enforce a single domain on your application. e.g non-www. to www.

  Sources   Download

MIT

The Requires

 

by Owen Melbourne

laravel redirect enforce www non-www

27/05 2017

0.0.4

0.0.4.0

Laravel 5 middleware to enforce a single domain on your application. e.g non-www. to www.

  Sources   Download

MIT

The Requires

 

by Owen Melbourne

laravel redirect enforce www non-www

27/05 2017

0.0.3

0.0.3.0

Laravel 5 middleware to enforce a single domain on your application. e.g non-www. to www.

  Sources   Download

MIT

The Requires

 

by Owen Melbourne

laravel redirect enforce www non-www

26/05 2017

0.0.2

0.0.2.0

Laravel 5 middleware to enforce a single domain on your application. e.g non-www. to www.

  Sources   Download

MIT

The Requires

 

by Owen Melbourne

laravel redirect enforce www non-www

26/05 2017

0.0.1

0.0.1.0

Laravel 5 middleware to enforce a single domain on your application. e.g non-www. to www.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Owen Melbourne

laravel redirect enforce www non-www