From 7ec5eb2b8a176492a193ed80cff79324253da331 Mon Sep 17 00:00:00 2001 From: Sobhan Attar Date: Sun, 25 Jun 2017 16:43:25 +0430 Subject: [PATCH] update migration creating table and dropping it can be based on `table` item of cart config --- .../0000_00_00_000000_create_shoppingcart_table.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/database/migrations/0000_00_00_000000_create_shoppingcart_table.php b/database/migrations/0000_00_00_000000_create_shoppingcart_table.php index bebefa9..fc5bb26 100644 --- a/database/migrations/0000_00_00_000000_create_shoppingcart_table.php +++ b/database/migrations/0000_00_00_000000_create_shoppingcart_table.php @@ -11,7 +11,7 @@ class CreateShoppingcartTable extends Migration */ public function up() { - Schema::create('shoppingcart', function (Blueprint $table) { + Schema::create(config('cart.database.table'), function (Blueprint $table) { $table->string('identifier'); $table->string('instance'); $table->longText('content'); @@ -25,6 +25,6 @@ class CreateShoppingcartTable extends Migration */ public function down() { - Schema::drop('shoppingcart'); + Schema::drop(config('cart.database.table')); } }