News letter subscription added

This commit is contained in:
2020-08-22 19:54:40 +05:00
parent 215c14eb14
commit aac9f030cb
7 changed files with 136 additions and 14 deletions

View File

@@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateNewsLettersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('news_letters', function (Blueprint $table) {
$table->id();
$table->string('email');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('news_letters');
}
}