Skip to content

Commit c652805

Browse files
committed
add default config in attributes migration
1 parent 4e7d480 commit c652805

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

migrations/2022_08_04_155610_create_attributes_table.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*/
1414
public function up()
1515
{
16-
Schema::create(config('laravel-attributes.tables.name'), function (Blueprint $table) {
16+
Schema::create(config('laravel-attributes.tables.name', 'attributes'), function (Blueprint $table) {
1717
$table->id();
1818
$table->string('title');
1919
$table->text('value');
@@ -30,6 +30,6 @@ public function up()
3030
*/
3131
public function down()
3232
{
33-
Schema::dropIfExists(config('laravel-attributes.tables.name'));
33+
Schema::dropIfExists(config('laravel-attributes.tables.name', 'attributes'));
3434
}
3535
};

0 commit comments

Comments
 (0)