Looking to hire Laravel developers? Try LaraJobs

laravel-ensure-production maintained by khatriafaz

Description
This package can give you helper functions to run python files right from PHP.
Author
Last update
2020/02/28 06:41 (dev-master)
License
Downloads
4

Comments
comments powered by Disqus

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 khatriafaz@gmail.com instead of using the issue tracker.

Credits

License

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