Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add migration publishing, update config publishing and environmental variables #82

Closed
wants to merge 2 commits into from
Closed

Add migration publishing, update config publishing and environmental variables #82

wants to merge 2 commits into from

Conversation

codetheorist
Copy link

@codetheorist codetheorist commented Nov 12, 2017

Issue #81: Add migration publishing to service provider

  • Change database migration to stub file
  • Add migration publishing to ServiceProvider
  • Update config publishing to publish and merge correctly

Fixes Issues #65 & #83: Have config file pull values from environmental variables

  • Added env() helpers in config.php to allow easier changing of important settings in a per-environment basis

@codetheorist codetheorist changed the title Issue #81: Add migration publishing to service provider Add migration publishing, update config publishing and environmental variables Nov 12, 2017
@anlutro
Copy link
Owner

anlutro commented Nov 12, 2017

Looks good, but is there any reason for removing the if version_compare blocks? I'd like to try and keep backwards compatibility if possible.

@bweston92
Copy link
Collaborator

@codetheorist you'll break anything prior to v5.3 for not much gain. Just environment support is probably enough for this PR rather then removing code that supports Laravel 4 onwards.

Copy link
Collaborator

@bweston92 bweston92 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add the code back for supporting Laravel 4 onwards and just give support for env config.

@@ -58,23 +58,20 @@ public function register()
*/
public function boot()
{
if (version_compare(Application::VERSION, '5.3', '>=')) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@codetheorist add this back.

@@ -9,15 +9,9 @@ class CreateSettingsTable extends Migration
{
public function __construct()
{
if (version_compare(Application::VERSION, '5.0', '>=')) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@codetheorist add this back.

@bweston92
Copy link
Collaborator

@codetheorist any update?

@bweston92 bweston92 added the enhancement New feature or request label Mar 6, 2018
@bweston92 bweston92 closed this Jun 26, 2018
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants