Create 2022_02_06_194000_create_shoppingcart_items_table.php

This commit is contained in:
Patrick
2022-02-06 19:41:35 +01:00
committed by GitHub
parent 94be87b635
commit ed0a3fa1d6

View File

@@ -0,0 +1,26 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateShoppingcartItemsTable extends Migration
{
/**
* Run the migrations.
*/
public function up()
{
Schema::create(Config::get('cart.database.table'), function (Blueprint $table) {
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down()
{
Schema::drop(Config::get('cart.database.table'));
}
}