Skip to content

This packages sets the production configuration automatically for laravel projects for the listed domains

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

khatriafaz/laravel-ensure-production

Repository files navigation

Ensure Production

Latest Version on Packagist Build Status Quality Score Total Downloads

Add this package to your project and configure domains where the environment must stay only production. That's it. The you don't have to remember where to update the env or a specific config for production domains.

Installation

You can install the package via composer:

composer require khatriafaz/laravel-ensure-production

You can publish the config to change to configured domains for production:

php artisan vendor:publish --provider="Khatriafaz\EnsureProductionServiceProvider"

You will find a new config published ensureproduction.php. You should modify the domains array to list your domains:

return [
	/**
	 *	The domains for production must be added to this array
	 */
	'domains' => [
		 'domain.com'
	],

	'override_config' => [
		/**
		 *	You can override config variables for
		 *	the configured domains above
		 */

		 'app.name' => 'Laravel'
	]
];

And that's it, the configured domains will now work on the production configuration always.

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

This packages sets the production configuration automatically for laravel projects for the listed domains

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Packages

 
 
 

Languages