Skip to content

Commit

Permalink
Merge pull request #3 from rennokki/constrain-fixes
Browse files Browse the repository at this point in the history
Adding cast_type to fillable caused errors and now are fixed
  • Loading branch information
rennokki authored Jun 15, 2018
2 parents 6a182ca + 7bb20c2 commit c92d8b0
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 38 deletions.
1 change: 1 addition & 0 deletions database/migrations/2018_05_19_135648_settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public function up()

$table->string('key', 100);
$table->text('value')->nullable();
$table->enum('cast_type', ['string', 'integer', 'int', 'boolean', 'bool', 'float', 'double'])->default('string');

$table->timestamps();

Expand Down
37 changes: 0 additions & 37 deletions database/migrations/2018_05_19_135648_settings_add_cast_type.php

This file was deleted.

1 change: 0 additions & 1 deletion src/SettingsServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ public function boot()

$this->publishes([
__DIR__.'/../database/migrations/2018_05_19_135648_settings.php' => database_path('migrations/2018_05_19_135648_settings.php'),
__DIR__.'/../database/migrations/2018_05_19_135648_settings_add_cast_type.php' => database_path('migrations/2018_05_19_135648_settings_add_cast_type.php'),
], 'migration');
}

Expand Down

0 comments on commit c92d8b0

Please sign in to comment.