diff --git a/app/database/migrations/2014_11_25_160545_CreateSubscribersTable.php b/app/database/migrations/2014_11_25_160545_CreateSubscribersTable.php new file mode 100644 index 00000000..f36a3c40 --- /dev/null +++ b/app/database/migrations/2014_11_25_160545_CreateSubscribersTable.php @@ -0,0 +1,34 @@ +increments('id'); + $table->string('email')->nullable(false); + $table->timestamps(); + $table->softDeletes(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::drop('subscribers'); + } + +} diff --git a/app/models/Subscriber.php b/app/models/Subscriber.php new file mode 100644 index 00000000..51361517 --- /dev/null +++ b/app/models/Subscriber.php @@ -0,0 +1,13 @@ + 'required|email' + ]; + + protected $fillable = ['email']; + }