khatriafaz/laravel-ensure-production

This package can give you helper functions to run python files right from PHP.

v1.0 2020-02-04 20:37 UTC

This package is not auto-updated.

Last update: 2024-08-01 17:24:04 UTC


README

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.